PHP asin() Function Example

PHP asin() Function Example


Posted in : PHP Posted on : January 28, 2011 at 5:03 PM Comments : [ 0 ]

Using asin() function we are find the arc sine value of arg in radians.

PHP asin() Function Example:

Using asin() function we are find the arc sine value of arg in radians.

Syntax:

    asin(parameter)

The passing parameter require numeric value between -1 to 1. If parameter value is greater or less then the range then it return NAN value.

Example:

<?php
echo (asin(-5)."<br />");
echo(asin(0) . "<br />");
echo(asin(-1) . "<br />");
echo(asin(1) . "<br />");
echo(asin(5));
?> 

Output:

The output of this example is:

NAN
0
-1.5707963267949
1.5707963267949
NAN 

Download Example Code

Go to Topic «PreviousHomeNext»

Your Comment:


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 

 
Tutorial Topics