On 12/10/10 4:21 PM, Joris Vankerschaver wrote:
On 10 dec, 13:25, Jason Grout<[email protected]> wrote:3. If you *really* want to use Q like you did above, you could do this: sage: Q=var('x,y,z') sage: f(*Q)=(x-z,y-z) sage: f (x, y, z) |--> (x - z, y - z)This is exactly what I need, but thanks also for the explanation of what goes on behind the scenes! I had a few follow-questions, but I can figure it out from here knowing what the preparser does.
You probably already know this, but just in case: since that f(...)=... syntax is not valid python, it won't work in the library or in normal python files. You'd have to do something like what the preparser returns or the equivalent (e.g., create a vector over Callable function ring with certain parameters).
Jason -- To post to this group, send an email to [email protected] To unsubscribe from this group, send an email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
