...
Scroll tablelayout | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
For an input argument val in [-1.0, 1.0], returns a floating point angle (degrees) in the range [-90.0, 90.0]. For input arguments t in the ranges: (1.0, Inf], [-Inf, -1.0) and NaN, asin(t) returns NaN.
Examples
Code Block | ||
---|---|---|
| ||
float $t; |
...
float $asin_of_t; |
...
float $sin_of_asin_of_t; |
...
// asin(1.0) is 90 degrees because sin(90 degrees) = 1.0 |
...
$t = 1.0; |
...
$asin_of_t = asin($t); |
...
$sin_of_asin_of_t = sin($asin_of_t); |
...
print("t, asin(t), sin(asin(t)) = " + string($t) + ", " + string($asin_of_t) + ", " + string($sin_of_asin_of_t)); |
...
// 1.1 is not a meaningful input into asin and will return |
...
// NaN (-1.#IND00)$t = -1.1; |
...
$asin_of_t = asin($t); |
...
$sin_of_asin_of_t = sin($asin_of_t); |
...
print("t, asin(t), sin(asin(t)) = " + string($t) + ", " + string($asin_of_t) + ", " + string($sin_of_asin_of_t)); |
Additional information
Related commands
...