Date: Nov 30, 2012 3:32 PM
Author: Roger Stafford
Subject: Re: algebraic loop error
"mado " <firstname.lastname@example.org> wrote in message <email@example.com>...
> if Pn>Pm
> Ip = Ipold+K1 *e
> Ip = Ipold+K2 *e
- - - - - - - - - -
There is something amiss in your code. The 'if-end' result is totally ignored:
Ip = Ipold+K1 *e
Ip = Ipold+K2 *e
Regardless of whether Pn is greater than Pm or not, the result is always the same. The line "Ip = Ipold+K2*e" overwrites whatever change was made to 'Ip' in the 'if' construct. I am sure you meant something else.