Sage in WeBWorK

From WeBWorK_wiki
Revision as of 16:18, 30 December 2011 by Travis (talk | contribs) (Created page with ' you can pass perl variables to the sage block if you need to from the problem initialization aubreyja_is that what you were trying to do? aubreyja_In that case, just do TEX…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search



you can pass perl variables to the sage block if you need to from the problem initialization

aubreyja_is that what you were trying to do?

aubreyja_In that case, just do TEXT(<<EOF);

aubreyja_not TEXT(<<'EOF');

JohnTravisWhat's the functional difference?

aubreyja_and make sure that the variables you want interpolated are defined above the sage block

JohnTravis'EOF' vs just EOF?

aubreyja_'EOF' tells perl not to interpolate variables, but <<EOF allows interpolation

15:17aubreyja_yes