HP48 Arrays... - 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: HP48 Arrays... (/thread-218010.html) |
HP48 Arrays... - Bill Zimmerly - 04-16-2012 Hello! I'm trying to create an array of simultaneous equations, but the ->ARRY function doesn't seem to be working properly. Can anyone see what I'm doing wrong? The stack contains: 4: 'X+Y=30' 3: 'Y=Z+2' 2: 'X=14+Z' 1: 3 ...and when I issue the ->ARRY function, I get:
->ARRY Error:
I'm totally confused, since the MSLV function REQUIRES an array of the equations!
Re: HP48 Arrays... - Luiz C. Vieira (Brazil) - 04-16-2012 Hi. The ~>ARRY command accepts only numerical entries in the HP48 series. IIRC, the HP49 accepts single variables, but I cannot tell you for sure. You should try: [1 1 0]to assemble the coefficient matrix, then [30]to assemble the constants vector. Please, check for possible syntax relevance, I am writing by heart. One question: the MSLV you mention is the MSOLVR? If so, it demands a list of equations (or expressions, I do not recall correctly) stored in the EQ variable. Cheers.
Luiz (Brazil) Edited: 16 Apr 2012, 12:40 p.m.
Re: HP48 Arrays... - Gilles Carpentier - 04-16-2012 Looks correct ... This must works Can you verify that your equations are TYPE 9. ? Edit : oups... My reponse is for 49-50 (it works perfectly), I do not know about 48.
Edited: 16 Apr 2012, 12:39 p.m.
Re: HP48 Arrays... - Bill Zimmerly - 04-16-2012 Thanks Luiz! That does appear to be the problem - that strings can't be arguments for ->ARRY. :(
Also, MSLV is the name of the function I wrote about. If you have the 864 page 48gii user's guide it is described on page 7-4.
Re: HP48 Arrays... - Gerson W. Barbosa - 04-16-2012 You might want to try this program. If the stack contains 4: 'X+Y=30'
press SYS (F2) to obtain X (F1) --> 21.
Re: HP48 Arrays... - Bill Zimmerly - 04-16-2012 Thank you Gerson! :)
Re: HP48 Arrays... - Gilles Carpentier - 04-16-2012 With 49/50 you can solve this systems in 2 ways : 1/Use LINSOLVE with vectors
This works in symbolic way even with more than 3 unknows for 3 equations I have forgot that this don't work on 48
This works in numeric and symbolic with HP49/50
Edited: 16 Apr 2012, 5:12 p.m.
Re: HP48 Arrays... - Gerson W. Barbosa - 04-16-2012 You're right! On the HP-49/50g LINSOLVE is a better option, as I've just checked. On the HP-48, AFAIK, there's no built-in command to do it symbolically though.
Re: HP48 Array [10 x 4] - Joerg Woerner - 04-16-2012
Re: HP48 Array [10 x 4] - Allen - 04-16-2012 Nice solution!! Curious how you invert that matrix?
Re: HP48 Array [10 x 4] - gdeldago - 04-16-2012 Quote: In fact that is a 4 x 10 matrix ;)
Edited: 16 Apr 2012, 11:40 p.m.
Re: HP48 Array [10 x 4] - Gilles Carpentier - 04-17-2012 You can't because it's not a square matrix :D
Edited: 17 Apr 2012, 7:01 a.m.
Re: HP48 Array [10 x 4] - Dave Shaffer (Arizona) - 04-17-2012 Quote:
How about this (especially for Joerg!)
Re: HP48 Array [10 x 4] - Luiz C. Vieira (Brazil) - 04-17-2012 This is a unique system: has more solutions in itself than the ones needed to solve it!
Re: HP48 Array [10 x 4] - Reth - 04-19-2012 Quote:
not for the TI fans :)
|