You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,7 @@
10
10
11
11
### Features
12
12
13
+
-[`9b48575`](https://github.com/stdlib-js/stdlib/commit/9b48575a2670874e64b076f79ebd9989b43db5a0) - add C implementation for `math/base/special/heavisidef`[(#7022)](https://github.com/stdlib-js/stdlib/pull/7022)
-[`c9777d9`](https://github.com/stdlib-js/stdlib/commit/c9777d9355e9a8d91a8081b869d303f821da245d) - add C implementation for `math/base/special/rising-factorial`[(#4455)](https://github.com/stdlib-js/stdlib/pull/4455)
@@ -468,6 +469,7 @@ A total of 41 issues were closed in this release:
468
469
469
470
<details>
470
471
472
+
-[`9b48575`](https://github.com/stdlib-js/stdlib/commit/9b48575a2670874e64b076f79ebd9989b43db5a0) - **feat:** add C implementation for `math/base/special/heavisidef`[(#7022)](https://github.com/stdlib-js/stdlib/pull/7022)_(by Karan Anand, stdlib-bot)_
-[`072e93e`](https://github.com/stdlib-js/stdlib/commit/072e93e688e341538c2f1dd25e67fff5dec753dc) - **docs:** use correct function name _(by Karan Anand)_
473
475
-[`696cf19`](https://github.com/stdlib-js/stdlib/commit/696cf194b9ac255ada33dac8bbd3b5cb5dd8f923) - **bench:** adjust input range for uniform path coverage _(by Karan Anand)_
<!-- Section to include introductory text. Make sure to keep an empty line after the intro `section` element and another before the `/section` close. -->
176
+
177
+
<sectionclass="intro">
178
+
179
+
</section>
180
+
181
+
<!-- /.intro -->
182
+
183
+
<!-- C usage documentation. -->
184
+
185
+
<sectionclass="usage">
186
+
187
+
### Usage
188
+
189
+
```c
190
+
#include"stdlib/math/base/special/heavisidef.h"
191
+
```
192
+
193
+
#### stdlib_base_heavisidef( x, continuity )
194
+
195
+
Evaluates the [Heaviside function][heaviside-function] for a single-precision floating-point number.
196
+
197
+
```c
198
+
float y = stdlib_base_heavisidef( 0.0f, STDLIB_BASE_HEAVISIDEF_CONTINUITY_HALF_MAXIMUM );
199
+
// returns 0.5f
200
+
201
+
y = stdlib_base_heavisidef( 0.0f, STDLIB_BASE_HEAVISIDEF_CONTINUITY_LEFT_CONTINUOUS );
The `continuity` parameter may be one of the following values:
211
+
212
+
-`STDLIB_BASE_HEAVISIDEF_CONTINUITY_HALF_MAXIMUM`: if `x == 0`, the function returns `0.5`.
213
+
-`STDLIB_BASE_HEAVISIDEF_CONTINUITY_LEFT_CONTINUOUS`: if `x == 0`, the function returns `0.0`.
214
+
-`STDLIB_BASE_HEAVISIDEF_CONTINUITY_RIGHT_CONTINUOUS`: if `x == 0`, the function returns `1.0`.
215
+
-`STDLIB_BASE_HEAVISIDEF_CONTINUITY_DISCONTINUOUS`: if `x == 0`, the function returns `NaN`.
216
+
217
+
If provided a `continuity` argument which is not one of the enumeration constants listed above, the function returns `NaN` for `x == 0`, behaving like the discontinuous case.
0 commit comments