Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP asin() Function

PHP asin() Function

PHP Math Reference Manual PHP Math Reference Manual

Example

Return the arc sine of different numbers:

"); echo(asin(-0.4) . "
"); echo(asin(0) . "
"); echo(asin(-1) . "
"); echo(asin(1) . "
"); echo(asin(2)); ?>

Run Example »


Definition and Usage

The asin() function returns the arc sine of a number.

**Tip:** asin(1) returns the value of Pi/2.


Syntax

asin(

number

);

Parameters Description
number Required. Specifies a number in the range -1 to 1.

Technical Details

Return Value: number The arc sine of. If number is not in the range -1 to 1, NAN is returned.
Return Type: Float
PHP Version: 4+

PHP Math Reference Manual PHP Math Reference Manual