Hi Martin! On Oct 24, 9:52 am, Martin Albrecht <[email protected]> wrote: > sage: p.subs(**{'x2':x2}) > -7/2*x1*x2 + 1/2*x2^2 - x0*x3 + 1/165*x1 + 3 > > Note the two stars. The reason why the subs function accepts a dictionary is > that its signature is: > > p.subs(self, fixed, **kw=None) > > i.e. it also accepts a dictionary 'fixed'. This dictionary expects its keys to > be variables and not strings of variable names.
That explains everything. Thank you! Cheers, Simon --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
