0% found this document useful (0 votes)
74 views6 pages

Assignment 2 Math

1. The dimensions of the rectangular box are provided. 2. An expression is derived relating the weight of the box (W) and the wall thickness (x). 3. The expression is W = 29.088x - 1.616x^2, where W is the weight of the box in pounds and x is the wall thickness in inches.

Uploaded by

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

Assignment 2 Math

1. The dimensions of the rectangular box are provided. 2. An expression is derived relating the weight of the box (W) and the wall thickness (x). 3. The expression is W = 29.088x - 1.616x^2, where W is the weight of the box in pounds and x is the wall thickness in inches.

Uploaded by

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

ASSIGNMENT 2 MATH ( DMCU 1032 )

 MUHAMAD NAUFAL BIN MUHAMAD NOOR


D042210192

1. Solve the following system of linear equations using Gaussian elimination


method.

a. x +2=1 3 x+ 4 y =1

[ 3xx 24 yy ]=[11][ 13 24] [ xy]=[11][ 13 24|11]=[ xy ][ 13 24|11] 3 r −r [ 10 22|12]


1

2

2
2 y=2 When y =1 x=−1 , y=1 y=
2
x +2 (1 )=1 [ xy ]=[−11] y=1 x=1−2
x=−1

b. x + y=22 x+ 4 y=9 [ 2xx 4yy ]=[ 29][ 12 14] [ xy ]=[29 ][ 12 14|29 ]=[ xy ]
[ 12 14|29 ] 2r −r [ 10 −21 |−52 ]
1

2

−5
−2 y=−5 When y =2.5 x=−0.5 , y=2.5 y=
−2
x +2.5=2 [][ ]
x
y
=
−0.5
2.5
y=2.5 x=2−2.5
x=−0.5

c. x +3 y−3 z=6 2 x+ 4 y−2 z=2 3 x+ 6 y−4 z=3

[ ] [ ][ ][ ] [ ][ | ] [ ]
x 3 y −3 z 6 1 3 −3 x 6 1 3 −3 6 x
2 x 4 y −2 z = 2 2 4 −2 y = 2 2 4 −2 2 = y
3 x 6 y −4 z 3 3 6 −4 z 3 3 6 −4 3 z

[ |] [ |] [ |] [ |]
1 3 −3 6 1 3 −3 6 1 3 −3 6 1 3 −3 6
3
2 4 −2 2 2 r 1−r 2 0 2 −4 10 3 r 1−r 0 2 −4 10 r −r 3 0 2 −4 10
3
2 2
3 6 −4 3 ↔
3 6 −4 3 ↔
0 3 −5 15 ↔ 0 0 −1 0

−1 z=0 When z=0 When z=0 , y =5 z =0


2 y−4 ( 0 )=10 x +3 ( 5 )−3 ( 0 )=6
10
y= x=6−15
2
y=5 x=−9

[][ ]
x −9
x=9 , y=5 , z=0 y = 5
z 0

d. x +2 y+ 4 z=22 x−3 y +5 z =33 x−4 y +6 z=5

[ ] [ ][ ] [ ] [ ][ |] [ ]
x 2 y 4z 2 1 2 4 x 2 1 2 42 x
2 x −3 y 5 z = 3 2 −3 5 y = 3 2 −3 5 3 = y
3 x −4 y 6 z 5 3 −4 6 z 5 3 −4 6 5 z

[ |]
1 2 4 2

[ |] [ |] [ |]
1 2 42 1 2 42 1 2 42
10 0 7 3 1
2 −3 5 3 2 r 1−r 2 0 7 3 1 3 r 1 −r 3 0 7 3 1 r −r 3
7 2 −12 3
3 −4 6 5 ↔
3 −4 65 ↔
0 10 6 1 ↔
0 0
7 7
−12 3
z= When z=−0.25
7 7
When z=−0.25 , y =0.25−12 z=3 7 y +3 (−0.25 ) =1
3
x +2 ( 0.25 ) +4 (−0.25 )=2 z= 7 y=1+ 0.75
−12
1.75
x +0.5−1=2 z=−0.25 y= x=2+0.5
7
y=0.25 x=2.5
[][ ]
x 2.5
x=2.5 , y=0.25 , z=−0.25 y = 0.25
z −0.25

2. Use the Gauss-Seidel method to solve the following system with ( ) 0 0 x =


and   0.001.

3− y + z
a) 4 x+ y−z=32 x+7 y+ z =19x−3 y +12 z=314 x+ y−z=3 x=
4

19−2 x−z 31−x +3 y


2 x+7 y+ z =19 y= x−3 y +12 z=31 z=
7 12

k x y z k (k −1 ) k (k−1)
x −x Max∨¿ x −x
0 0 0 0 x y z
1 0.75 2.5 3.1458 0.75 2.5 3.1458 3.1458
2 0.9115 2.0045 3.0085 0.1615 -0.4955 -0.1373 0.1615
3 1.001 1.9985 2.9995 0.0895 0.006 -0.009 0.0895
4 1.0003 2 3 -0.0007 0.0015 0.0005 0.0015

x=1.0003 , y=2 , z=3

b) x− y +10 z=−720 x+ 3 y−2 z=512 x+ 8 y+ 4 y =25 x− y +10 z=−7

20 x+ 3 y−2 z=51 20 x+ 3 y−2 z=5120 x +3 y−2 z=51 r 1 ↔r 2


x− y +10 z=−7 r 2 ↔r 3 2 x+ 8 y+ 4 z=25 2 x+ 8 y+ 4 y =25



2 x+ 8 y+ 4 y =25 x− y +10 z=−7

51−3 y +2 z 25−2 x−4 z


20 x+ 3 y−2 z=51 x= 2 x+ 8 y+ 4 y =25 y= x− y +10 z=−7
20 8
−7−x+ y
z=
10

k x y z k (k −1 ) k (k−1)
x −x Max∨¿ x −x
0 0 0 0 x y z
1 2.55 2.4875 -0.7063 2.55 2.4875 -0.7063 2.55
2 2.1062 2.9516 -0.6155 -0.4438 0.4641 0.0908 0.4641
3 2.0457 2.9213 -0.6124 -0.0605 -0.0303 0.0031 0.0031
4 2.0506 2.9186 -0.6132 0.0049 -0.0027 -0.0008 0.0049
5 2.0509 2.9189 -0.6132 0.0003 0.0003 0 0.0003

x=2.0509 , y=2.9189 , z=−0.6132

3. Given the system;

17 x 1−2 x2 −3 x 3=500−5 x 1+21 x 2−2 x 3=200−5 x 1−5 x2 +22 x 3=30Solve the


problem with Gauss-Seidel method to  = 0.01

500+2 x 2 +3 x 3 200+5 x1 +2 x 3
17 x 1−2 x2 −3 x 3=500 x 1= −5 x 1+21 x 2−2 x 3=200 x 2=
17 21
30+5 x1 +5 x 2
−5 x 1−5 x2 +22 x 3=30 x 3=
22

k x1 x2 x3 k
x −x
(k −1 ) k
x −x
(k −1 )
0 0 0 0 x1 x2 x3
1 29.4117 16.526 11.8041 29.411 16.5266 11.804 29.4117
6 7 1
2 33.4391 18.609 13.1929 4.0274 2.0831 1.3888 4.0274
7
3 33.9293 18.858 13.3609 0.4902 0.249 0.168 0.4902
7
4 33.9882 18.888 13.3811 0.0589 0.03 0.202 0.0589
7
5 33.9953 18.892 13.3835 0.0071 0.0036 0.0024 0.0071
3

x 1=33.9953 , x2 =18.8923 , x 3=13.3855

4. The outside dimensions of a rectangular box (bottom and four sides, no


top), made of aluminum, are 24 by 12 by 4 inches as shown in Figure 1. The
wall thickness of the bottom and the sides is x.

i. Derive an expression that relates the weight of the box and the wall
thickness, x

W
V= 12=x + x+ z 24=x + x+ y(V ¿¿ out−V ¿ )γ=W ¿
γ
z=12−2 x y=24−2 x [ ( 24 × 12× 4 )−( y × z × 4 ) ] × 0.101=W
[ 1152−[ ( 24−2 x ) ( 12−2 x ) 4 ] ] × 0.101=W [ 1152−[ ( 288−72 x+ 4 x 2 ) 4 ] ] ×0.101=W
[ 1152−( 1152−288 x+16 x 2 ) ] × 0.101=W ( 1152−1152+288 x−16 x 2 ) ×0.101=W
W =( 288 x−16 x 2 ) × 0.101W =29.088 x−1.616 x 215=29.088 x −1.616 x2
2
29.088 x−1.616 x −15=0
ii. Use bisection method to find the root of the function in (a) accurate to
within  = 0.001, given that x a=0 and x a=0.4.
n xa xb xm f¿ f (x m) ¿ x b−x m∨¿
0 0 0.4 0.2 -15 -9.247 0.2
1 0.2 0.4 0.3 -9.247 -6.419 0.1
2 0.3 0.4 0.35 -6.419 -5.0172 0.05
3 0.35 0.4 0.375 -5.0172 -4.3193 0.25
4 0.375 0.4 0.3875 -4.3193 -3.9711 0.0125
5 0.3875 0.4 0.3938 -3.9711 -3.7958 0.0062
6 0.3938 0.4 0.3969 -3.7958 -3.7095 0.0031
7 0.3969 0.4 0.3985 -3.7095 -3.6651 0.0015
8 0.3985 0.4 0.3993 -3.6651 -3.6428 0.0007

Root, x m=0.3993

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy