14.11.1.4 Function definitions

Define mathematica functions by simply sending the definition to the interpreter.

sage: m = mathematica
sage: _ = mathematica('f[p_] = p^2');
sage: m('f[9]')
81

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