4.9.1.3 Assignments and definitions

If you assign the mathematica $ 5$ to a variable $ c$ in SAGE, this does not affect the $ c$ in Mathematica.

sage: c = m(5)
sage: m('b + c x')
b + c*x
sage: m('b') + c*m('x')
b + 5*x

The SAGE interfaces changes SAGE lists into Mathematica lists:

sage: m = mathematica
sage: eq1 = m('x^2 - 3y == 3')
sage: eq2 = m('2x - y == 1')
sage: v = m([eq1, eq2])
sage: print v
{x^2 - 3*y == 3, 2*x - y == 1}
sage: v.Solve(['x', 'y'])
{{y -> -1, x -> 0}, {y -> 11, x -> 6}}

See About this document... for information on suggesting changes.