-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMath Function.php
58 lines (58 loc) · 2.61 KB
/
Math Function.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<!--Math Function -->
<!-- 1. abs -> Absolute value
2.acos -> Acr cosine
3. acosh -> Inverse Hyperbolic cosine
4. asin -> Arc sine
5. asinh -> Inverse Hyperbolic sine
6. atan2 -> Arc tangent of two variables
7. atanh -> Inverse Hyperbolic tangent
8. base_convert ->Convert a number between arbitrary base
9. bindec -> Binary to decimal
10. ceil -> Round fractions up
11. cos -> Cosine
12. cosh ->Hyperbolic cosine
13. decbin ->Decimal to bimary
14. dechex -> Decimal to hexadecimal
15. decoct -> Decimal to octal
16. deg2rad -> Convert the number in degrees to the radian equivalent
17. exp -> Calculate the exponent of e
18. expml -> Returns the exp(number)-1, computed in a way that is accurate evene when the value of number is close to zero
19. floor -> Round fraction down
20. fmod -> Returns the floating point remainder (modulo) of the division of the arguments
21. gentrandmax -> Show largest possible random value
22. hexdec -> Hexdecimal to decimal.
23. hypot -> Calculate the length of the hypotenuse of the a right-angle triangle
24.intdiv -> Integer division
25.is_finite -> Finds whether a value is a legal finite number
26. is_infinite -> Finds whether a value is infinite
27. is_nan -> Finds whether a value is not a number
28. lcg_value -> Combined linear congruential generator
29. log10 -> Base-10 logarithm
30. log1p -> Returns log(1+number),computed in a way that is accurate evene when the value of number is close to zero
31. log -> Natural logarithm
32. max -> find highest value
33. min -> find lowest value
34. mt_getrandmax -> Show largest possible random value
35.mt_rand -> Generate random value via the mersenne Twister algorithm Random number generator
36. mt_stand -> seeds the Mersenne Twister Random number generator
37. octdes -> octal to decimal
38. pi -> Get value pi
39.pow -> Exponential expression
40. rad2deg -> Convert the radian number to the equivalent number in degrees
41. rand -> Generate a random integer
42. round -> Rounds a float
43. sin -> sine
44. sinh -> Hyperbolic sine
45. sqrt -> Square root
46. srand -> Seed the random number generator
47. tan -> Tangent
48. tanh -> Hyperbolic tangent
-->
<!-- Some Example -->
<?php
// echo sqrt(100);
$value = 1000;
$a = $value;
// echo sqrt($value);
echo sqrt($a);
?>