On Mon, 28 Feb 2011 at 01:26PM -0800, jtyard wrote:
> I'm running sage 4.6.1 and cannot use plot after loading mpmath.
> Namely, running
> 
> > from mpmath import *
> > plot(lambda t: sin(2*pi*t), [1, 4])
> 
> produces no output in the notebook.  I'm loading mpmath because I need
> to make plots of theta functions, and the page
> 
> http://mpmath.googlecode.com/svn/trunk/doc/build/functions/elliptic.html#jacobi-theta-functions
> 
> tells me to first run "from mpmath import *" to gain access to jtheta.

I'm not 100% sure what's going on, but I do see that mpmath has its own
plot function, and your "from mpmath import *" line overwrites Sage's
usual plot function with mpmath's.

This works:

sage: import mpmath
sage: plot(lambda t: mpmath.sin(2*pi*t), (1,4))

So I guess the question is, why isn't mpmath's plot function working?

Dan

--
---  Dan Drake
-----  http://mathsci.kaist.ac.kr/~drake
-------

Attachment: signature.asc
Description: Digital signature

Reply via email to