Sunteți pe pagina 1din 3

Taylors University

School of Engineering

Computing Applications for Engineers


(ENG2314)

Dr Thein Chung Ket

PRACTICE 3 System of Linear Algebraic Equation & Root finding method


Your Name:
Student ID:.
Date/Time:.

Note: You should able to solve by both analytical method and MATLAB.

A) System of Linear Algebraic Equation


1.

Use analytical way to solve for the following:


2x1 6x2 = -18
-x1 + 8x2 = 40
a) Use Cramers rule to solve for the xs. Check your results by substituting them back
into the equations.
b) Obtain the solution by plot the graph in MATLAB. Deduce the solution by located the
intersection point.

2.

Use MATLAB to determine the solution for the equations below:


2x2 + 5x3 = 1
2x1 + x2 + x3 = 1
3x1 + x2

=2

(a) Compute the determinant


(b) Use Cramers rule to solve for the xs
3.

10x1 + 2x2 x3 = 27
3x1 5x2 + 2x3 = 61.5
x1 + x2 + 6x3 = 21.5
Solve by using Cramers rule. Check your results into the original equations to check
your answers. You must able to either analytical calculation or using MATLAB
programming language.
Page 1 of 3

Taylors University
School of Engineering

Computing Applications for Engineers


(ENG2314)

Dr Thein Chung Ket

Challenging Question
4.
A logging company has a contract with a local mill to provide 1000m3 of Lodgepole pine,
800m3 of spruce, and 600m3 of Douglas fir logs per month. There are three regions available for
logging. The following table gives the species mix, and timber density for each region.

Region
West
North
East

Volume/hectare
(m3/ha)
330
390
290

% Pine

% Spruce

% Fir

70
10
5

20
60
20

10
30
75

How many hectares should one log in each operating region listed above to deliver exactly the
required volume of logs? I do not want to have to store logs so I do not want any left over at the
end of each month, but I do need to make my quota.
Solve the above challenges using Cramers rule. [you must able to solve both analytical and
writing the script]

5.
It takes three different ingredients A, B, and C, to produce a certain chemical substance. A,
B, and C have to be dissolved in water separately before they interact to form the chemical. Suppose
that the solution containing A at 1.5 g/cm3 combined with the solution containing B at 3.6 g/cm3
combined with the solution containing C at 5.3 g/cm 3 makes 25.07 g of the chemical. If the
proportion for A, B, C in these solutions are changed to 2.5, 4.3, and 2.4 g/cm3, respectively (while
the volumes remain the same), then 22.36 g of the chemical is produced. Finally, if the proportions
are 2.7, 5.5, and 3.2 g/cm3, respectively, then 28.14 g of the chemical is produced. What are the
volumes (in cubic centimeters) of the solutions containing A, B, and C?
Solve the above challenges using Cramers rule. [you must able to solve both analytical and
writing the script]

Page 2 of 3

Taylors University
School of Engineering

Computing Applications for Engineers


(ENG2314)

B)

Root finding method

1.

By using analytical to solve for this function, f(x) = x3-20 using:-

Dr Thein Chung Ket

a) Bisection method
b) False position method
c) Newton Raphson method
d) Secant method
Calculate the solution (at least 2 iterations) to show that you are familiar with these
methods. You may start with two initial guess values, e.g., 1 and 3.
2.

Using the equation in Question 1, write a MATLAB script file to solve using:a) Bisection method
b) False position method
c) Newton Raphson method
d) Secant method

Note:
Name each file with respective method, e.g., Bisection method filename is: Bisection.m
Please refer to the Lecture Notes to understand the Bisection, False Position, Newton
Raphson and Secant Methods.

The False Position and Secant Methods are just the so called advanced version of Bisection
and Newton Raphson methods, respectively. Therefore, the codes which are written for
Bisection and Newton Raphson methods can be converted easily to False Position and Secant
programs, respectively with simple modifications.

Challenging Question (analytical way to solve)


1.

Consider the following nonlinear equation


() = tan( ) = 0
Compare the roots after 3 iterations using newton Raphson (guess value = 2) and
bisection (guess value [2, 2.5]) formulae. Which methods converge faster? Given that the
exact solution is 2.0288.
(10 marks)

Page 3 of 3

S-ar putea să vă placă și