Skip to content

Commit

Permalink
Auto-generated commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stdlib-bot committed Mar 17, 2024
1 parent b654aa0 commit 55092f6
Show file tree
Hide file tree
Showing 13 changed files with 17 additions and 25 deletions.
2 changes: 1 addition & 1 deletion base/assert/is-negative-zero/benchmark/c/benchmark.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ double rand_double() {
* Tests if a numeric value is negative zero.
*
* @param x value to test
* @returns boolean indicating if a numeric value is negative zero
* @return boolean indicating if a numeric value is negative zero
*/
bool is_negative_zero( double x ) {
return ( 1.0/x == -HUGE_VAL );
Expand Down
2 changes: 1 addition & 1 deletion base/assert/is-negative-zerof/benchmark/c/benchmark.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ float rand_float() {
* Tests if a numeric value is negative zero.
*
* @param x value to test
* @returns boolean indicating if a numeric value is negative zero
* @return boolean indicating if a numeric value is negative zero
*/
bool is_negative_zerof( float x ) {
return ( x == 0.0f && 1.0f/x == -INFINITY );
Expand Down
2 changes: 1 addition & 1 deletion base/assert/is-positive-zero/benchmark/c/benchmark.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ double rand_double() {
* Tests if a numeric value is positive zero.
*
* @param x value to test
* @returns boolean indicating if a numeric value is positive zero
* @return boolean indicating if a numeric value is positive zero
*/
bool is_positive_zero( double x ) {
return ( 1.0/x == HUGE_VAL );
Expand Down
2 changes: 1 addition & 1 deletion base/assert/is-positive-zerof/benchmark/c/benchmark.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ float rand_float() {
* Tests if a numeric value is positive zero.
*
* @param x value to test
* @returns boolean indicating if a numeric value is positive zero
* @return boolean indicating if a numeric value is positive zero
*/
bool is_positive_zerof( float x ) {
return ( x == 0.0f && 1.0f/x == INFINITY );
Expand Down
2 changes: 1 addition & 1 deletion base/special/acosd/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* Computes the arccosine (in degrees) of a double-precision floating-point number.
*
* @param x input value
* @returns arccosine (in degrees)
* @return arccosine (in degrees)
*
* @example
* double v = stdlib_base_acosd( 0.0 );
Expand Down
2 changes: 1 addition & 1 deletion base/special/acotd/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* Computes the arccotangent (in degrees) of a double-precision floating-point number.
*
* @param x input value
* @returns arccotangent (in degrees)
* @return arccotangent (in degrees)
*
* @example
* double v = stdlib_base_acotd( 0.0 );
Expand Down
2 changes: 1 addition & 1 deletion base/special/asecd/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* Computes the arcsecant (in degrees) of a double-precision floating-point number.
*
* @param x input value
* @returns arcsecant (in degrees)
* @return arcsecant (in degrees)
*
* @example
* double v = stdlib_base_asecd( 1.0 );
Expand Down
4 changes: 2 additions & 2 deletions base/special/asind/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
/**
* Computes the arcsine (in degrees) of a double-precision floating-point number.
*
* @param x - input value
* @returns arcsine (in degrees)
* @param x input value
* @return arcsine (in degrees)
*
* @example
* double v = stdlib_base_acotd( 0.0 );
Expand Down
2 changes: 1 addition & 1 deletion base/special/bernoulli/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ int32_t MAX_BERNOULLI = 258;
* Computes the nth Bernoulli number.
*
* @param n input value
* @returns output value
* @return output value
*
* @example
* double out = stdlib_base_bernoulli( 0 );
Expand Down
2 changes: 1 addition & 1 deletion base/special/cbrt/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ static const double P4 = 0.145996192886612446982; // 0x3fc2b000, 0xd4e4edd7
* [horners-method]: https://en.wikipedia.org/wiki/Horner%27s_method
*
* @param x value at which to evaluate the polynomial
* @returns evaluated polynomial
* @return evaluated polynomial
*/
static double polval( const double x ) {
if ( x == 0.0 ) {
Expand Down
16 changes: 4 additions & 12 deletions base/special/csch/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,24 +22,16 @@
/**
* Computes the hyperbolic cosecant of a number.
*
* @param {number} x - input value
* @returns {number} hyperbolic cosecant
* @param x input value
* @return hyperbolic cosecant
*
* @example
* var v = csch( 0.0 );
* // returns Infinity
*
* @example
* var v = csch( 2.0 );
* var v = stdlib_base_csch( 2.0 );
* // returns ~0.2757
*
* @example
* var v = csch( -2.0 );
* var v = stdlib_base_csch( -2.0 );
* // returns ~-0.2757
*
* @example
* var v = csch( NaN );
* // returns NaN
*/
double stdlib_base_csch( const double x ) {
return 1.0 / stdlib_base_sinh( x );
Expand Down
2 changes: 1 addition & 1 deletion base/special/fast/acosh/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* Computes the hyperbolic arccosine of a number.
*
* @param x input value
* @returns hyperbolic arccosine (in radians)
* @return hyperbolic arccosine (in radians)
*
* @example
* double v = stdlib_base_fast_acosh( 1.0 );
Expand Down
2 changes: 1 addition & 1 deletion base/special/fast/hypot/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
*
* @param x number
* @param y number
* @returns hypotenuse
* @return hypotenuse
*
* @example
* double h = stdlib_base_fast_hypot( -5.0, 12.0 );
Expand Down

0 comments on commit 55092f6

Please sign in to comment.