On Mon, Oct 18, 2010 at 3:54 AM, gerrob <robert.gerb...@gmail.com> wrote: > What am I doing in a wrong way?
There are two differences. 1) In the .py file, there is no preparsing so the "1" in the function is of type "int" rather than Integer. This only causes a problem with #2. 2) You are not importing the exp function that is used from the commandline. sage: from sage.misc.functional import exp as exp2 sage: exp2(1) e sage: exp2(int(1)) 2.71828182846 sage: exp(1) e sage: exp(int(1)) e Once "exp2" returns a floating point number, there isn't a way to recover the extra digits. --Mike -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org