HP 48G Programming with matrices « Next Oldest | Next Newest »

 ▼ DBD Junior Member Posts: 2 Threads: 1 Joined: Jan 1970 10-05-2005, 06:32 PM I've been using my HP48 for many years now and unfortunately, I haven't done a lot of programming with it. Some, but not much. It would be very helpful if I could write a program that would have a 4x4 matrix, with each element being a variable. The 1,1 element would be (cos(theta))^2, 2,1 element (sin(theta))^2, etc. I could have theta as a variable stored in the program's directory or have it as a local variable within the program. The problem is that I can't figure out how to get a matrix full of variables into the program. If somebody could give me some advice on this, I'd really appreciate it. DBD ▼ Crawl Senior Member Posts: 306 Threads: 3 Joined: Sep 2009 10-05-2005, 10:28 PM Does this work the same way as it would on the 49G+? On that calculator, what I'd do is enter the desired matrix in the matrix writer (maybe using the equation writer within the MW to enter the elements), then enter it onto the stack. Then I'd select the matrix on the stack and "Copy". Then I'd go to where I wanted to enter it in the program, and paste it as an algebraic object. You might need an EVAL after that (depending on how you want to use it). I, Claudius Member Posts: 135 Threads: 11 Joined: Jan 1970 10-06-2005, 09:04 AM Perhaps the best is what the second poster suggested, simply use the built-in Matrix Writer to construct your matrix, then use the wealth of 48 matrix commands to do whatever you wish. If you prefer command line entry, another way is to use the ROW-> command, which transforms row vectors into a matrix. There are also a number of element commands which I won't detail here. Since you're a beginning programmer, there are a number of good books available on programming the 48, which also work on the 49/49+. Probably the best one to start with is "An Easy Course in Using & Programming the 48" by GrapeVine Publications: http://www.read-gpi.com/ If you find you like programming, get a copy of the 48 Series Advanced Users Reference Manual, or AUR. It provides a detailed description of every command available in the 48 ROM. As I play with my old 48, I find it very slow compared with the 49 series. If possible, experiment with a 49/49+, you may find you like the increased speed as well as a true Computer Algebra System included. If your calculator is a GX in good shape, you will probably be able to sell it on eBay for much more than you'll pay for two 49s! Best of luck. Edited: 6 Oct 2005, 9:05 a.m. ▼ DBD Junior Member Posts: 2 Threads: 1 Joined: Jan 1970 10-06-2005, 09:25 AM Thanks for both replies. That really helps! DBD Ron Ross Senior Member Posts: 673 Threads: 20 Joined: Oct 2008 10-06-2005, 11:21 AM I, Claudius's comment about getting an Hp49G+ holds merit (though I would not suggest you sell your Hp 48GX to get it, keep that until you fall in love with the 49G+ or better, have two loves & don't let them in sight of each other, their infareds would blaze away in jealously! AND that is BAD for battery life!). While the Hp 48G can work with Some symbolics, its matrix support may not handle anything more complex than simple polynomials (though there is some software on Hpcalc.org that may correct this). No matter, even if there is a solution, your Hp48g will be slow in comparision to everything else if you plan to use symbolics in its matrix functions. Its Matrix routines are optimized for numerical work and it is a great system for numerical number crunching, but its performance is miserable in symbolic manipulation as I, Claudius indicates.

 Possibly Related Threads... Thread Author Replies Views Last Post HP Prime Matrices curiosity bluesun08 0 954 12-09-2013, 06:44 PM Last Post: bluesun08 [HP-Prime CAS] "Warning, ^ (Command) Is ambiguous on non square matrices"?? CompSystems 1 1,313 12-07-2013, 07:15 PM Last Post: CompSystems HP Prime: matrices in programs, in need of help Alberto Candel 9 2,110 11-26-2013, 01:33 AM Last Post: cyrille de Brébisson HP 50g - question about matrices arrays vectors etc. Sean Freeman 6 1,715 11-14-2013, 01:44 PM Last Post: peacecalc HP Prime SIZE and OBJ-> with matrices/vectors/lists Helge Gabert 8 1,858 09-27-2013, 05:44 PM Last Post: Helge Gabert Programming with Matrices Han 10 1,962 09-25-2013, 03:59 PM Last Post: Han [HP-prime] Parallel Processing, vectors, matrices as a only data type =( CompSystems 1 799 08-08-2013, 04:48 PM Last Post: peacecalc Riemann's Zeta Function update (HP-28S, HP-48G/GX/G+, HP-49G/G+/50g) Gerson W. Barbosa 0 699 06-30-2013, 01:01 AM Last Post: Gerson W. Barbosa OT: DIFFERENTIAL EQUATIONS using the HP-48G/GX Ivan Rancati 2 992 06-04-2013, 04:11 AM Last Post: Frank Boehm (Germany) Matrices on HP39gii (Cautionary Tale) Eddie W. Shore 2 960 03-23-2013, 07:54 PM Last Post: Gilles Carpentier

Forum Jump: