Open yzrmn opened 5 years ago
0.66[...] + 0 · i
, which includes the imaginary part, but its factor is zero, so a Simplify
etc. would end up printing the number with the imaginary part omitted.The imaginary part quite small (10E-17), so I think it's a precision error. You won't get these with numeric solve. Regarding the number marks: Wouldn't it be better without them? :)
Hi,
[P'_n(x))]^2
should be[P'_n(x)]^2
I guess.N[Solve[LegendreP[n, x] == 0]]
withn>5
gives imaginary parts which shouldn't be there. The output then is e.g.Also the output format isn't really clear to me (the
'256.
and following that). However, you could fix the imaginary parts withNSolve[LegendreP[n, x] == 0, x, Reals, WorkingPrecision -> precision]
Greetings!