On 7/24/07, Roger Mason <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> Suppose I have a symbolic matrix:
>
> sage: m = matrix([[a,b],[d,e]])
>
> and I wish to substitute some or all elements of m with numbers.
>
> The obvious
>
> sage: m.substitute(a=1)
>
> returns
>
> [a b]
> [d e]
>
> so the substitution (which works fine on a list) does not work on a
> matrix.
>
> How do I do such substitutions?

You should do m.substitute(a=1) just like you're doing -- unfortunately,
nobody implemented that yet, and it's doing some dumb generic behavior.
[...]
Fortunately, I just implemented this for SAGE-2.7.1, which I'll release very
very soon.

 -- 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