summaryrefslogtreecommitdiff
path: root/413/CH4/EX4.2/Table_4_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '413/CH4/EX4.2/Table_4_2.sce')
-rw-r--r--413/CH4/EX4.2/Table_4_2.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/413/CH4/EX4.2/Table_4_2.sce b/413/CH4/EX4.2/Table_4_2.sce
new file mode 100644
index 000000000..4a76be593
--- /dev/null
+++ b/413/CH4/EX4.2/Table_4_2.sce
@@ -0,0 +1,16 @@
+clc
+clear
+
+function a=che(x)
+ a=0.9946+0.9973.*x+x.*x.*0.543+x.*x.*x.*0.1772
+ endfunction
+function a=mac(x)
+ a=1+x+x.*x/2+x.*x.*x/6
+endfunction
+function out=tab(y)
+out=[y,exp(y),che(y),exp(y)-che(y),mac(y),exp(y)-mac(y)]
+
+endfunction
+for y=-1:0.2:1
+disp(tab(y))
+end \ No newline at end of file