Professional Documents
Culture Documents
1. (a) What would you enter in OCTAVE to calculate 23 + 78 and get as decimal places.
(b) What would you enter in OCTAVE to get factors of x2 + 5x − 6.
(c) What would you enter in OCTAVE to substitute x = 8 to x3 + 3x − 1.
(d) What would you enter in OCTAVE to substitute x = π/3 to sin(x) and get as
decimal places.
(e) What would you enter in OCTAVE to get derivative of x2 exp(x).
(f) What would you enter in OCTAVE to integrate general x ∗ tan(x).
2. (a) What would you enter to plot the curve given by y = t−sin(t) and y = 2−cos(t)
together on the same graph, for 0 ≤ t ≤ 6π.
(b) What would you enter to plot the curve given by x = t−sin(t) and y = 2−cos(t)
together on the same graph, for 0 ≤ t ≤ 6π.
dy(x) −2xy(x)
= .
dx 1 + x2
Solve the the equation with initial condition y(0) = 2. Plot the solution curve.
(b) Plot the solution curves of the above differential equation with initial condi-
tions, y(0) = 2, y(0) = 4, y(0) = 8 in the same graph.
5. Consider the function: f (x) = x3 −7x+2, plot f (x) and locate all real roots (correct
up to three decimal points).
Root 1:...................................
Root 2:...................................
Root 3:...................................