[sage-support] Re: Can't plot a Bessel function

2010-03-11 Thread Nicolas
Sorry... I found that this was already answered and works through a lambda function trick On 11 mar, 16:24, Nicolas wrote: > Strange plot behavior : I would like to just plot a Bessel function > Am I doing anything wrong ? > (I tried to plot it through an iterator and a list plot... works ok > bu

[sage-support] Re: can't plot a Bessel function

2008-09-11 Thread Jason Merrill
On Sep 11, 10:32 am, Jason Merrill <[EMAIL PROTECTED]> wrote: > > We should think hard about making things easy to partially evaluate. > Why not have all the special functions behave like polylog? > Furthermore, it would ideally be easy for a user to define their own > functions that behave like p

[sage-support] Re: can't plot a Bessel function

2008-09-11 Thread Dan Drake
On Thu, Sep 11, 2008 at 10:07 PM, John Cremona <[EMAIL PROTECTED]> wrote: > > This works: > > plot(lambda t:bessel_J(1, t), (1, 10)) That's very helpful, thanks! Dan -- --- Dan Drake <[EMAIL PROTECTED]> - KAIST Department of Mathematical Sciences --- http://math.kaist.ac.kr/~drake --~

[sage-support] Re: can't plot a Bessel function

2008-09-11 Thread John Cremona
I agree entirely. Users should not have to have to think exactly how about polylog() and bessel_J() are defined. John 2008/9/11 Jason Merrill <[EMAIL PROTECTED]>: > > On Sep 11, 9:07 am, "John Cremona" <[EMAIL PROTECTED]> wrote: >> This works: >> >> plot(lambda t:bessel_J(1, t), (1, 10)) >> >>

[sage-support] Re: can't plot a Bessel function

2008-09-11 Thread Jason Merrill
On Sep 11, 9:07 am, "John Cremona" <[EMAIL PROTECTED]> wrote: > This works: > > plot(lambda t:bessel_J(1, t), (1, 10)) > > so (1) a one-variable function is reequired, and the lambda > construction creates such a function from the2-variable bessel_J, and > (2) the range is a tuple (xmin,xmax) . >

[sage-support] Re: can't plot a Bessel function

2008-09-11 Thread John Cremona
This works: plot(lambda t:bessel_J(1, t), (1, 10)) so (1) a one-variable function is reequired, and the lambda construction creates such a function from the2-variable bessel_J, and (2) the range is a tuple (xmin,xmax) . John Cremona 2008/9/11 Dan Drake <[EMAIL PROTECTED]>: > > Certainly I must

[sage-support] Re: can't plot a Bessel function

2008-09-11 Thread David Joyner
I don't know what the problem is. Here is a workaround: sage: list_plot([(t,bessel_J(1,1+9*t/100)) for t in range(100)], plotjoined=True) On Thu, Sep 11, 2008 at 4:25 AM, Dan Drake <[EMAIL PROTECTED]> wrote: > > Certainly I must be doing something dumb, but I can't figure out what. I do > > t