This question might be related to this question: http://ask.sagemath.org/question/966/problem-with-sign-sgn-and-n
I have a symbolic calculation and I do evaluate it numerically. Within one of my classes (within my notebook; no external files) I evaluate this term
within a for loop.
I am getting the following error:
If I copy paste the expression
to my notebook it evaluates fine to:
I even tried to replace pi and e using a dictionary but I can't get it working.
Any ideas what i am doing wrong?
Thanks in advance,
Markus P.S.: I can make the notebook public if usefull
I don't know why this is happening, but here are some workarounds: one option is to replace
A second option: right after the line
add the line
By the way, you can also replace the "constants" dictionary with
to give better precision.
Asked: Dec 22 '11
Seen: 150 times
Last updated: Dec 30 '11
powered by ASKBOT version 0.7.22
Copyright Sage, 2010. Some rights reserved under creative commons license.