On 12/2/06, William Stein <[EMAIL PROTECTED]> wrote:
>
> On Sat, 02 Dec 2006 07:10:41 -0800, David Joyner <[EMAIL PROTECTED]>
> wrote:
>
> >
> > Short of a clever python trick which is beyond me, I think to
> > implement calculus in an insanely easy way, you must fiddle with the
> > preprocessor.
> >
> > To illustrate a possible solution (as a starting point for a discussion,
> > not that I think this will be done), I'll mention an idea of mine which
> > got shot
> > down my everyone when I posted it awhile back (maybe last summer):
> > Change the preparser so that when you want to define (say) a function
> > like f(x) = sin(x), instead of having to type
> >
> > sage: f = maxima("sin(x)")
> > sage: f.integrate("x")
> >
> > they could type
> >
> > sage f:= x->sin(x)
> > sage: integrate(f)
> >
> > The ":=" would clue the parser that a new type of function is going to be
> > inputted. I believe this type of notation is used by both gap and maple.
> > Some simple way of inputting maxima functions is needed and IMHO
> > this is the main problem to making the calculus commands in SAGE
> > "insanely easy".
>
> I still disagree. Wouldn't this be easier:
>
> sage: f = sin(x)
> sage: integrate(f)
> cos(x)
>
> This is almost already implemented in SAGE. In fact the first line
> works, but the second isn't implemented yet.
Okay, sin was a bad example. How would you make the following work?
sage: f = exp(x)*sin(exp(x))
sage: integrate(f)
- cos(exp(x))
The first line fails.
>
> We might want to pre-define formal indeterminates a,b,c,...,z on
> startup of SAGE, so users can use any of them in such expressions.
>
> William
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---