WeBWorK Main Forum

Fractional exponents display

Re: Fractional exponents display

by Michael Gage -
Number of replies: 0
Context()->flags->set(reduceConstants=>0);
$f = Formula("x^(2/3)");
Context()->texStrings;
BEGIN_TEXT
\( $f\)
END_TEXT
Context()->normalStrings;

The above works.  There might be another way to change the context

for just one Formula.