The Museum of HP Calculators

HP Forum Archive 18

 Re: HP 50g Simultaneous Equation SolvingMessage #2 Posted by Damir on 2 Oct 2008, 11:25 a.m.,in response to message #1 by Erik Lane For: 80*cos(30)-T*sin(theta)=0 and 80*cos(30)-T-T*cos(theta)=0 and default guesses of 0 for both variables. T = 12.34 and theta = 1.57 time = 5 seconds With default guesses of 1 for both variables theta = 7.85 [1.57+2*Pi] Regards, Damir Edited: 2 Oct 2008, 11:28 a.m.

 Re: HP 50g Simultaneous Equation SolvingMessage #3 Posted by Erik Lane on 2 Oct 2008, 11:36 a.m.,in response to message #2 by Damir Well, the time that it took is great, but the answers are wrong. Did you put the 30 degrees in as radians? I'm sorry if I didn't make it clear that they were degrees. That's the only reason I can think of why it would give back faulty answers, other than it's not programmed well. But if you regularly use it and like it then it would surprise me if it wasn't a quality program. Should be T=46.2 and theta = 60 degrees, or 1.047rad. You can verify that by doing it by hand, solving the first equation and then putting that number into the bottom one to solve for T. (Although to convert from rad to deg it should be (number in rad)*180/pi not addition.) Either way I will download and try out that solver since it is quick and see if I can make it work for me. Edit: Funny that this is also one I've already tried out, but couldn't get it to work. (One problem was that I was trying so many of them at a time that I got overwhelmed and lost track of which was which and then got frustrated.) Thank you! I really appreciate the response! Erik Edited: 2 Oct 2008, 11:49 a.m.

 Re: HP 50g Simultaneous Equation SolvingMessage #5 Posted by V-PN on 2 Oct 2008, 3:53 p.m.,in response to message #4 by Damir I EVALuated the COS(30) in DEGrees mode Exact on (getting \v/3/2) and using initial guesses of [46.2 1.047] got in RADians mode Approx. on: [69.2820323028 1.57079632679] in 39.9 seconds using MSLV (which using XQ to the Theta item produced 1/2*\pi) Better to load SolveSys library

 Re: HP 50g Simultaneous Equation SolvingMessage #6 Posted by Erik Lane on 2 Oct 2008, 4:40 p.m.,in response to message #5 by V-PN Quote: (getting \v/3/2) I'm sorry, but I don't understand the shorthand or conventions behind this notation. What does that mean? Quote: which using XQ to the Theta item I never had heard of XQ before, but I looked it up in CAT and checked the help on it - it's very useful! That's a wonderful little thing to know, thank you! Erik

 Re: HP 50g Simultaneous Equation SolvingMessage #7 Posted by V-PN on 2 Oct 2008, 9:36 p.m.,in response to message #6 by Erik Lane http://hpconnect.sourceforge.net/trigraphs.html

 Re: HP 50g Simultaneous Equation SolvingMessage #8 Posted by Erik Lane on 2 Oct 2008, 4:33 p.m.,in response to message #4 by Damir I finally figured out why nothing is working out quite right - it was late last night when I was posting, and I didn't give you the correct formula. The first cosine is actually supposed to be sine. Here's the correct formula: 80*sin(30)-T*sin(theta)=0 and 80*cos(30)-T-T*cos(theta)=0 Sorry about that. That will of course affect the calculations just a tiny bit... :) That program at the same link will do it quickly, and even stay in degrees mode? (Kind of a rhetorical question, since I'm going to go download it right now and play with it so I will find the answer out very soon.) Thank you! Erik

 Re: HP 50g Simultaneous Equation SolvingMessage #9 Posted by Damir on 2 Oct 2008, 5:17 p.m.,in response to message #8 by Erik Lane Quote: That program at the same link will do it quickly, and even stay in degrees mode? (Kind of a rhetorical question, since I'm going to go download it right now and play with it so I will find the answer out very soon.) Thank you! Erik Yes! And at late night hours you should drink some coffee :) Regards, Damir Edited: 2 Oct 2008, 5:29 p.m.

 Re: HP 50g Simultaneous Equation SolvingMessage #10 Posted by V-PN on 2 Oct 2008, 10:42 p.m.,in response to message #8 by Erik Lane Using your 46.2 1.047 and RADians mode after simplifying the formula to V=Square Root O=Theta ['40-T*SIN(O)' '40*V3-T*(1/COS(O))'] ['T' 'O'] [46.2 1.047] {MSLV}HEAD MEM;TEVAL gave [46.1880215352 2.09439510239] in 19 seconds using XQ to the 2nd item gave 2/3*pi If the gusses are far from these I don't know how much time it will take with the unsimplified equations and in DEGrees mode SolveSys gives the answer almost immediately using maximum tolerances selected 46.2 and 60. giving 46.1880215352 and 120. BUT with bad guesses I'm not willing to wait You need the TI-89 for this kind of problem solving

 Re: HP 50g Simultaneous Equation SolvingMessage #11 Posted by V-PN on 2 Oct 2008, 11:03 p.m.,in response to message #10 by V-PN I tried SolveSys with RADians mode and simplified equatuations tolerances set to max and guesses RESET to 1. 1. and the answer was quickly T=46.1880215352 O=-4.1887902047 the latter processed with XQ gave -4/3*pi or with R->D -240. So you don't need TI after all, SolveSys is enough but I think it's good to have BOTH calcs

Go back to the main exhibit hall