Docsity

Assignment with Solution - Mechanical Engineering Problem Solving | MECH 102, Assignments of Mechanical Engineering

Toggle sidebar
bg1
cols
1
0.4
0.4
0.8−
0
0.2
1.8−
2.6
0
0.2−
0.2−
7.4
=cols 2
〈〉 cols 2
〈〉 3 cols 0
〈〉
⋅−:=
cols 1
〈〉 cols 1
〈〉 2 cols 0
〈〉
⋅−:=
Eliminate the 1st unknown from the 2nd and 3rd rows (cols)
cols
1
0.4
0.4
0.8−
2
1
1−
1
3
1
1
5
=cols 0
〈〉 cols 0
〈〉
5
:=
Normalize the 1st row (col)
cols
5
2
2
4−
2
1
1−
1
3
1
1
5
=cols 1
〈〉 temp:=
cols 0
〈〉 cols 1
〈〉
:=
temp cols 0
〈〉
:=
Pivot the 1st and 2nd rows (cols) to select the largest magnitude pivot element (5)
cols
2
1
1−
1
5
2
2
4−
3
1
1
5
=cols AT
:=
Convert the rows to columns
A
2
5
3
1
2
1
1−
2
1
1
4−
5
:=
9.12 solution using MathCAD partial pivoting
pf2

Partial preview of the text

Download Assignment with Solution - Mechanical Engineering Problem Solving | MECH 102 and more Assignments Mechanical Engineering in PDF only on Docsity!

cols

cols 2 =

cols 2

3 cols 0

cols 1

cols 1

2 cols 0

Eliminate the 1st unknown from the 2nd and 3rd rows (cols)

cols

cols 0 = 〈 〉 (^) cols〈 〉 0 5

Normalize the 1st row (col)

cols

cols 1 =

:=temp

cols 0

cols 1

temp cols 0

Pivot the 1st and 2nd rows (cols) to select the largest magnitude pivot element (5)

cols

cols :=AT =

Convert the rows to columns

A

9.12 solution using MathCAD partial pivoting

x1 = 14 x2 =− 32 x3 =− 5

x x x

:= result〈 〉 3

result

result cols = := T

cols

cols 〈 〉^1 :=cols〈 〉 1 −(^ cols 〈 〉^1 ) 2 ⋅cols〈 〉 2 =

cols 〈 〉^0 :=cols〈 〉 0 −(^ cols 〈 〉^0 ) 2 ⋅cols〈 〉 2

Eliminate the 3rd unknown from the 1st and 2nd rows (cols)

cols

cols 〈 〉^2 cols^ =

cols 2

2

Normalize the 3rd row (col)

cols

cols 〈 〉^2 :=cols〈 〉 2 −(^ cols 〈 〉^2 ) 1 ⋅cols〈 〉 1 =

cols 〈 〉^0 :=cols〈 〉 0 −(^ cols 〈 〉^0 ) 1 ⋅cols〈 〉 1

Eliminate the 2nd unknown from the 1st and 3rd rows (cols)

cols

cols 〈 〉^1 cols^ =

cols 1

1

Normalize the 2nd row (col)