Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
• Part-1 of this assignment goes over some of the pre-requisites for this course
• Familiarity with first-year undergraduate Math is assumed
• Submission portal will be created only for Part-1
• Any prior programming experience is useful, but not required
• Part-2 is just “simple fun exercises” based on first two lectures of this
b. ℎ' ℎ*
𝑓 𝑎 + ℎ = 𝑓 𝑎 + ℎ𝑓 𝑎 + 𝑓 𝑎 + 𝑓 𝑎 +⋯
2! 3!
c. ℎ' --
-
ℎ* ---
𝑓 𝑎 + ℎ = 𝑓 𝑎 + ℎ𝑓 𝑎 + 𝑓 𝑎 + 𝑓 𝑎 + ⋯
2! 3!
d. ℎ' ' ℎ* *
𝑓 𝑎+ℎ =1+ℎ 𝑓 𝑎 + 𝑓 𝑎 + 𝑓 𝑎 +⋯
2! 3!
c. 𝑓 𝑥 + ℎ − 2𝑓 𝑥 + 𝑓 𝑥 − ℎ d. 𝑓 𝑥+ℎ −𝑓 𝑥
ℎ' ℎ'
1
MATLAB Programming for Numerical Computations Jan–March 2018
5. Euler’s explicit method can be used to solve the ODE, 𝑦 - = 𝑓 𝑡, 𝑦 . Given the values
of 𝑡3 , 𝑦3 and the step-size h, the value of 𝑦 at time 𝑡345 is given by:
a. 𝑦345 = ℎ𝑓 𝑡3 , 𝑦3 b. 𝑦345 = ℎ𝑓 𝑡345 , 𝑦345
c. 𝑦345 = 𝑦3 + ℎ𝑓 𝑡3 , 𝑦3 d. 𝑦345 = 𝑦3 + ℎ𝑓 𝑡345 , 𝑦345
6. Euler’s implicit method can be used to solve the ODE, 𝑦 - = 𝑓 𝑡, 𝑦 . Given the values
of 𝑡3 , 𝑦3 and the step-size h, the value of 𝑦 at time 𝑡345 is given by:
a. 𝑦345 = ℎ𝑓 𝑡3 , 𝑦3 b. 𝑦345 = ℎ𝑓 𝑡345 , 𝑦345
c. 𝑦345 = 𝑦3 + ℎ𝑓 𝑡3 , 𝑦3 d. 𝑦345 = 𝑦3 + ℎ𝑓 𝑡345 , 𝑦345
2
MATLAB Programming for Numerical Computations Jan–March 2018
PART-2: SOME SIMPLE MATLAB STUFF (From first two lectures of this course)
In this section, I have given some simple MATLAB commands to get started.
These are not pre-requisites. We will cover this in Module-1. This is to get some
participants start early, and those who have used MATLAB before to refresh their memory.
If your college or organization has MATLAB license, you may use it for this course. For
others, courtesy of MathWorks, we will provide access to MATLAB Online for the duration
of this course. The access information will be provided in mid-January on the course website.
12. Type help eye to get info about eye command used to make an identity matrix
13. Create a 4×4 identity matrix using command eye and assign it to Bi.
16. Assign third element of row-2 of A to scalar c. Now c should contain value 4.
18. Try to compute d*d. You should expect to get an error. Why?