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)