50g multiple output
|
12-06-2021, 05:59 PM
Post: #9
|
|||
|
|||
RE: 50g multiple output
Hi oierpa,
(12-05-2021 06:23 PM)oierpa Wrote: ... Can you suggest me some readings, article, manual or website that explain a little more how variables are used inside program? ... My answer to this was going to be very similar to the one from John Keith above, although his is more detailed. If you want to limit the amount of reading you need to do initially, I would say that the "Chapter 1: RPL Programming" and possibly "Chapter 2: Programming Examples" in the "HP 50g / 49g+ / 48gii Graphing Calculator Advanced User's Reference Manual" are essential reading. I agree with John that the "HP 50g Graphing Calculator User's Manual" [and also the "HP 50g Graphing Calculator User's Guide"] are somewhat infuriating and that going back to a manual to a less evolved calculator in the line can be better. But rather than the manuals for the 48G, I would suggest that the manuals for the 48SX cannot be beaten for clarity and simplicity even though the calculator is less similar to the 50g. (12-05-2021 06:23 PM)oierpa Wrote: ... I understood that syntax I used is really wrong. ... Not "really" wrong. I'd say you are more than 90% of the way there. (12-06-2021 02:36 PM)oierpa Wrote: Hi all. * You don't need all those RCL statements. Instead of 'n' RCL just use n. ('n' (with quotes) evaluates to the name of the object and n (without quotes) evaluates to the value of the object.) * You can still use your algebraic objects if you like. In a formula an algebraic can sometimes be more readable. Just remember that the scope of local variables is the following algebraic or program object so if you want the scope of you local variables to extend beyond one algebraic then you need an enclosing program object. Along these lines: [NOTE: The calculator sadly does not support comments in programs, but I have sprinkled comments here introduced by semicolon characters.] Code: << * You can avoid having 'R' being a global variable (which might overwrite an existing variable 'R' that you have outside your program) by introducing a new (inner) local variable scope for 'R'. Code: << Or more simply, put a dummy value for R on the stack (such as 0) and create R in your initial set of local variables, Code: << N. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
50g multiple output - oierpa - 12-03-2021, 03:43 PM
RE: 50g multiple output - DA74254 - 12-03-2021, 09:44 PM
RE: 50g multiple output - Joe Horn - 12-03-2021, 10:42 PM
RE: 50g multiple output - oierpa - 12-04-2021, 08:13 AM
RE: 50g multiple output - nlj - 12-05-2021, 02:35 PM
RE: 50g multiple output - oierpa - 12-05-2021, 06:23 PM
RE: 50g multiple output - John Keith - 12-06-2021, 12:39 PM
RE: 50g multiple output - oierpa - 12-06-2021, 02:36 PM
RE: 50g multiple output - nlj - 12-06-2021 05:59 PM
RE: 50g multiple output - oierpa - 12-10-2021, 06:53 PM
RE: 50g multiple output - nlj - 12-11-2021, 02:18 AM
RE: 50g multiple output - DavidM - 12-11-2021, 02:45 PM
RE: 50g multiple output - oierpa - 01-10-2022, 11:45 AM
RE: 50g multiple output - DavidM - 01-10-2022, 12:16 PM
|
User(s) browsing this thread: 1 Guest(s)