Programming a Matrix(hp49G+) ? « Next Oldest | Next Newest »

 ▼ Barry Member Posts: 64 Threads: 25 Joined: Jan 1970 06-09-2004, 09:18 AM Hi I would like to take a value from the stack place it into a matrix, and get an ouput value. I have tried << -> x '[[cos(x),sin(x)][sin(x),cos(x)]]'>> I get a "bad argument error' Normal equation work. Does anyone know how to do this? Thanks Barry ▼ Vieira, Luiz C. (Brazil) Posting Freak Posts: 4,027 Threads: 172 Joined: Aug 2005 06-09-2004, 09:55 AM Hi, Barry; I remember that till the HP48, all arguments possible in an array are numbers, even complex (not sure if bunaries are allowed as well... I think not). I don't recall having algebraics as array "arguments". anyway, you can arrange your expressions in lists and disassemble/reassemble: turn lists into arrays. If I am not wrogn, the HP49G+ has some new features for this. Also, having the expressions organized in lists, like`{{cos(x) sin(x)}{sin(x) cos(x)}}`allows you to use a handy command: DOLISTS (also DOSUBS may help, depending on what you want). I guess SYS RPL guys may have other possibilities. I'm starting to read about SYS RPL, and there are many interesting things there... It's a new world. Hope you succeed. If not, post again. Cheers. Luiz (Brazil) Vepa Junior Member Posts: 3 Threads: 0 Joined: Jan 1970 06-09-2004, 09:56 AM ```<< -> x '[[cos(x),sin(x)][sin(x),cos(x)]]'>> I get a "bad argument error' Normal equation work. You need an ALGebraic side trick: << -> x << `[[COS(x),SIN(x)] [SIN(x),COS(x)]]` >> >> BYTES # 917Bh 92.5 `[V,P,N]` ``` ▼ V-PN Posting Freak Posts: 785 Threads: 13 Joined: Jan 2005 06-09-2004, 10:03 AM ```You could also use a pure RPN program: << -> x << [[ 'COS(X)' 'SIN(X)' ] [ 'SIN(X)' 'COS(X)' ]] 'X' x = SUBST ->NUM >> >> BYTES # D351h 109.5 You may leave the ->NUM away if you want to do it manually. [V P N] ```

 Possibly Related Threads... Thread Author Replies Views Last Post AFTER HP-Prime update, Shift+Matrix CRASHES Joseph Ec 3 1,298 12-06-2013, 11:06 AM Last Post: Joseph Ec HP Prime Matrix TERRIBLE bug and question uklo 19 3,242 11-25-2013, 12:10 PM Last Post: Mic HP Prime: editing a matrix Alberto Candel 6 1,588 11-20-2013, 06:26 PM Last Post: Helge Gabert Absolute Value and Matrix BruceTTT 5 1,434 11-11-2013, 11:52 PM Last Post: Walter B WP-34S Matrix operations with routine-local registers? Tom Grydeland 1 822 09-04-2013, 10:46 AM Last Post: Marcus von Cube, Germany Matrix Characteristic Polynomial - Reloaded. Ángel Martin 12 2,327 08-22-2013, 05:33 PM Last Post: Thomas Klemm Matrix Richard Berler 3 1,013 08-18-2013, 06:24 PM Last Post: Paul Dale Advantage/CCD Matrix Challenge Ángel Martin 1 824 08-09-2013, 06:22 PM Last Post: Thomas Klemm [HP -Prime CAS] List, Matrix, Vector as one Array? CompSystems 0 677 07-26-2013, 05:22 PM Last Post: CompSystems ELO - Domination Matrix Kimberly Thompson 0 580 06-21-2013, 05:34 PM Last Post: Kimberly Thompson

Forum Jump: