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

Homework 1 (Chapter 1 and MATLAB basics)

Due: 08/31/2023, Class time

Instructions:

• Late Submissions are not accepted.


• MATLAB files need not be submitted but the screen shot of code and the output can be shown in
the submission document.
• Students are encouraged to actively work in the groups.

1. Problem 1.3 (page 41)


2. Problem 1.10 (page 41)
3. Problem 1.13(page 42).
4. Problem 1.30 (page 44).
5. In the series show here 20 + 21 + 22 + ⋯ + 2𝑛 , using for loop evaluate sum of the series,
when n=10; also find out 6th term in the series.

𝑥0 𝑥1 𝑥𝑝
6. The Maclaurin series of 𝑒 𝑥 = + + ⋯+ + ⋯, write an user defined function to
0! 1! 𝑝!
approximate this series in order to facilitate 𝑝 number of terms in the series, compare the
value obtained from the function at 𝑥 = 2 with MATLAB inbuilt function, when you
take p=2,3,4 terms.

7. Velocity of rocket as piece-wise time is given by,

10𝑡 2 − 5𝑡 0≤𝑡<8
624 − 5𝑡 8 ≤ 𝑡 < 16
𝑣(𝑡) = 36𝑡 + 12(𝑡 − 16)2 16 ≤ 𝑡 ≤ 26
2136𝑒 −0.1(𝑡−26) 𝑡 ≥ 26
{ 0 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒
Write a user defined function to compute a function t, also plot v(t) vs time (t) as t varies from 5
to 50.

You might also like