Why is evalf not changing $\pi$ and $e$ to floating point in the following:
h := proc (x) options operator, arrow; exp(x)*cos(x) end proc
Tay := taylor(h(x), x = (1/6)*pi, 2)
P2 := convert(Tay, polynom)
evalf(P2(.5))
The output is(exp((1/6)*Pi))(.5)*(cos((1/6)*Pi))(.5)+(-1.*(exp((1/6)*Pi))(.5)*(sin((1/6)*Pi))(.5)+(exp((1/6)*Pi))(.5)*(cos((1/6)*Pi))(.5))*(x(.5)-.1666666667*Pi(.5)). For my calculation, I need $\pi$ and $e$ to be approximations.
mypi=3.14159...andmye=2.71828...? – abiessu Sep 30 '13 at 20:55evalf(pi)andevalf(exp(1))usually evaluate to floating point. – Sujaan Kunalan Sep 30 '13 at 20:58