Post Reply 
A Tiny (WP34S) program does a lot
11-29-2014, 06:42 AM (This post was last modified: 11-29-2014 06:53 AM by Dieter.)
Post: #11
RE: A Tiny (WP34S) program does a lot
(11-29-2014 12:39 AM)BarryMead Wrote:  
(11-28-2014 10:05 PM)Paul Dale Wrote:  Oh, SLV is a condition, it skips a step if it can't find a solution. Better would be two RTN statements after the SLV not one.
Thanks, I forgot about the conditional skip on return from the SLV function. I corrected the program above to include this extra RTN instruction.

In this case the user will not notice if SLV was not able to find a solution.
This should work better:
Code:
  LBL A
  #000    // lower guess = 0
  #001    // upper guess = 1
  SLV 00  // solve for derivative = 0
  RTN     // quit if solution found
  ERR 20  // otherwise  show error message "no root found"

Dieter
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: A Tiny (WP34S) program does a lot - Dieter - 11-29-2014 06:42 AM



User(s) browsing this thread: 1 Guest(s)