How to use asin in PHP

This article describe about asin() Function in PHP.
  • 1209

asin() Function

This function returns the arcsine of a number as a numeric value between -PI/2 and PI/2 radians.

Syntax

asin(a)

 

Parameter Description
a Required. And must be numeric value between -1 to 1.

Note: If the range outside between -1 to 1 then browser return -1.#IND.

Example

<html>
<body>
<?php
echo(asin(0.44) . "<br />");
echo(asin(0) . "<br />");
echo(asin(-1) . "<br />");
echo(asin(1) . "<br />");
echo(asin(2))
?>
</body>
</html>

 

Output


asinphp.jpg

You may also want to read these related articles Click here

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.