https://github.com/php/php-src
I will learn the mathematical methods , we will take the " Abs, Acos , Acosh and Asin " methods.
This function returns the absolute value of a natural, integer or real number. Thus, it will remove the sign from the specified number so that when it is a negative number, it eliminates the minus sign "-" before the number.
It is therefore impossible to get a negative number with this function, they will always be positive, it is therefore a very useful function to keep the "natural" part of a number.
It has the expression as parameter ,this parameter is used to specify an expression representing a number to process.
It return a number greater than 0 these values are the only ones that can be returned. The absolute value of a number is always positive.
To use the abs method you need to pass the number as parameter
abs($number)
I have a negative number and I want to get the positive of this number using the abs method
$number = -25;
echo abs($number);
The abs method will return the positive number , it will eliminate the minus sign (-) , and this is the result
This function returns the cosine arc of number . The acos is the inverse function of cos (), which means that a == cos (acos (a)) for any value in the validity range of acos ().
It has The argument to be treated and it returns the arc cosine of the argument, in radians.
To use the acos method you need to pass the argument as parameter
acos($argument)
The validity range is [-1,1], I will pass the number 0 to this method and this is the result
echo acos(0);
This function returns the hyperbolic cosine arc of an argument. It has the expression as parameter , This parameter is used to specify the expression containing the number to be processed.
To use the acosh method you must pass the argument as parameter
acosh(argument)
The validity range is [-1,+inf[, I will pass the number 3 to this method and this is the result
echo acosh(3);
This trigonometric function makes it possible to return the sine arc. It has the expression as parameter this parameter is used to indicate the expression containing the number to be processed.
The value of the parameter must be in a range between -1 and 1, otherwise the function will consider that domain error has occurred.
It returns -π / 2 to π / 2 these values are used to indicate the radians of the sine arc.
To use the asin method you need to pass a number between -1 and 1
asin($number)
I will pass the number 0 to the asin method and this is the result
https://github.com/alexendre-maxim/PHP-Tutorial/blob/master/string7.php