Detect number entry on HP-35s?
|
02-25-2015, 07:12 PM
(This post was last modified: 02-26-2015 12:36 PM by Dieter.)
Post: #9
|
|||
|
|||
RE: Detect number entry on HP-35s?
(02-25-2015 02:49 PM)mbrethen Wrote: Here was the thought process: So you want to enter a matrix. How does the program know its dimensions (#columns, #lines), resp. when is a line in step 7 considered "filled"? Do you want to enter line by line or column by column? Or do you assume one line is complete as soon as no entry occurs? How do you then handle lines with different dimensions (# of columns)? If the first line had 3 values and the second one 5, how do you plan to access the, say, 4th element of the 2nd line? While this is not what you're looking for, the following example shows my approach on entering a n x n matrix: Code: N001 LBL N While the program waits for input, it displays a vector like [1, 1] with line# and column# in X. Now, getting back to your request, if the user does not enter anything the entry will be a vector. If you now could check whether X holds a simple real (=entry) or a vector (=no entry), your problem was solved. Dieter |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 17 Guest(s)