Você está na página 1de 10

Tugas Komputasi Numerik

Muammar Hawary

1606904882

Komnum-01

Departemen Teknik Metalurgi dan Material

Fakultas Teknik

Universitas Indonesia

Depok
Tugas Minggu 1

1. x4 + 3x3 – 2x2 + 7
 Metode Bisect

sinh(3𝑥 2 +1)
2. tanh(2𝑥 2 +3)

 Metode Bisect
Tugas Minggu 2

(6.1) 𝑓(𝑥) = 𝑠𝑖𝑛(√𝑥) − 𝑥

Use an initial guess of x0 = 0.5 and iterate until εa ≤ 0.01%.


 Metode Fzero.
(6.13) Mechanical engineers, as well as most other engineers, use thermodynamics
extensively in their work. The following polynomial can be used to relate the zero-
pressure specific heat of dry air cp in kJ/(kg K) to temperature in K:

𝑐𝑝 = 0.99403 + 1.671 + 10−4 𝑇 + 9.7215 × 10−8 𝑇 2 − 9.5838 × 10−11 𝑇 3


+ 1.9520 × 10−14 𝑇 4
(b) to determine the temperature that corresponds to a specific heat of 1.1 kJ/(kg K)
with MATLAB polynomial functions.
 Metode Polyval
(6.14) In a chemical engineering process, water vapor (H2O) is heated to sufficiently high
temperatures that a significant portion of the water dissociates, or splits apart, to form
oxygen (O2) and hydrogen (H2):

H2O→←H2 + 12O2
If it is assumed that this is the only reaction involved, the mole fraction x of H2O that
dissociates can be represented by

𝑥 2𝑝𝑡
𝐾= √
1−𝑥 2+𝑥

where K is the reaction’s equilibrium constant and 𝑝𝑡 is the total pressure of the mixture.
If 𝑝𝑡 = 3 atm and K = 0.05, determine the value of x that satisfies Eq. (P6.14.1).
 Metode Fzero
(12.3) Use the Gauss-Seidel method to solve the following system until the percent relative
error falls below εs = 5%:

10x1 + 2x2 − x3 = 27
−3x1 − 6x2 + 2x3 = −61.5
x1 + x2 + 5x3 = −21.5
 Metode Gauss-Seidel
(12.5) The following system of equations is designed to determine concentrations (the c’s in
g/m3) in a series of coupled reactors as a function of the amount of mass input to each
reactor (the right-hand sides in g/day):

15c1 − 3c2 − c3 = 3800


−3c1 + 18c2 − 6c3 = 1200
−4c1 − c2 + 12c3 = 2350
Solve this problem with the Gauss-Seidel method to εs = 5%.
 Metode Gauss-Seidel
Tugas Minggu 3

(19.2) Evaluate the following integral:


4
∫ (1 − 𝑒 −𝑥 )𝑑𝑥
0

 Metode Trapezoid

 Metode Romberg
(19.3) Evaluate the following integral:
𝜋/2
∫ (8 + 4 cos 𝑥)𝑑𝑥
0

 Metode Trapezoid

 Metode Romberg
(19.4) Evaluate the following integral:
4
∫ (1 − 𝑥 − 4𝑥3 + 2𝑥5)𝑑𝑥
−2

 Metode Trapezoid

 Metode Romberg

Você também pode gostar