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

Answers To Exercise Chapter 1-4 Math 4

1. The document contains solutions to test questions from various semesters. 2. In question 1 part a, the most positive root of the function f(x) is approximated as 2.438. 3. Students are reminded to check conditions before applying methods, such as ensuring a matrix is tridiagonal for Thomas algorithm.

Uploaded by

Zulhelmie Zaki
Copyright
© Attribution Non-Commercial (BY-NC)
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)
143 views6 pages

Answers To Exercise Chapter 1-4 Math 4

1. The document contains solutions to test questions from various semesters. 2. In question 1 part a, the most positive root of the function f(x) is approximated as 2.438. 3. Students are reminded to check conditions before applying methods, such as ensuring a matrix is tridiagonal for Thomas algorithm.

Uploaded by

Zulhelmie Zaki
Copyright
© Attribution Non-Commercial (BY-NC)
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/ 6

1

SOLUTION FOR TEST 1 SEM 1 2009/2010




Q1 (a) The root for ( )
2
sinh cos f t t t t = + is
4
0.540 t = .

(b) Percentage Relative Error

Exact-Approximation 0.539 0.540
100% 100% 0.2%
Exact 0.539

= = =



Q2 (i) Let
1
x = number of small arrangement

2
x = number of medium arrangement

3
x = number of large arrangement

Therefore, the system of linear equations is

1 2 3
1 2 3
1 2 3
2 4 24
3 4 8 50
3 6 6 48
x x x
x x x
x x x
+ + =
+ + =
+ + =


(ii)
2
3
4
x


=



@
1 2
2, 3 x x = = and
3
4 x = .
Therefore, Dazzling Florist made 2 small arrangements of flowers, 3
medium arrangements of flowers and 4 large arrangements of flowers
during Mothers Day.



Q3 ( ) 0.704 1.568 0.808
T
x .


Q4
2
( ) 1 2( 2) 0.05( 2)( 5) P x x x x = + + .

2
(4.4) (4.4) 5.728 f P = .

It is not possible to evaluate (8.01) f by using this polynomial since 8.01 x =
is not in the interval (or outside the interval) of 2 8 x .
(8.01) f is not applicable.

Answer Scheme Sem II Session 2008/2009

Question Answer Scheme

Q1

(a) Let
2
( ) ( ) ( ) 2 10 cos 2
3
f x g x h x x x x

= = + +


.

(1) 6.004, (2) 2.329, (3) 4.278 f f f = = =
(1) (2) ( 6.004)( 2.329) 13.983 f f = =
(2) (3) ( 2.329)(4.278) 9.963 f f = =

Since (2) (3) 0 f f < , there exist at least a root in interval [2, 3] .

(b) The root of ( ) f x is
7
2.457 x = .

Q2

(a) (i) Let assume mixed nuts as
1
x , granola as
2
x and dried fruit as
3
x .

1 2 3
1 2 3
1 2 3
0.5 0.5 5.97
1.333 0.25 1.5 9.22
0.333 1.5 2 10.96
x x x
x x x
x x x
+ + =
+ + =
+ + =


(ii) Result of elimination process:


1
2
3
1 0.5 0.5 5.97 3.150
0 0.417 0.834 1.262 2.750
0 0 4.502 13.009 2.890
x
x
x

=




=



Thus, price per kg for mixed nuts is RM 3.15, granola is RM 2.75 and
dried fruit is RM 2.89.

(iii) Relative error in calculating price for these three snacks are 0.

(b) ( ) 3.818 1.182 5.909
T
x .

Q3

(10) (0.167)(12) ( 0.333)(13) (0.833)(14) (0.333)(16)
14.665.
f + + +
=






SEMESTER II SESSION 2009/2010


Questions Answer Scheme

Q1(a)

(a) Let 10 2
2
+ = x x x f ) (

( 5) 5.000, ( 4) 2
( 5) ( 4) 10 0
f f
f f
= =
= <
,
(2) 2, (3) 5
(2) (3) 10 0
f f
f f
= =
= <


Since, ( 5) ( 4) and (2) (3) 0 f f f f < , there exist two roots in interval [-5,5].

(b) Approximate positive root in interval [2,3] is
7
2.317 x = .

Q1(b)

Given
1
1 , 10000, 250, 60
(1 )
n
Ar M A M n
r

= = = =

+



60 60
1 1
10000 250 1 250 1 10000 0
(1 ) (1 )
r r
r r

= =

+ +



60 60
1 1
( ) 250 1 10000 @ 1 40
(1 ) (1 )
f r r r
r r

=

+ +



60 60
( ) 250 250(1 ) 10000 @ 1 (1 ) 40 f r r r r r

= + + (or other forms of equation)

i r
) (r f ) ( ' r f
0 0.100 -750.821 -9955.214
1 0.025 -56.821 -6673.899
2 0.016 -6.453 -4303.933
3 0.015 -2.324 -3951.291

By three iterations, the monthly interest rate is
3
0.015 @ 1.5% r = .

Q2(a)

1 2 3
1, 1 and 1 x x x = = = .


Q2(b)

1 2 3
2, 1 and 3 x x x = = = .






ANSWER TEST 1 SEM I 2010/2011


Questions Answer

Q1(a)

(a) IVT: Let 0 ) ( = x f is a non linear equation. If 0 ) ( ) ( < b f a f , then it is guaranteed
that exists at least a root in the interval [a,b].


(b)
x
e x x f

= 1 4 ) (
3
.

( 2) 40.389, (2) 30.865 f f = =
Since ( 2) (2) 0 f f < , there exist one root in interval [-2,2].


(c)
x
e x x f

+ =
2
12 ) ( '

(d) Root for ( ) 0 f x = is 719 . 0
6
= x .


Q2(a)


=
2
3
2
x


Q3

(a) Condition of using Thomas algorithm: Matrix A must be a tridiagonal matrix.

(b)
68
5 13.6
4
0.8
5
0.2
1
5
x





= =









Answer of Test 1 Sem II 2010/2011


Q1

Given
2
sin x x x = + .

2 2
sin 0 ( ) sin x x x f x x x x + = = +

(0) 0, (1) 0.841, (2) 1.012 f f f = = = .

Since (1) (2) 0 f f < , so there is at least a root in [1,2] by using IVT.

By using Secant method, the least positive root of
2
sin x x x + = is 599 . 1
4
= x x .


Q2 (a)

Rearrange the system to be diagonally dominant.


4 2 600
2 6 3 660
2 4 360
x y z
x y z
x y z
+ + =
+ + =
+ + =


Hence the solution is 114, 54.999@55 and 34 x y z = = = .


Q2(b)

1 2 3
0.635, 0.588 and 1.835 x x x = = = .

Q3

By Newtons divided difference polynomial:

4
( ) 0.436 0.463( 0.25) 2.681( 0.25)( 0.65)
3.816( 0.25)( 0.65)( 1.25) 4.556( 0.25)( 0.65)( 1.25)( 1.40)
P x x x x
x x x x x x x
= +
+



4
(1.3) (1.3)
0.436 0.463(1.05) 2.681(1.05)(0.65)
3.816(1.05)(0.65)(0.05) 4.556(1.05)(0.65)(0.05)( 0.1)
1.053 @ 1.054
V P =
= +
+
=





DEAR STUDENTS,

BEFORE YOU PROCEED WITH ANY KIND OF METHODS, AT FIRST PLACE, PLEASE
CHECK ITS CONDITION. FOR EXAMPLE, WHEN SOLVING BY USING:

THOMAS ALGORITHM MATRIX A MUST BE TRIDIAGONAL MATRIX!!

GAUSS-SEIDEL ITERATION METHOD MATRIX A MUST BE
DIAGONALLY DOMINANT!!


ANY ELSE CONDITION??? PLS REFER TO YOUR MODULE. THANK U!!
ANSWER TEST 1 SEM I SESSION 2011/2012



Q1(a)

The most positive root for ( ) f x is
3
2.438 c = .


Q1(b)


The positive root for ( ) f x is
3
2.800 x = .

Q2(a)

Three linear equations (or system of linear equations):

106.8 25 5
177.2 64 8
279.2 144 12
x y z
x y z
x y z
= + +
= + +
= + +


Or in matrix vector form:
25 5 1 106.8
64 8 1 177.2
144 12 1 279.2
x
y
z
( ( (
( ( (
=
( ( (
( ( (



Q2(b)

Doolittle method (assume x as
1
x , y as
2
x and z as
3
x ).

Answer is
0.29
19.69
1.086
x
y
z
( (
( (
=
( (
( (



Q3

Natural Cubic Spline for 2 k = ,

( ) ( ) ( ) ( ) ( )
3 3
3 3 3 2 2 2
2 3 2 2 3 2 2
2 2 2 2
6 6 6 6
m f m m f m
S x x x x x h x x h x x
h h h h
| | | |
= + + +
| |
\ \



( )
( )
( )
( ) ( ) ( ) ( ) ( )
3 3 19.2 0 15 19.2 40 0
3 2 1 3 1 2
6 1 6 1 1 6 1 6
x x x x
| | | |
= + + +
| |
\ \


( ) ( ) ( )
3
3.2 3 11.8 3 40 2 , x x x = + + | | 2, 3 x


Therefore, when 2.3 x = , ( ) ( )
2
2.3 2.3 21.358 f S = .

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