Re: It is not working (input is ex:2x+3=6) Message #14 Posted by Vieira, Luiz C. (Brazil) on 8 May 2004, 10:52 p.m., in response to message #4 by Harrington
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->
" enter b " {"" ALG} INPUT "'" SWAP + OBJ->
-> a b
<< a b + SOLVEVX>>
>>
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))/4
Is 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.
|