Post Reply 
hp 28s - creating nested lists
02-20-2015, 12:59 PM (This post was last modified: 02-20-2015 01:25 PM by mbrethen.)
Post: #22
RE: hp 28s - creating nested lists
It compiles, but as written it gives an error message about a bad 'FOR statement.' I checked for typos.

The reference manual shows the HP 28 FOR/STEP statement as:

start finish FOR name loop-clause increment STEP

increment must be a real number.

For example:
Code:
1 11 FOR x x SQ 2 STEP
places the squares of the integers 1, 3, 5, 7, 9, and 11 on the stack.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
hp 28s - creating nested lists - mbrethen - 02-16-2015, 04:33 PM
RE: hp 28s - creating nested lists - mbrethen - 02-20-2015 12:59 PM



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