## WeBWorK Problems

### Re: /maCalcDB/setDerivatives7Log/mec8.pg

by Davide Cervone -
Number of replies: 0
Looking at the diagnostics told me that the limits are not being properly applied, since the graphs run from -2 to 2 (the default limits) rather than 5 to 10, as expected. That made me look more carefully at where they are set, and I noticed that they are being set improperly. It should be
    Context()->variables->set(x=>{limits=>[5,10]});

with variables rather than flags.

Unfortunately, changing this didn't fix the problem either (though is should have) and I don't have the time at the moment to look into it further. In the meantime, you can do

    Context()->flags->set(limits=>[5,10]);

to set the default limits for EVERYTHING (and yes, this one IS flags), or you can use
    ANS($Deriv1->cmp(limits=>[5,10]));  or $Deriv1 = \$Funct->D->with(limits=>[5,10]);

as any of these do work.

Davide