Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

In teams of 4 students and Using MatLab codes, solve the following questions

Use the Jacobi and Gauss-Seidel methods to solve the same problem (comment on the results)

1. x1 - 2 x2 - 4 x3 = 17; 2 x1 + x2 + x3 = 0; x1 - 5 x2 - 3 x3 = 3
2. 3 x1 + x2 + x3 = 8; 10 x1 - 3 x2 - x3 = 1; x1 - 2 x2 + 3 x3 = 6

Use the methods (Bisection - False position ) to find approximations to all real roots of the given
equations

1. x - cos x = 0 [0, π/2]


2. log ( x -1) - cos (x -1) = 0 for 2 ≤ x ≤ 4

Use the methods (Euler – improved Euler - RK) to find approximations to all real roots of the given
differential equations

1. y¢ = - y , y(0) = 1 2 , to find y(1) where h = 0.25


2. y¢ = y + x , y(0) = 1 , to find y(1) where h = 1 / 2
3. y = x + 3y , y(0) = 1 ; y(0.2) where h = 0.1

Use curve fitting toolbox to fit this data as(linear, 2 nd and 3rd degree polynomials – power model -
exponential)

You might also like