11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ASIN<br />

Syntax<br />

ASIN(expr)<br />

Description<br />

The <strong>UniBasic</strong> ASIN function returns the trigonometric arc sine (inverse sine) of a<br />

numeric expression. expr must be a value between -1 and +1. ASIN returns a value<br />

expressed as the degree of the arc sine of the input, which ranges from -90 to +90. If<br />

expr evaluates to a value outside the range of -1 and +1, the UniData displays an error<br />

message and returns 0 as the result.<br />

With null value handling on, the result of any mathematical operation, function, or<br />

comparison involving the null value is the null value. Therefore, ASIN returns the<br />

null value when expr is the null value.<br />

Examples<br />

In the following example, the program statement assigns 30, the arc sine of 0.5, to<br />

ARCSIN:<br />

ARCSIN = ASIN(0.5)<br />

In the next example, the program statement prints -30, the arc sine of -0.5:<br />

PRINT ASIN(-0.5)<br />

Related <strong>Commands</strong><br />

ACOS, ATAN, COS, SIN, TAN<br />

1-106 <strong>UniBasic</strong> <strong>Commands</strong> <strong>Reference</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!