## WeBWorK Problems

### disabling the evaluation of constants

by Michael Miller -
Number of replies: 1
I am having difficulty disabling the evaluation of constants, as the following example shows.

Context()->flags->set(reduceConstants=>0);
Context()->flags->set(reduceConstantFunctions=>0);
$f = Formula("2^x");$df = $f->D(); The resulting value for$df is (0.693147*2^x) .

How can I get it to be ln(2)*2^x ?