PHP asin

Education is not limited to just classrooms. It can be gained anytime, anywhere... - Ravi Ranjan (M.Tech-NIT)

PHP : asin() function

Description

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

Version

(PHP 4 and above)

Syntax

asin(number)

Parameter

Name

Description

Required /
Optional

Type

number

Numeric value.

Required

Float

 

Return value

The arc sine of a number radians.

Value Type : Float.

Pictorial Presentation

php-math-asin()

Example :

  1. $val1= 0;  

  2. $val2=.4;  

  3. $zasine1=asin($val1);  

  4. $zasine2=asin($val2);  

  5. echo "Arc sine of  $val1  is  $zasine1
    ";  

  6. echo "Arc sine of  $val2  is  $zasine2
    ";  

  7. ?>  

Output :

Arc sine of 0 is 0
Arc sine of 0.4 is 0.411516846067