Skip to main content
1-Visitor
April 5, 2012
Solved

Odesolve question

  • April 5, 2012
  • 1 reply
  • 3571 views

As part of an iteration program, Odesolve in a solve-block fails when one or more of the (positive) initial conditions is too large. Of course, a priori, I do not know how large is "too large." This failure causes the program to cease functioning, but the failure is itself information that needs to be returned to the program so that it continues to run. How can I guard against this failure? Any help will be much appreciated.

Best answer by AlanStevens

See attached for a possible approach. I'm sure there's a less clumsy method, but I'm having an off day!

Alan

1 reply

19-Tanzanite
April 5, 2012

Might be possible using 'on error'. Difficult to tell without seing the actual calculation. Upload the worksheet.

Alan

1-Visitor
April 5, 2012

Alan,

Thank you for your reply. A watered-down worksheet is attached.

19-Tanzanite
April 6, 2012

See attached for a possible approach. I'm sure there's a less clumsy method, but I'm having an off day!

Alan