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.

Laravel Tech Community
Laravel Tech Community
Laravel Tech Community
PHP asin() Function – Returns the Arcsine of a Value

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.#IND
Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

mathfunctionexampleasin
Laravel Tech Community
Written by

Laravel Tech Community

Specializing in Laravel development, we continuously publish fresh content and grow alongside the elegant, stable Laravel framework.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.