On 3/8/07, Kyle Schalm <[EMAIL PROTECTED]> wrote:
> > That said, I would love to add a function that basically does the above
> > to SAGE, but it's unclear what the notation would even be.  One idea
> > is this:
> >    sage: f(w=3)
>
> in my actual situation, i have something like
>
>     R1.<w0,w1,w2,w3,w4,w5> = QQ['w']
>     R2.<z> = R1['z']
>
> and i would like to compute the w's from some other variables, and then
> pass this list into the evaluator:
>
>     w = <expression that returns list of [w0,...,w5]>
>     f(z;w)  # pseudo-notation
>
> instead of the cumbersome
>
>     f(w0=w[0],w1=w[1],...)
>
> which only handles a constant number of variables anyway.
> i don't know what the notation should be, but it should somehow handle
> multiple variables.
>
> man, i really love using a software package where i can request features
> and have a response within hours.

:-)  Actually, you'll like it even more when you realize that
the "so called" cumbersome notation
          f(w0=w[0],w1=w[1],...)
isn't.   In fact, if d is any dictionary, if you do f(**d),
its as if you called f with the a bunch of key=value
inputs.  So with the notation I propose you can
do arbitrarily complicated things like you suggest
just by doing f(**some dict).  So what you want should
be easy to build on what  propose.  Thoughts?

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-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to