Re: [sage-edu] Extreme graphing

2013-03-19 Thread David Smith
I like this even better that what I was doing for the intended illustration in our book. The URL is https://www.math.duke.edu/education/calculustext-rev11/Chapter10/Section10-3/Chapter10-3-3M.html and the interact is at the very bottom of the page. Thanks, John. On Wednesday, March 6, 2013 3

Re: [sage-edu] Extreme graphing

2013-03-06 Thread John Travis
Just for the fun of it, I was playing with: @interact def _(m=slider(1,250,1,1)): plot(x^m/e^x,(x,0,2*m)).show() and things work really nice till m = 128. After that, it still runs but the graph has horizontal issues--using either aleph or 5.5. JT -- You received this message because y

Re: [sage-edu] Extreme graphing

2013-03-02 Thread David Smith
Thanks, Jason. I never would have thought of that, but on reflection, it appeared that the latex formatter would never switch to scientific notation, and this is a case where you definitely want it. I suppose the error was when it ran out of room for all those digits. With that removed, Sage

Re: [sage-edu] Extreme graphing

2013-03-01 Thread Jason Grout
On 3/1/13 9:02 AM, kcrisman wrote: For reference, x = var("x") @interact def _(f = input_box(x, label='$f(x) = $', width=40), x_range=input_grid(1,2,[[-8,8]], label='$x$ range', width=10), auto_update=False): a,b=x_range[0] html("\[ f (x) = %s \]"%str(latex(f)) ) p1=plot(f, (x

Re: [sage-edu] Extreme graphing

2013-03-01 Thread kcrisman
For reference, x = var("x") @interact def _(f = input_box(x, label='$f(x) = $', width=40), x_range=input_grid(1,2,[[-8,8]], label='$x$ range', width=10), auto_update=False): a,b=x_range[0] html("\[ f (x) = %s \]"%str(latex(f)) ) p1=plot(f, (x,a,b), color='blue', legend_label='$f(

Re: [sage-edu] Extreme graphing

2013-03-01 Thread David Smith
On Thursday, February 28, 2013 9:06:45 PM UTC-5, kcrisman wrote: > > > > On Thursday, February 28, 2013 5:21:06 PM UTC-5, Dan Drake wrote: >> >> On Thu, 28 Feb 2013 at 11:56AM -0800, David Smith wrote: >> > I've been experimenting (in an interact) with graphing x^m/e^x for >> large >> > values

Re: [sage-edu] Extreme graphing

2013-02-28 Thread kcrisman
On Thursday, February 28, 2013 5:21:06 PM UTC-5, Dan Drake wrote: > > On Thu, 28 Feb 2013 at 11:56AM -0800, David Smith wrote: > > I've been experimenting (in an interact) with graphing x^m/e^x for large > > values of m, in order to demonstrate that exp grows faster than any > power > > funct

Re: [sage-edu] Extreme graphing

2013-02-28 Thread Dan Drake
On Thu, 28 Feb 2013 at 11:56AM -0800, David Smith wrote: > I've been experimenting (in an interact) with graphing x^m/e^x for large > values of m, in order to demonstrate that exp grows faster than any power > function. This works fine up to m=15, but at 16 (and any higher value) I > get a long

[sage-edu] Extreme graphing

2013-02-28 Thread David Smith
I've been experimenting (in an interact) with graphing x^m/e^x for large values of m, in order to demonstrate that exp grows faster than any power function. This works fine up to m=15, but at 16 (and any higher value) I get a long list of errors ending with ParseFatalException: Expected end o