Sage in WeBWorK
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