Thanks; your answer explained it. I don't understand why Python works
that way, but I'll bet there's a good reason.
regards
john perry
On Oct 6, 12:14 pm, Mike Hansen wrote:
> Hello,
>
> On Wed, Oct 7, 2009 at 12:08 AM, john_perry_usm wrote:
> > sage: f(yvar = xvar)
> > x^2 + y^2
> > sage: f({
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 wrote:
> Hi,
>
> Consider the following expression sequence:
>
> sage: var('y')
> y
>
Hello,
On Wed, Oct 7, 2009 at 12:08 AM, john_perry_usm wrote:
> 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?
Doing f