Post Reply 
(49G) Function of a Matrix
05-15-2015, 03:09 PM (This post was last modified: 11-01-2017 11:23 AM by Gerald H.)
Post: #2
RE: HP 49G: Function of a Matrix
Here a second attempt, shorter & faster.

Input is a square matrix & a programme,

eg

[Matrix]
<< LN >>

Code:
::
  CK2&Dispatch
  # 48
  ::
    2DUP
    BINT0
    FPTR2 ^2LAMBIND
    FPTR2 ^PUSHFLAGS_
    FPTR2 ^CLREXACT
    BINT103
    SetSysFlag
    FPTR2 ^MATEGV
    FPTR2 ^XEQARRY>
    INCOMPDROP
    COERCEDUP
    1PUTLAM
    ZERO_DO
    2GETLAM
    EVAL
    1GETLAM
    ROLL
    LOOP
    1GETLAM
    TYPEMATRIX_
    COMPN_
    1GETABND
    DUP
    TWO{}N
    FPTR 3 6B
    OVER
    FPTR2 ^MATINV
    FPTR2 ^MMMULT
    FPTR2 ^MMMULT
    FPTR2 ^POPFLAGS_
    3UNROLL
    xDROP2
  ;
;
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
(49G) Function of a Matrix - Gerald H - 05-05-2015, 03:47 PM
RE: HP 49G: Function of a Matrix - Gerald H - 05-15-2015 03:09 PM
RE: (49G) Function of a Matrix - Gilles59 - 10-31-2017, 05:16 PM
RE: (49G) Function of a Matrix - Gerald H - 10-31-2017, 10:04 PM
RE: (49G) Function of a Matrix - Gerald H - 10-31-2017, 10:15 PM
RE: (49G) Function of a Matrix - Gilles59 - 10-31-2017, 11:03 PM
RE: (49G) Function of a Matrix - Gerald H - 11-01-2017, 01:19 PM
RE: (49G) Function of a Matrix - pier4r - 11-01-2017, 06:06 PM
RE: (49G) Function of a Matrix - Gerald H - 11-01-2017, 06:27 PM



User(s) browsing this thread: 1 Guest(s)