[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

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

Re: [sage-edu] Getting \def or \newcommand to work with SageTeX

2013-02-28 Thread Dan Drake
On Tue, 26 Feb 2013 at 04:50AM -0800, Nathan Carter wrote: > The error is this: > Runaway argument? > \end {document} > ! File ended while scanning use of \next. > > \par > > The same error occurs if I use \newcommand instead of \def. Any tips on > how I can get past the fact th

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

2013-02-28 Thread Nathan Carter
Sure. The goal is to create a LaTeX package for randomly generated exams. It should let you do something like this: \documentclass{whatever} % Create a whole bunch of exam problem construction methods, with this tool: % \createproblem{name}{Sage setup code}{problem text with \sage calls in it}

Re: [sage-edu] Getting \def or \newcommand to work with SageTeX

2013-02-28 Thread Nathan Carter
Actually, one tiny clarification: % What each \createproblem{}{}{} command does is run a \sagesilent that > does is the following: > % 1. Ensures that a global problem dictionary is defined; if allProblems > isn't defined globally, do allProblems = {} > % 2. Constructs and stores a new problem