0% found this document useful (0 votes)
49 views

Mathcad Practice

The document defines a 5x5 matrix A where the values on the diagonal are 1, values above the diagonal are 3, values below the diagonal are 4, and all other values are 0. It then defines the matrix N as the inverse of A and calculates the sum of the elements of N multiplied by a constant b to obtain the value of q.

Uploaded by

junhyol
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
49 views

Mathcad Practice

The document defines a 5x5 matrix A where the values on the diagonal are 1, values above the diagonal are 3, values below the diagonal are 4, and all other values are 0. It then defines the matrix N as the inverse of A and calculates the sum of the elements of N multiplied by a constant b to obtain the value of q.

Uploaded by

junhyol
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

n := 5

ORIGIN := 1

N := for i  1 .. n
for j  1 .. n
A  1 if i = j
i, j
A  3 if i + 1 = j
i, j
A  4 if i = j + 1
i, j
1 3 0 0 0
A  0 otherwise  
i, j 4 1 3 0 0
 
A N = 0 4 1 3 0
0 0 4 1 3
 
0 0 0 4 1

 0.283 0.179 -0.257 -0.07 0.21



0.239 -0.06 0.086 0.023 -
-1 
N =  -0.457 0.114 0.314 0.086 -0.257
 -0.166 0.042 0.114 -0.06 0.179
b := 8 
 0.665 -0.166 -0.457 0.239 0.283

b
q :=
 a q = 36
a=1
0.21 

0.07

0.257 
0.179 

0.283 

You might also like