samen

25 Reputation

4 Badges

1 years, 41 days

MaplePrimes Activity


These are answers submitted by samen


 

``

restart; with(LinearAlgebra)

a := Matrix(2, 2, {(1, 1) = 1, (1, 2) = 2, (2, 1) = 3, (2, 2) = 4})

a := Matrix(2, 2, {(1, 1) = 1, (1, 2) = 2, (2, 1) = 3, (2, 2) = 4})

(1)

b := Matrix(2, 2, {(1, 1) = 2, (1, 2) = 4, (2, 1) = 6, (2, 2) = 2})

b := Matrix(2, 2, {(1, 1) = 2, (1, 2) = 4, (2, 1) = 6, (2, 2) = 2})

(2)

``

c := a.b

c := Matrix(2, 2, {(1, 1) = 14, (1, 2) = 8, (2, 1) = 30, (2, 2) = 20})

(3)

c := `&*`(a, b)

c := `&*`(Matrix(2, 2, {(1, 1) = 1, (1, 2) = 2, (2, 1) = 3, (2, 2) = 4}), Matrix(2, 2, {(1, 1) = 2, (1, 2) = 4, (2, 1) = 6, (2, 2) = 2}))

(4)

``

evalm(c)

array( 1 .. 2, 1 .. 2, [( 2, 1 ) = (30), ( 1, 1 ) = (14), ( 2, 2 ) = (20), ( 1, 2 ) = (8)  ] )

(5)

``

``


 

Download Matrix_Sam.mw

Page 1 of 1