After installing sage on my Macbook Pro (10.6.8), I tried the following code, which worked.
Then I tried:
Yikes! What happened? Any thoughts?
D.
You redefined x.
x
P = polygon([[1,2],[5,6],[5,0]]) Q = polygon([(-x,y) for x,y in P[0]]) print x
yields 5.0. That's why var('x') worked, it redefined x back.
5.0
var('x')
Found the answer, but not sure why.