Programming Question - Printable Version +- HP Forums (https://archived.hpcalc.org/museumforum) +-- Forum: HP Museum Forums (https://archived.hpcalc.org/museumforum/forum-1.html) +--- Forum: Old HP Forum Archives (https://archived.hpcalc.org/museumforum/forum-2.html) +--- Thread: Programming Question (/thread-56542.html) |
Programming Question - Harington - 05-07-2004 how do you call a built in function? for example I want to use the function "sloveVx" in a program. Mode is RPN calculator is 49G+
perhap vice versa: Re: Programming Question - Vieira, Luiz C. (Brazil) - 05-07-2004 Hello, Harington;
I'm not sure about what sort of result you're getting, but I'd guess a change in your program. Instead of: << " Enter a """input obj->try: << " Enter a """input str-> The [STR->] is an original HP28/HP48S command that removes the string delimiters ["] that may also be available in the HP49G+ (it is available in the HP48G series). I'm not sure it's gonna solve your problem, but it's worth a try. I'd guess the program evaluates your expression after [OBJ->] instead of simply getting it like an expression. Also, you may have a setting (mode flags) that cause the expression to be automaticaly evaluated after [OBJ->]. If so, changing this set might cause the program to work the way you need. My assumptions are vague because I have no calcualtor neither any manuals in hands; I'm not home now, but I'd like to post these suggestions. Sorry not helping the way I'd like to.
Luiz (Brazil) Edited: 7 May 2004, 6:59 p.m.
Luiz (Brazil) - Harrington - 05-08-2004 do you know which flag that will be ? please post this for me it is taking me too long to figure the solution to this problem . I appreciate this Re: Programming Question - V-PN - 05-08-2004 << " Enter a """input obj-> It is not working (input is ex:2x+3=6) - Harrington - 05-08-2004 The input to this problem should be any equa in firt and second oder EX 2x^2+3x=10 or 2x=10 I expect to see the correct sloution to these problem it is taking the input. slotion to these are wrong . that is where I have the problem the operating mode is PRN.
Re: It is not working (input is ex:2x+3=6) - V-PN - 05-08-2004 "The input to this problem should be any equa in firt and second oder EX 2x^2+3x=10 or 2x=10 I expect to see the correct sloution to these problem it is taking the input. slotion to these are wrong." Re: It is not working (input is ex:2x+3=6) - Vieira, Luiz C. (Brazil) - 05-08-2004 Hi, Harington; Please, follow Veli-Pekka very correct warning about upper case charactes. I see that your input string "Enter a" starts with an upper-case "E" and all of the rest of the program goes lower-case. Maybe you typed it correctly in your calculator, just a concern of mine. Now, please, change your program so it looks like this one:
<< " Enter a " {"" ALG} INPUT "'" SWAP + OBJ-> The (not elegant) additional "'" SWAP +will make sure that whatever you type in is converted to an equation prior to be stored. If you already typed the expression with a starting ', please remove this sequence. Also, {"" ALG}(instead of simply "") activates ALGebraic mode, that's helpfull when entering equations. I ran it and the program finds the following roots: {x = -(3+sqrt(89))/4 x = (-3+sqrt(89))/4Is it what you expect? BTW, mine is an HP49G, not an HP49G+. I'm not sure this is relevant, but if it still does not work, let's try something else. Let us know. Success. Luiz (Brazil)
Edited: 8 May 2004, 10:59 p.m.
About flags (was: It is not working..) - Vieira, Luiz C. (Brazil) - 05-08-2004 Hi, Harington; I forgot to mention that two flags MAY alter the resulting data format: flag -3 -> if set, numeric results; if clear, symbolic results Flag -105 -> if clear, Exact Mode is set and if there are no exact results a null list is returnned. Hope that's all.
Luiz (Brazil)
This is what I get on stacks:1. {} 2. 3 and 3 2^x+2 - Harrington - 05-08-2004 Those are the ans I get when I use the input on stack 1 2 and on 3 for input 2X^2+3=10
on 1 it is just {}
wrong !!!
All flags are set (no solution yet ) - Harrington - 05-08-2004 lol hp is cool calculator I means it is powerful but sometimes things goes wrong with these mechine. Finally got this working - Harrington - 05-08-2004 yes it was a very small typo that you and VPN stressed "E" caps wow I watc out for these now I guess
Re: This is what I get on stacks:1. {} 2. 3 and 3 2^x+2 - Vepa - 05-09-2004 I don't quite get what you want, Veli-Pekka, I am curious! (was: This is what I get...) - Vieira, Luiz C. (Brazil) - 05-09-2004 Hello, Veli-Pekka; I am curious about your previous post. I have an HP49G, not an HP49G+ (at least so far... 8^), and I saw you used a RCLVX in your last listings. Is it a new implemantation in the HP49G+? I read that the 49G+ O.S. can be used with earlier 94G models, but I didn't give them a try yet, so I don't know if RCLVX is something new (retrieve the expression last used with SOLVEVX ?). Just that. Thank you. And thatnk you also for posting a better answer for Harrington's question. I didn't take the "case" into account... q8^(
Luiz (Brazil)
Re: Veli-Pekka, I am curious! (was: This is what I get...) - V-PN - 05-09-2004 RCLVX and STOVX plus pretty print LIMIT as lim Re: It is not working (input is ex:2x+3=6) - V-PN - 05-09-2004 In case someone does not want to flash their 49G for the latest ROM you can always program the RCLVX command Re: Veli-Pekka, I am curious! (was: This is what I get...) - Vieira, Luiz C. (Brazil) - 05-09-2004 Hey, Veli-Pekka; thanks! I'm waiting to put my hands in an HP49G+, and after what you wrote I see that I'll have a lot of new things to reason about... BTW: I updated my HP49G to the new(est?) 1.9-6, but I was not aware of these new features. Are they listed somewhere? In fact, is there any e-doc about the new features since the original O.S. that first came with the HP49G? I saved all "New features list" in the HP site with all updated O.S. I downloaded, but the information is not so "explained", I mean, only a brief description of each new achievement. I don't remember them completely... If you know (or anyone else knows) where to find it, I'd like to be "told" about... Please? Tnanks a lot.
Luiz (Brazil) Edited: 9 May 2004, 7:45 p.m.
Re: It is not working (input is ex:2x+3=6) - V-PN - 05-09-2004 Sure there are - one that fits in a single double-sided sheet and another more detailed one in excel format: I see what you mean... Thank you! q8^) (NT) - Vieira, Luiz C. (Brazil) - 05-09-2004 .
|