Re: Difficulty with Relatively Simple IF Structure



"monir" <monirg@xxxxxxxxxxxx> wrote in message
news:61911c78-04f3-4b8a-b615-dfcbc59939a2@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
e p chandler;

Thank you for the attempt.

Your suggested modifications are in error since they represent two
serious misinterpretations of what the nested IF supposed to do:
A) If the condition is TRUE in the outermost IF, then exit the nested
IF block, and continue for the next "i" of the DO loop.
NOT "quit the DO loop".

It exits the inner DO loop, not the outer one, and the code
appears to be equivalent to yours.

B) In either branch of the inner IF, a new bisection attempt MUST be
followed by calling the integrator QROMO() to obtain the corresponding
new value of "res" before re-testing the condition.
You need GO TO 11 once you enter either branch of the inner IF.

His code does NOT require GO TO 11,
because that is covered by the DO loop that he introduced.

You would need to review the simple description of the logic behind
the intended nested IF (Item 4. of my previous post, Dec 03, 2008,
11:35 am).

You need to actually DO what has been suggested.


.



Relevant Pages

  • Re: Difficulty with Relatively Simple IF Structure
    ... serious misinterpretations of what the nested IF supposed to do: ... If the condition is TRUE in the outermost IF, then exit the nested ... and continue for the next "i" of the DO loop. ... You need GO TO 11 once you enter either branch of the inner IF. ...
    (comp.lang.fortran)
  • Re: Difficulty with Relatively Simple IF Structure
    ... Your suggested modifications are in error since they represent two ... serious misinterpretations of what the nested IF supposed to do: ... and continue for the next "i" of the DO loop. ... You need GO TO 11 once you enter either branch of the inner IF. ...
    (comp.lang.fortran)
  • Re: Simple question on adding message box to list all the item that is not same
    ... Dim myrecset As New ADODB.Recordset ... ‘you use the Do loop. ... Exit Sub ... ‘In your inner Do Loop, it appears that you want to want to MoveNext ...
    (microsoft.public.access.formscoding)
  • Re: Infinite Loops and Explicit Exits
    ... > CS> One of these proposals relaxes the current restriction that an EXIT ... > termination of the loop is not visible at that point. ... > terminating condition is visible in that context. ... > You now want to allow this remote procedure, ...
    (comp.lang.cobol)
  • Re: balanced and unbalanced lines...
    ... it's more that a loop of current between outer and inner conductors gets ... That loop of current may not ... conductor and a return conductor forming a closed loop where current ...
    (comp.dsp)