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] Getting \def or \newcommand to work with SageTeX

2013-03-01 Thread Dan Drake
On Thu, 28 Feb 2013 at 06:46PM -0800, Nathan Carter wrote: > Sure. The goal is to create a LaTeX package for randomly generated exams. > It should let you do something like this: [snip] You know, it looks like what you _really_ want is a WebWorK server. :) Looking briefly over your TeX stuff,

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 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] Getting \def or \newcommand to work with SageTeX

2013-03-01 Thread Nathan Carter
Yeah, you're right, but I'm still going to argue. :) Indeed, the whole thing would work in Sage exclusively, or a combination of Sage and TeX (beyond SageTeX). Here are the priorities I was operating under; all are priorities for the end user of the package, not for the author of the package.