diff --git a/ptx/sec_antider.ptx b/ptx/sec_antider.ptx index a9ea0c2ff..4392361f4 100644 --- a/ptx/sec_antider.ptx +++ b/ptx/sec_antider.ptx @@ -1501,8 +1501,11 @@ if($envir{problemSeed}==1){$fpp=7;$fp0=-1;$f0=10;}; Context("Fraction"); $a = Fraction($fpp,6); - $c = Fraction($f0 - $a - $fp0); - $F = Formula("$a x^3 + $fp0 x + $c"); + $a2 = Fraction($fpp,2); + $a3 = Fraction($fpp,3); + $b = Fraction($fp0 - $a2); + $c = Fraction($f0 + $a3 - $fp0); + $F = Formula("$a x^3 + $b x + $c");

diff --git a/ptx/sec_deriv_basic_rules.ptx b/ptx/sec_deriv_basic_rules.ptx index d4d0f8081..e4c83231a 100644 --- a/ptx/sec_deriv_basic_rules.ptx +++ b/ptx/sec_deriv_basic_rules.ptx @@ -1970,7 +1970,7 @@ parser::Assignment->Allow; $f=Formula("$b x + $c")->reduce; $k=$f->eval(x=>$a); - $t=$f; + $t=Formula("y=$f"); $n=Formula("y=-1/$b(x-$a)+$k");