Sage in WeBWorK: Difference between revisions
Jump to navigation
Jump to search
(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…') |
No edit summary |
||
Line 2: | Line 2: | ||
To pass perl variables to the sage block if you need to from the problem initialization use: | |||
:: TEXT(<<EOF); | |||
where <<EOF allows interpolation | |||
otherwise use: | |||
:: TEXT(<<'EOF'); | |||
where 'EOF' tells perl not to interpolate variables | |||
15:17aubreyja_yes | 15:17aubreyja_yes |
Revision as of 21:20, 30 December 2011
To pass perl variables to the sage block if you need to from the problem initialization use:
- TEXT(<<EOF);
where <<EOF allows interpolation
otherwise use:
- TEXT(<<'EOF');
where 'EOF' tells perl not to interpolate variables
15:17aubreyja_yes