Professional Documents
Culture Documents
Homework 1-1
Homework 1-1
Instructions:
𝑥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.
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.