¿¬½À¹®Á¦ 4-27 (a) ÇÔ¼ö ÇÁ·Î±×·¥ divdif¸¦ »ç¿ëÇÏ¿© f(x) =tan^-1(x)¿¡ ´ëÇÑ Â÷ºÐ D0 = f(x0), D1=f[x0,x1],...,D5f[x0,x1,x2,x3,x4,x5]¸¦ °è»êÇϽÿÀ À̶§¿¡ x0= 0, x1=0.2, x2=0.4 x5=1¸¦ »ç¿ëÇÑ´Ù.
-- Divided Differences of f --- i x_i f(x_i) D_i ---------------------------------------- 0 2.72 0.0000 0.0000e+000 ----------------------------------------
ans =
0 0.1000 0.2000 0.3000 0.4000 0.5000 0.6000 0.7000 0.8000 0.9000 1.0000 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% (b) ¹®Ç× (a)ÀÇ °á°ú¸¦ ÀÌ¿ëÇÏ¿© Pj(x)ÀÇ °ªÀ» x = 0.1, 0.3, 0.5¿¡¼ J=1,....5¿¡ ´ëÇÏ¿© °è»êÇϽÿÀ
>> divdif(f,x) --- Divided Differences of f --- i x_i f(x_i) D_i ---------------------------------------- 0 2.72 1.0000 1.0000e+000 ----------------------------------------
ans =
1 2 3 4 5
|
|