Subject: XploRe: Learning Guide
See XploRe:

Quantlet: matrix02
Description: Simple matrix computations.
Download: matrix02.xpl

Code:
;
  A = (2|4)~(8|6)
  B = (5|6)~(7|8)
  A + B                    ; addition of two matrices
;
  A + 3                    ; addition of matrix and scalar
  A - (1|1)                ; subtraction of vectror from matrix
;
  E = #(2, 4)~#(8, 6)
  F = #(1, 2)~#(3, 4)
;
  mult1 =  F * F           ; matrix multiplication
  mult2 =  E * E           ; matrix multiplication
  mult1
  mult2
;
  mult3 = E.*F             ; matrix elementwise multiplication
  mult4 = F.*E             ; matrix elementwise multiplication
  mult3
  mult4
  library("xplore")
  id=unit(3)               ; identity matrix
;
  det(A)                   ; determinant
;
  inv(A)                   ; inverse matrix
  A*inv(A)
;
  trans(A)                 ; transpose
  A'                       ; transpose





Subject: XploRe: Learning Guide
See XploRe:

© MD*Tech - Method and Data Technologies, generated on 6.6.2000 .