Menu

#4966 float of a power with a complex exponent does not evaluate

None
open
nobody
numer (17)
5
16 hours ago
16 hours ago
No

float(%e^(%i*%pi/8)) returns 2.718281828459045^((%i*%pi)/8) unevaluated, while bfloat and numer both evaluate it

Maxima 5.49post, SBCL 2.6.7.

(%i1) display2d:false$
(%i2) float(%e^(%i*%pi/8));
(%o2) 2.718281828459045^((%i*%pi)/8)
(%i3) block([fpprec:20], bfloat(%e^(%i*%pi/8)));
(%o3) 3.8268343236508977173b-1*%i+9.2387953251128675613b-1
(%i4) ev(%e^(%i*%pi/8), numer);
(%o4) 0.3826834323650898*%i+0.9238795325112867

Expected: (%o2) = 0.9238795325112867 + 0.3826834323650898*%i.

float floats the base and then leaves the power alone, producing a form that is neither symbolic nor numeric.

Discussion


Log in to post a comment.