Let me follow up: I don't get this either, and it may get to the heart of the distinction more easily.
sage: f(yvar = 2) x^2 + y^2 sage: f(y = 2) x^2 + 4 regards john perry On Oct 6, 12:08 pm, john_perry_usm <[email protected]> wrote: > Hi, > > Consider the following expression sequence: > > sage: var('y') > y > sage: f = x**2 + y**2 > sage: yvar = y > sage: xvar = x > sage: f(yvar = xvar) > x^2 + y^2 > sage: f({yvar:xvar}) > 2*x^2 > > I was under the impression that both forms of substitution should > return the same thing, but apparently not. Can someone explain the > distinction to me? > > regards > john perry --~--~---------~--~----~------------~-------~--~----~ 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 URL: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---
