The Museum of HP Calculators

HP Forum Archive 17

 HP50g DESOLVE HelpMessage #1 Posted by Chuck on 24 Apr 2007, 10:05 a.m. On page 14-3 of the 50G Users manual are some commands to use the DESOLVE. The second example is entering: ```['d1d1y(t)+5*y(t)=2*COS(t/2)' 'y(0)=6/5' 'd1y(0)=-1/2'] ENTER 'y(t)' ENTER DESOLVE``` The solution "should" be in terms of sine and cosine, as is reported in the manual. Mine keeps the solution in terms of the complex expressions e^(a+bi), etc. I can certainly do the rewriting myself, but what possible setting am I missing to have the calculator to convert to sines and cosines? The modes I am using are: soft menues, RPN, RAD, Complex, 't' var, the usual... But I must be overlooking something. Any suggestions? Thanks, all.

 Re: HP50g DESOLVE HelpMessage #2 Posted by Happy HP User on 24 Apr 2007, 9:53 p.m.,in response to message #1 by Chuck Using ROM version 2.09: 1) the variable stored in 'VX' should be 't' 2) the machine should be in radians, real, exact mode: you should see RAD XYZ R = 't' at the screen top With that done, on my 50g: ['d1d1y(t)+5*y(t)=2*COS(t/2)' 'y(0)=6/5' 'd1y(0)=-1/2'] 'y(t)' DESOLVE returns, and after one minor simplification: 'COS(t*1/2)*8/19+COS(t*SQRT(5))*74/75-SQRT(5)/10*SIN(t*SQRT(5))' Not bad for a handheld, Maple's closed form for this ODE is quite similar.

 Re: HP50g DESOLVE HelpMessage #3 Posted by John on 24 Apr 2007, 10:02 p.m.,in response to message #2 by Happy HP User Of course, flag settings are probably to blame. One thing you could do is completely reset your 50g, or post your complete flag settings to let us see what flags are set.

 Re: HP50g DESOLVE HelpMessage #4 Posted by Chuck on 24 Apr 2007, 11:49 p.m.,in response to message #2 by Happy HP User Hmmm. No go. So here's a simpler one that I tried... ```['d1d1y(T)+y(T)=0' 'y(0)=2' 'd1y(0)=0'] 'y(T)' ``` DESOLVE returns (after a simplification) ``` (e^(iT))^2 + 1 y(T)=--------------- e^(iT)``` It would be nice if it just gave back 2cos(T). :( The obvious modes shown on the screen are: RAD XYZ BIN C='T' In the CAS MODES I have Complex checked, and Simp Non-Rational checked. The system flags that are checked are {27, 34, 40, 56, 57, 68, 76, 82, 90, 103, 117, 119} My version number is #2.09 Any more clues???? Thanks. Edited: 24 Apr 2007, 11:52 p.m.

 Re: HP50g DESOLVE HelpMessage #5 Posted by Happy HP User on 25 Apr 2007, 10:12 a.m.,in response to message #4 by Chuck Change COMPLEX to REAL mode. The shortcut key method is press and hold LEFT SHIFT, then press and release the TOOL key. This is a toggle between COMPLEX to/from REAL mode. You should see the 'C' change to an 'R' and vice versa when this key sequence is done. At the top of the screen, you should see RAD XYZ DEC R='T' Otherwise, solve your difeqs with Maple or Matlab...

 Re: HP50g DESOLVE HelpMessage #6 Posted by Chuck on 25 Apr 2007, 12:27 p.m.,in response to message #5 by Happy HP User Quote: At the top of the screen, you should see RAD XYZ DEC R='T' Otherwise, solve your difeqs with Maple or Matlab... Ahhh. The Real mode makes sense now. Thanks. Normally I DO use Mathematica, or occassionally Maple, (when not not doing them on paper) but it's hard to carry my desktop computer around with me. ;) Also, I need to know what my students are capable of doing with their magic black boxes!!! Thanks again. CHUCK Edited: 25 Apr 2007, 12:32 p.m.

 Re: HP50g DESOLVE HelpMessage #7 Posted by Happy HP User on 25 Apr 2007, 8:14 p.m.,in response to message #6 by Chuck Your're welcome! Oh, you're students are so lucky to be able to use such marvels as an HP50!

 Re: HP50g DESOLVE HelpMessage #8 Posted by Ron Allen on 26 Apr 2007, 12:41 a.m.,in response to message #6 by Chuck I see you got this "Complex" problem around to a "Real" solution. My 50, even with ROM still degraded to 2.08, wants to use complex equivalents when the DE lends itself to complex solutions. (I carried a K & E "Deci-lon," scabbard and all, when I was a student [ University of New Orleans, 1967 and Tulane University.] I agree with you that Chuck's students have a wonderful, portable solution to quicker understanding and modeling of engineering challenges. Regards, Ron Edited: 26 Apr 2007, 12:46 a.m.

 Re: HP50g DESOLVE HelpMessage #9 Posted by Rich Messeder (US) on 26 Apr 2007, 11:18 a.m.,in response to message #6 by Chuck Where do you teach, Chuck? And at HS or college/university? Rich

 Re: HP50g DESOLVE HelpMessage #10 Posted by Chuck on 26 Apr 2007, 7:55 p.m.,in response to message #9 by Rich Messeder (US) Hi Rich. I'm at a two-year college in Washington state. We're covering harmonic motion, damped, undamped, and forced, using a number of tools. Several kids have the HP50G wihich is blowing the socks off the TI's. I'm amazed at some of the things it does. When I did this in college as a student, "all" I had was the HP-11C. But that was about 10-years post-sliderule times, so I thought I was in fat city.

Go back to the main exhibit hall