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