<-- Previous || Up || Next -->

Power Function
Math Complex Class

Public Function Power( _
      ByVal vX As Variant _
    , ByVal vY As Variant _
    ) As Variant

"X To The Power Of Y"
X and Y can be real and/or complex numbers.

    ? Power(-2, 3)
    ? Power("-3|-4", 3)
    ? Power(3, "-3|-4")
    ? Power("-5|-7", "-3|-4")
See also:
    Addit Function
    Exponent Function
    Exp10 Function
    NthRoot Function
    PowerVerify Subroutine
vX: The number which is raised to the power vY. Function returns Null if vX is Null or cannot be fixed up to a real or complex number (as defined by the ComplexStringToReals function). Complex numbers are represented within strings as "R|I" where R is the real part and I is the imaginary part.

vY: The power to which vX is raised. Function returns Null if vY is Null or cannot be fixed up to a real or complex number.

Note: Power(X, 2) is equivalent to but less accurate than Square(X).

    Exponent(Logarithm(X) * Y)

Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.