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 Jun 25, 2024
1 parent e57178a commit e2e3882
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 18 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4834,6 +4834,7 @@ A total of 29 people contributed to this release. Thank you to the following con

<details>

- [`9e56edf`](https://github.com/stdlib-js/stdlib/commit/9e56edf06218960bb5a3b1c22a5a2198f2dc0cb9) - **chore:** minor clean-up of `math/base/special/acsc` _(by Pranav Goswami, Athan Reines, Philipp Burckhardt)_
- [`50d806d`](https://github.com/stdlib-js/stdlib/commit/50d806dd22dd25a6f6f2900bb5a8ccc0ed7ef232) - **test:** add missing test for `math/base/special/cotd` [(#2449)](https://github.com/stdlib-js/stdlib/pull/2449) _(by Gunj Joshi)_
- [`c9ab1f2`](https://github.com/stdlib-js/stdlib/commit/c9ab1f2313cac54672d24e82665a13ff37b79a93) - **feat:** add C implementation for `math/base/special/cotd` [(##2443)](#2443) _(by Gunj Joshi)_
- [`523d68f`](https://github.com/stdlib-js/stdlib/commit/523d68f43c345228b28262e88dc2d820b6ad7592) - **feat:** add C implementation for `math/base/special/trunc2` [(##2436)](#2436) _(by Gunj Joshi)_
Expand Down
2 changes: 1 addition & 1 deletion base/special/acsc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ for ( i = 0; i < x.length; i++ ) {

#### stdlib_base_acsc( x )

Computes the [arccosecant][arccosecant] of `x`.
Computes the [arccosecant][arccosecant] of a double-precision floating-point number.

```c
double out = stdlib_base_acsc( 1.0 );
Expand Down
16 changes: 8 additions & 8 deletions base/special/acsc/benchmark/benchmark.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,25 @@

// MODULES //

var resolve = require('path').resolve;
var bench = require('@stdlib/bench');
var randu = require('@stdlib/random/base/randu');
var isnan = require('./../../../../base/assert/is-nan');
var tryRequire = require('@stdlib/utils/try-require');
var pkg = require('./../package.json').name;
var resolve = require( 'path' ).resolve;
var bench = require( '@stdlib/bench' );
var randu = require( '@stdlib/random/base/randu' );
var isnan = require( './../../../../base/assert/is-nan' );
var tryRequire = require( '@stdlib/utils/try-require' );
var pkg = require( './../package.json' ).name;


// VARIABLES //

var acsc = tryRequire(resolve(__dirname, './../lib/native.js'));
var acsc = tryRequire( resolve( __dirname, './../lib/native.js' ) );
var opts = {
'skip': (acsc instanceof Error)
};


// MAIN //

bench(pkg + '::native', opts, function benchmark(b) {
bench( pkg + '::native', opts, function benchmark( b ) {
var y;
var i;
var x;
Expand Down
2 changes: 1 addition & 1 deletion base/special/acsc/include/stdlib/math/base/special/acsc.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ extern "C" {
#endif

/**
* Computes the arccosecant of a number.
* Computes the arccosecant of a double-precision floating-point number.
*/
double stdlib_base_acsc( const double x );

Expand Down
22 changes: 15 additions & 7 deletions base/special/acsc/lib/native.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,27 +26,35 @@ var addon = require( './../src/addon.node' );
// MAIN //

/**
* Computes the arccosecant of a number.
* Computes the arccosecant of a double-precision floating-point number.
*
* @private
* @param {number} x - input value
* @returns {number} arccosecant (in radians)
*
* @example
* var v = acsc( 1.0 );
* // returns ~1.57
* var v = acsc( 2.0 );
* // returns ~0.5236
*
* @example
* var v = acsc( 3.141592653589793 );
* // returns ~0.32
* var v = acsc( 1.0 );
* // returns ~1.5708
*
* @example
* var v = acsc( -3.141592653589793 );
* // returns ~-0.32
* var v = acsc( -1.0 );
* // returns ~-1.5708
*
* @example
* var v = acsc( NaN );
* // returns NaN
*
* @example
* var v = acsc( Infinity );
* // returns 0.0
*
* @example
* var v = acsc( -Infinity );
* // returns -0.0
*/
function acsc( x ) {
return addon( x );
Expand Down
2 changes: 1 addition & 1 deletion base/special/acsc/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "stdlib/math/base/special/asin.h"

/**
* Computes the arccosecant of a number.
* Computes the arccosecant of a double-precision floating-point number.
*
* @param x input value
* @return output value
Expand Down

0 comments on commit e2e3882

Please sign in to comment.