0

After installing sage on my Macbook Pro (10.6.8), I tried the following code, which worked.

enter image description here

Then I tried:

enter image description here

Yikes! What happened? Any thoughts?

D.

David
  • 981
  • 1
  • 15
  • 27

2 Answers2

2

You redefined 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.

kcrisman
  • 4,374
  • 20
  • 41
0

Found the answer, but not sure why.

enter image description here

David
  • 981
  • 1
  • 15
  • 27