Compute the inverse coversed sine of a single-precision floating-point number (in radians).
The inverse coversed sine is defined as
var acoversinf = require( '@stdlib/math/base/special/acoversinf' );
Computes the inverse coversed sine of a single-precision floating-point number (in radians).
var v = acoversinf( 0.0 );
// returns ~1.5708
v = acoversinf( 3.141592653589793 / 2.0 );
// returns ~-0.6075
v = acoversinf( 3.141592653589793 / 6.0 );
// returns ~0.4966
If x < 0
, x > 2
, or x
is NaN
, the function returns NaN
.
var v = acoversinf( -1.0 );
// returns NaN
v = acoversinf( 3.14 );
// returns NaN
v = acoversinf( NaN );
// returns NaN
var uniform = require( '@stdlib/random/array/uniform' );
var logEachMap = require( '@stdlib/console/log-each-map' );
var acoversinf = require( '@stdlib/math/base/special/acoversinf' );
var x = uniform( 100, 0.0, 2.0, {
'dtype': 'float32'
});
logEachMap( 'acoversinf(%d) = %d', x, acoversinf );
#include "stdlib/math/base/special/acoversinf.h"
Computes the inverse coversed sine of a single-precision floating-point number (in radians).
float out = stdlib_base_acoversinf( 3.141592653589793f / 2.0f );
// returns ~-0.6075f
The function accepts the following arguments:
- x:
[in] float
input value.
float stdlib_base_acoversinf( const float x );
#include "stdlib/math/base/special/acoversinf.h"
#include <stdio.h>
int main( void ) {
const float x[] = { -5.0f, -3.89f, -2.78f, -1.67f, -0.56f, 0.56f, 1.67f, 2.78f, 3.89f, 5.0f };
float v;
int i;
for ( i = 0; i < 10; i++ ) {
v = stdlib_base_acoversinf( x[ i ] );
printf( "acoversinf(%f) = %f\n", x[ i ], v );
}
}