This defines the principal values precisely. The principal cube root is a complex approximately equal to #C(1.0 1.73205), not -2.Įxpt is defined as b^x = e^x log b. For example, (expt -8 1/3) is not permitted to return -2, even though -2 is one of the cube roots of -8. The result is always the principal complex value. The result of expt can be a complex, even when neither argument is a complex, if base-number is negative and power-number is not an integer. For expt of a complex rational to an integer power, the calculation must be exact and the result is of type (or rational (complex rational)). If the base-number is a rational and power-number is an integer, the calculation is exact and the result will be of type rational otherwise a floating-point approximation might result. exp has no branch cut.Įxpt returns base-number raised to the power power-number. Exp returns e raised to the power number, where e is the base of the natural logarithms.
0 Comments
Leave a Reply. |