Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Scroll tablelayout
sortDirectionASC
repeatTableHeadersdefaultstyle
widths10%, 9%, 13%, 68%
style
sortByColumn1
sortEnabledfalse
cellHighlightingtrue

...

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
languagetext
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

...