Optimization and Error !!!



#3

1 5
2 x<=Y?
3 GTO 01
4 RDN
5 5
6 X>Y?
7 GTO 02
8 RDN
9 -5
10 X<=y?
11 GTO 03
12 RND
13 -5
14 X>Y?
15 '--
16 LBL 04
17 PROMPT
18 Sequence of instructions ....


30 LBL 01
31 '+
32 GOTO 04
33 LBL 02
34 '++
35 GTO 04
36 LBL 03
37 '-
28 GTO 04

-2 R/S
+ ????

How would I do to show '-' ?

Thank you


#4

You're getting + because -2 is less than 5.

Just what are you trying to do? Determine which of the four ranges [-infinity, -5], (-5, 0), [0, 5), [5, infinity] the number is in?


Possibly Related Threads…
Thread Author Replies Views Last Post
  MS advert shows spreadsheet with obvious error BruceH 3 2,151 11-14-2013, 09:50 AM
Last Post: Bill (Smithville, NJ)
  HP Prime: Rounding error in determinant Stephan Matthys 3 1,617 10-25-2013, 09:29 PM
Last Post: Walter B
  Prime Error or Mine? toml_12953 12 3,557 10-22-2013, 10:35 AM
Last Post: toml_12953
  Explaination on How to Reset Caculator in Users guie: error Harold A Climer 5 2,529 10-15-2013, 02:11 AM
Last Post: cyrille de Brébisson
  Repair of HP-34C - Error 0 and Error 9 Jeff Kearns 3 1,664 10-11-2013, 12:29 PM
Last Post: Randy
  Do You Think a Listing Error Was Made? Jim Johnson 13 3,803 09-04-2013, 09:23 AM
Last Post: Eddie W. Shore
  Linear Optimization/Programming fhub 14 4,010 08-04-2013, 06:27 AM
Last Post: fhub
  HP Prime: Error reports : Here Patrice 111 22,663 07-24-2013, 05:52 PM
Last Post: Thomas Klemm
  PARTFRAC error. Romeu Medeiros 2 1,303 06-23-2013, 10:27 PM
Last Post: Romeu Medeiros
  WP-34s Documentation error Marcel Samek 9 2,723 06-13-2013, 10:25 AM
Last Post: Miguel Toro

Forum Jump: