summaryrefslogtreecommitdiff
path: root/413/CH5/EX5.7/Table_5_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '413/CH5/EX5.7/Table_5_2.sce')
-rw-r--r--413/CH5/EX5.7/Table_5_2.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/413/CH5/EX5.7/Table_5_2.sce b/413/CH5/EX5.7/Table_5_2.sce
new file mode 100644
index 000000000..159debee2
--- /dev/null
+++ b/413/CH5/EX5.7/Table_5_2.sce
@@ -0,0 +1,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 \ No newline at end of file