On Dec 2, 2012, at 12:37 PM, Stefan Krastanov <krastanov.ste...@gmail.com> wrote:
> The plotting module uses numpy floats so it will fail on very small > number or on small intervals. > > Even worse, the main plotting backend, namely matplotlib, also uses > machine precision, so even if we do the calculations in mpmath, we > will have to do the rescaling ourselves. > > However in this case the problem is not only in the plotting module because > both > > E(exp(I*1e-26*X)).evalf() > > and > > E(exp(I*1e-30*X)).evalf() > > return real parts of 1.0 I think you may need to set the precision higher in evalf. You may also have to use Float("1e-30", 30) so that the precision of that number is correct. Aaron Meurer > > -- > You received this message because you are subscribed to the Google Groups > "sympy" group. > To post to this group, send email to sympy@googlegroups.com. > To unsubscribe from this group, send email to > sympy+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/sympy?hl=en. > -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to sympy@googlegroups.com. To unsubscribe from this group, send email to sympy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sympy?hl=en.