Skip to content

Commit

Permalink
feat: add math/base/special/asind
Browse files Browse the repository at this point in the history
  • Loading branch information
the-r3aper7 committed Mar 12, 2024
1 parent a9ecb9a commit d54cb18
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 18 deletions.
4 changes: 2 additions & 2 deletions lib/node_modules/@stdlib/math/base/special/asind/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ limitations under the License.

# asind

> Compute the [arcsine][arcsine] in degree of a double-precision floating-point number.
> Compute the [arcsine][arcsine] in degrees of a double-precision floating-point number.
<section class="usage">

Expand All @@ -32,7 +32,7 @@ var asind = require( '@stdlib/math/base/special/asind' );

#### asind( x )

Computes the [arcsine][arcsine] (in degree) of a double-precision floating-point number.
Computes the [arcsine][arcsine] (in degrees) of a double-precision floating-point number.

```javascript
var sqrt = require( '@stdlib/math/base/special/sqrt' );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
Returns
-------
y: number
Arcsine (in degree).
Arcsine (in degrees).

Examples
--------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@
// TypeScript Version: 4.1

/**
* Computes the arcsine (in degree) of a double-precision floating-point number.
* Computes the arcsine (in degrees) of a double-precision floating-point number.
*
* @param x - input value
* @returns arcsine (in degree)
* @returns arcsine (in degrees)
*
* @example
* var v = asind( 0.0 );
* // returns 0.0
*
* @example
* var v = asind( 0.5 );
* var v = asind( 0.5 );
* // returns ~30.0
*
* @example
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
'use strict';

/**
* Compute the arcsine (in degree) of a double-precision floating-point number.
* Compute the arcsine (in degrees) of a double-precision floating-point number.
*
* @module @stdlib/math/base/special/asind
*
Expand Down
12 changes: 6 additions & 6 deletions lib/node_modules/@stdlib/math/base/special/asind/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@

// MODULES //

var rad2deg = require('@stdlib/math/base/special/rad2deg');
var asin = require('@stdlib/math/base/special/asin');
var rad2deg = require( '@stdlib/math/base/special/rad2deg' );
var asin = require( '@stdlib/math/base/special/asin' );


// MAIN //

/**
* Computes the arcsine (in degree) of a double-precision floating-point number.
* Computes the arcsine (in degrees) of a double-precision floating-point number.
*
* @param {number} x - input value
* @returns {number} arcsine (in degree)
* @returns {number} arcsine (in degrees)
*
* @example
* var v = asind( 0.0 );
Expand All @@ -53,8 +53,8 @@ var asin = require('@stdlib/math/base/special/asin');
* // returns NaN
*/
function asind( x ) {
var rad = asin(x);
return rad2deg(rad);
var rad = asin( x );
return rad2deg( rad );
}


Expand Down
7 changes: 2 additions & 5 deletions lib/node_modules/@stdlib/math/base/special/asind/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@stdlib/math/base/special/asind",
"version": "0.0.0",
"description": "Compute the arcsine(in degree) of a double-precision floating-point number.",
"description": "Compute the arcsine(in degrees) of a double-precision floating-point number.",
"license": "Apache-2.0",
"author": {
"name": "The Stdlib Authors",
Expand Down Expand Up @@ -62,9 +62,6 @@
"inverse",
"trig",
"trigonometry",
"radians",
"angle",
"polyfill",
"ponyfill"
"radians"
]
}

0 comments on commit d54cb18

Please sign in to comment.