in reply to Re: Bad While Loopin thread Bad While Loop
lets see
$A = ($a*($p1-$p2) + $b*($pT-$p1)/(-2)); $B = ($p1*($a*($p2-$p1) + $b*($pT-$p1)-$k*$d2-$d1i*$k)); [download]
In your script $p1 = $p2, so this is the same as:
$A = -0.5*$b*($pT-$p1); $B = $b*($pT-$p1)-$k*($d2-$d1i); [download]
What's the purpose of the var $p2?. Maybe you want to say:
$p2 = $p1; $p1 += .01; [download]
Instead
Check that your equations are valid