LlAsin
Looking for the current API? Open the llAsin reference →
Function notes
The returned value is in the range [-PI_BY_TWO, PI_BY_TWO], or NaN signifying a complex result when the parameter is out of range.
Return value notes
Caveats
- Triggers a Math Error for complex results if not compiled in Mono.
Examples
// Touch the object with this script in it to see the arcsine of random numbers!
default
{
touch_start(integer num)
{
float r = llFrand(2) - 1.0;
llOwnerSay("The arcsine of " + (string)r + " is " + (string)llAsin(r));
}
}See also: functions
See also: articles
Original wiki source
Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.