User:Malcolm/wip/Sage WW Notes

From WeBWorK_wiki
< User:Malcolm‎ | wip
Revision as of 14:21, 12 June 2012 by Malcolm (talk | contribs) (Created page with "Notes on embedding Sage into WW problems using the Sage cell server - May/June 2012 When passing functions to Sage, if the function is defined as a math object problems can o...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Notes on embedding Sage into WW problems using the Sage cell server - May/June 2012

When passing functions to Sage, if the function is defined as a math object problems can occur since it can happen that none of

$f
$f->string()
$f->stringify()
$f->TeX()

return the orginal string used to define the function.

Possible solution: Use a construction like

$f_raw = "(x-(-2))*(x-2)*(x-4)";
$f = Compute($f_raw);