tan

(PHP 4, PHP 5, PHP 7) Tangent float tan ( float $arg ) tan() returns the tangent of the arg parameter. The arg parameter is in radians. Parameters: arg The argument to process in radians Returns: The tangent of arg Examples: tan() example <?php echo tan(M_PI_4); // 1

srand

(PHP 4, PHP 5, PHP 7) Seed the random number generator void srand ([ int $seed ] ) Seeds the random number generator with seed or with a random value if no seed is given. Note: There is no need to seed the random number generator with srand() or mt_srand() as this is done automatically. Parameters: seed Optional seed value Returns: No value is

sqrt

(PHP 4, PHP 5, PHP 7) Square root float sqrt ( float $arg ) Returns the square root of arg. Parameters: arg The argument to process Returns: The square root of arg or the special value NAN for negative numbers. Examples: sqrt() example <?php // Precision depends on yo

sinh

(PHP 4 >= 4.1.0, PHP 5, PHP 7) Hyperbolic sine float sinh ( float $arg ) Returns the hyperbolic sine of arg, defined as (exp(arg) - exp(-arg))/2. Parameters: arg The argument to process Returns: The hyperbolic sine of arg See also: sin() -

sin

(PHP 4, PHP 5, PHP 7) Sine float sin ( float $arg ) sin() returns the sine of the arg parameter. The arg parameter is in radians. Parameters: arg A value in radians Returns: The sine of arg Examples: sin() example <?php // Precision depends on your precision directiv

round

(PHP 4, PHP 5, PHP 7) Rounds a float float round ( float $val [, int $precision = 0 [, int $mode = PHP_ROUND_HALF_UP ]] ) Returns the rounded value of val to specified precision (number of digits after the decimal point). precision can also be negative or zero (default). Note: PHP doesn't handle strings like "12,300.2" correctly by default. See converting from strings. Parameters:

rand

(PHP 4, PHP 5, PHP 7) Generate a random integer int rand ( void ) int rand ( int $min , int $max ) If called without the optional min, max arguments rand() returns a pseudo-random integer between 0 and getrandmax(). If you want a random number between 5 and 15 (inclusive), for example, use rand(5, 15). CautionThis function does not generate cryptographically secure values, and should not be used for cryptographic purposes

rad2deg

(PHP 4, PHP 5, PHP 7) Converts the radian number to the equivalent number in degrees float rad2deg ( float $number ) This function converts number from radian to degrees. Parameters: number A radian value Returns: The equivalent of number in degrees Examples: rad2deg() example

pow

(PHP 4, PHP 5, PHP 7) Exponential expression number pow ( number $base, number $exp ) Returns base raised to the power of exp. Note: In PHP 5.6 onwards, you may prefer to use the ** operator. Parameters: base The base to use exp The exponent Returns: base raised to the power of exp. If both arguments are n

pi

(PHP 4, PHP 5, PHP 7) Get value of pi float pi ( void ) Returns an approximation of pi. The returned float has a precision based on the precision directive in php.ini, which defaults to 14. Also, you can use the M_PI constant which yields identical results to pi(). Returns: The value of pi as float. Examples: pi() example