On Tuesday 15 May 2007 20:40, Michel wrote:
> Here is a little backwards compatible patch that makes "fix" accept
> keyword arguments and provide subs and substitute
> as aliases. This is for compatibility with the corresponding methods
> for symbolic expressions.
>
> http://emis.uhasselt.be/sage_patches/subs_substitute.patch
>
> Doctest:
>
> sage: x, y = MPolynomialRing(ZZ,2,'xy').gens()
> sage: f = x^2 + y + x^2*y^2 + 5
> sage: f.substitute(x=5)
> 30 + y + 25*y^2
>
> Currently this is only implemented for (multi-)polynomials and not for
> rational functions. If there is interest then
> I can provide a subs/substitute method for rational functions also.
>
> Michel

I am applying your patch to my local copy right now as I working on 
MPolynomials right now (switching to libSINGULAR).

Thanks!
Martin

-- 
name: Martin Albrecht
_pgp: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8EF0DC99
_www: http://www.informatik.uni-bremen.de/~malb
_jab: [EMAIL PROTECTED]


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to