blob: 159debee2e6b3a68d095905657d9085286988f23 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
clc
clear
x=1.9;
function a=expsin(y)
a=(exp(x+y).*sin(x+y)-exp(x-y).*sin(x-y))/(2*y)
endfunction
function out=tab5(y)
out=[y,expsin(y)]
endfunction
y=0.05
for i=0:1:6
disp(tab5(y))
y=y.*0.5
end
|