PHP asin() Function – Returns the Arcsine of a Value
The PHP asin() function returns the arcsine of a given float argument in radians, with detailed parameter description, return value explanation, and example code demonstrating usage with various inputs and their corresponding outputs.
The asin() function in PHP returns the arcsine of a given float argument, expressed in radians.
It is the inverse of sin(), meaning that for any value a within the function’s domain, a == sin(asin(a)).
Parameter: float $arg – the value to be processed.
Return value: The arcsine of $arg in radians.
Example usage:
<?php
echo asin(0.64);
echo asin(0);
echo asin(-1);
echo asin(1);
echo asin(2);
?>Output:
0.694498265627
0
-1.57079632679
1.57079632679
-1.#INDSigned-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
Laravel Tech Community
Specializing in Laravel development, we continuously publish fresh content and grow alongside the elegant, stable Laravel framework.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
