On 7/28/07, Tim Lahey <[EMAIL PROTECTED]> wrote:
> On 28/07/07, William Stein <[EMAIL PROTECTED]> wrote:
> > SAGE does have some support for this sort of thing via the
> > function command. Let me know if this
> > is at all what you're looking for. Here's an example:
> >
> > https://sage.math.washington.edu:8103/home/pub/1473/
>
> Thanks! That's exactly what I was looking for.
Excellent. If it doesn't work right, be sure to let us know, since
it's hardly been used by anybody yet, and is fairly new code.
> I don't
> suppose that there is a function to get an integrand?
Do you mean something like this:
sage: deltau = function('deltau')
sage: f = integrate(deltau(x), x)
sage: f
integrate(deltau(x), x)
sage: f
integrate(deltau(x), x)
sage: f._args
(deltau(x), x)
sage: f._args[0]
deltau(x)
Using f._args is hack-ish, i.e., you shouldn't have to do that.
However, it will give you access to the inputs args of any
formally evaluated function, even the integrate function.
> Once I figure out how to do some of my other Maple tricks
> (e.g., generating function names using code) I should have
> a few things to share such as a function to get the
> Euler-Lagrange equation. My Maple implementation of this
> is a few orders of magnitude faster than Maple's built-in
> implementation (0.01s vs 10s).
Please don't get too frustrated if things are slow again in SAGE.
We haven't put much work into optimization for the calculus package,
so there is substantial room for improvement.
-- 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-forum
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~----------~----~----~----~------~----~------~--~---