with

$a1 = $a + 1;

$F = Formula("1/$a1*(sin x)**($a1)");

$F = Formula("(sin x)**($a+1)/($a+1)");

if you are OK with putting the denominator there.

This forum has a limit to the number of forum postings you can make in a given time period - this is currently set at 5 posting(s) in 1 day

This is not about your answer checking issue, but if you would like the correct answer to *display* with things like 1/6 instead of 0.1666... then one option is you can replace:

$F = Formula("(sin x)**($a+1)/($a+1)");

if you are OK with putting the denominator there.

$F = Formula("1/($a+1)*(sin x)**($a+1)");

with

or just replace that one line with:with

Context()->flags->set(reduceConstants=>0);

$a1 = $a + 1;

$F = Formula("1/$a1*(sin x)**($a1)");

$a1 = $a + 1;

$F = Formula("1/$a1*(sin x)**($a1)");

$F = Formula("(sin x)**($a+1)/($a+1)");

if you are OK with putting the denominator there.

You are currently using guest access (Log in)