Skip to content

Tag Archives: javascript-math

Below is the example of the Math cbrt() Method. Example: <script type="text/javascript">     document.write("cbrt of 64 : "                       + Math.cbrt(64) + "<br>");    document.write("cbrt of 27: " … Read More
Below is the example of the Math cosh() Method. Example: Javascript <script>   // Printing hyperbolic cosine of some numbers   // taken as parameter of Math.cosh()… Read More
Math.asinh() function is used to return the hyperbolic arc-sine of a number. The asinh() is a static method of Math, therefore it is always used… Read More
Below is the example of the Math acosh( ) Method. Example: <script>     // Here different values is being used for     // getting hyperbolic cosine method's… Read More
Below is the example of the Math asinh( ) Method. Example: <script>    // Here different values is being used for    // getting hyperbolic sine function's… Read More
The Math.exp() is an inbuilt function in JavaScript that is used to get the value of ep, where p is any given number. The number e… Read More
The Math.atanh() function is an inbuilt function in JavaScript which is used to get hyperbolic arctangent of a number. The hyperbolic arctangent is known by… Read More
Below is the example of the Math atan( ) Method. Example: <script type="text/javascript">      document.write("When 1 is  passed as a parameter: "       + Math.atan(1)); </script> Output:… Read More
Below is the example of the Math exp() Method. Example: <script type="text/javascript">    document.write("When zero is  passed as a parameter: "           + Math.exp(0)); </script> Output: When… Read More
The Math.round() function in JavaScript is used to round the number passed as parameter to its nearest integer. Syntax Math.round(value) Parameters : The number to… Read More
The Math.ceil() function in JavaScript is used to round the number passed as parameter to its nearest integer in Upward direction of rounding i.e towards… Read More
Below is the example of the Math floor() Method. Example: <script type="text/javascript">          document.write("Result : " + Math.floor(.89)); </script> Output: Result : 0 The Math.floor method… Read More
Below is the example of the Math sqrt() Method. Example: <script type="text/javascript">     document.write(Math.sqrt(-2) + "<br>");      document.write(Math.sqrt(-2.56));           </script> Output: NaN NaN The Math.sqrt() method in JavaScript… Read More
Below is the example of the Math abs() method. Example: <script type="text/javascript">     document.write(Math.abs(-2)+"<br>");      document.write(Math.abs(-2.56));           </script> Output: 2 2.56 The Math.abs() method is used to return… Read More
Below is the example of the Math random() Method. Example: For getting a random number between 0(inclusive) and 1(exclusive). <script type="text/javascript">     var random = Math.random(… Read More

Start Your Coding Journey Now!