Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Math.pow() Method in javascript

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 104
    Comment on it

    The Math.pow() function calculates the power of x to y, x ^ y. Matrix exponentiation is supported for square matrices x, and positive integer exponents y. It returns the base to the exponent power, that is, base exponent. It Gets a number raised to the exponential power of another number.

    syantax

    math.pow(x, y)
    

    x is the base.
    y is the exponent. The exponent used to raise the base.

    output

    math.pow(2, 3);               // returns number 8
    
    var a = math.complex(2, 3);
    math.pow(a, 2)                // returns Complex -5 + 12i
    
    var b = [[1, 2], [4, 3]];
    math.pow(b, 2);               // returns Array [[9, 8], [16, 17]]
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: