Extra Problems
Extra Problems
t
-1 3
𝑦 − 𝑦1 𝑦2 − 𝑦1
=
𝑡 − 𝑡1 𝑡2 − 𝑡1
𝑦−0 1−0
=
𝑡+1 3+1
………
.. 𝟏
1𝑎00 1
.. 𝟐
0100 :
0 0 1 0 .. .. : 𝐱 = :
𝒏−2
: ....1 .. :
𝟎
: ...... 1 0 ( 𝒏 )
(𝑏 𝑏 . . . . 𝑏 1)
c. Write down the output of the function for the following inputs:
i. a=10, b=0.1 and n=30.
ii. a=2, b=-0.05 and n=50.
Solution:
clc;
clear all;
close all;
x = Prob_2(10,0.1,30);
then:
x = Prob_2(2,-0.05,50);