HP50g small tips and trick
|
12-13-2016, 11:58 PM
(This post was last modified: 12-15-2016 09:39 AM by Vtile.)
Post: #1
|
|||
|
|||
HP50g small tips and trick
I thought I'll start this kind of thread where users of 50g can share their small tips and tricks of 50g usage. Created after a few seconds of thought.
Writing this from a phone so I'll post exact program tomorrow. One grey hair and baldness generator is the SOLVE command. As it tends to change the calc to radians and not revert coordinate system back back after calculation so I created a small program to return to the coordinate system it were before Solve command. (There is more sophisticated method in AUR to preserve flag settings) Another thing is that the SOLVE doesn't like the aprox values in some cases at all and the outcome is messy in general in some cases I like to use it ( ie. real life stuff with ie. values like 1.25 [it is exact value] before symbols and I just want to turn the equation over) so to same solve2.0 program I entered XQ command (thx Han) that converts it to 5/4. NOTE.. 50g converts every plain number even integers to decimal value while pushing them to stack when it is on aprox. mode with some exceptions... (lost plenty of hairs to this, before I understood the bahaviour. This applies also while editing programs :O ). Third.. One more thing the solve does is that it returns empty list if it do not find any zeros for given equation, doesn't say anything just empty list. Well I added lim(it) command inside a two IFs so now in case it doesn't find zeros it returns a limit of it with tag "limes0:" or proper error message "rational not form found" or similar. This is a sanity check to see what is going on with the solve command. Lastly it preserves the equation on stack and takes OBJ-> command from the result. Here is the listing, it is Quick & Dirty, no optimization at all. Code:
This is mine small QoL tip, what is yours. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)