File tree 8 files changed +8
-0
lines changed
lib/node_modules/@stdlib/math/base/special
8 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -128,6 +128,7 @@ Computes the absolute value of a double-precision floating-point number.
128
128
129
129
``` c
130
130
double y = stdlib_base_abs( -5.0 );
131
+ // returns 5.0
131
132
```
132
133
133
134
The function accepts the following arguments:
Original file line number Diff line number Diff line change 26
26
*
27
27
* @example
28
28
* double y = stdlib_base_abs( -5.0 );
29
+ * // returns 5.0
29
30
*/
30
31
double stdlib_base_abs ( const double x ) {
31
32
if ( x < 0.0 ) {
Original file line number Diff line number Diff line change @@ -117,6 +117,7 @@ Computes the squared absolute value of a double-precision floating-point number.
117
117
118
118
``` c
119
119
double y = stdlib_base_abs2( -5.0 );
120
+ // returns 25.0
120
121
```
121
122
122
123
The function accepts the following arguments:
Original file line number Diff line number Diff line change 26
26
*
27
27
* @example
28
28
* double y = stdlib_base_abs2( -5.0 );
29
+ * // returns 25.0
29
30
*/
30
31
double stdlib_base_abs2 ( const double x ) {
31
32
return x * x ;
Original file line number Diff line number Diff line change @@ -117,6 +117,7 @@ Computes the squared absolute value of a single-precision floating-point number.
117
117
118
118
``` c
119
119
float y = stdlib_base_abs2f( -5 .0f );
120
+ // returns 25.0f
120
121
```
121
122
122
123
The function accepts the following arguments:
Original file line number Diff line number Diff line change 26
26
*
27
27
* @example
28
28
* float y = stdlib_base_abs2f( -5.0f );
29
+ * // returns 25.0f
29
30
*/
30
31
float stdlib_base_abs2f ( const float x ) {
31
32
return x * x ;
Original file line number Diff line number Diff line change @@ -128,6 +128,7 @@ Computes the squared absolute value of a single-precision floating-point number.
128
128
129
129
``` c
130
130
float y = stdlib_base_absf( -5 .0f );
131
+ // returns 5.0f
131
132
```
132
133
133
134
The function accepts the following arguments:
Original file line number Diff line number Diff line change 26
26
*
27
27
* @example
28
28
* float y = stdlib_base_absf( -5.0f );
29
+ * // returns 5.0f
29
30
*/
30
31
float stdlib_base_absf ( const float x ) {
31
32
if ( x < 0.0f ) {
You can’t perform that action at this time.
0 commit comments