in reply to Re^2: Bad While Loop
in 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));
In your script $p1 = $p2, so this is the same as:
$A = -0.5*$b*($pT-$p1); $B = $b*($pT-$p1)-$k*($d2-$d1i);
What's the purpose of the var $p2?. Maybe you want to say:
$p2 = $p1; $p1 += .01;
Instead
$p1 += .01; $p2 = $p1; ?Check that your equations are valid
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Bad While Loop
by riceboyyy (Novice) on Oct 26, 2011 at 00:25 UTC |