Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Delayed assignment

Hi!

I'm new in Sage and I'm trying with the following input:

a=2;
x=a;
a=3;
x

Then, the output isn't updated. Is there any way to set a delayed assignment? I'm talking to something similar to the ':=' form of assignment in Mathematica. Note that with a delayed assignment isn't required to define 'x' as a function.

Thank you so much in advance!

Delayed assignment

Hi!

I'm new in Sage and I'm trying with the following input:

a=2;
x=a;
a=3;
x

Then, the output isn't updated. Is there any way to set a delayed assignment? I'm talking to about something similar to the ':=' form of assignment in Mathematica. Note that with a delayed assignment isn't required to define 'x' as a function.

Thank you so much in advance!