summaryrefslogtreecommitdiff
path: root/75/CH3/EX3.3/ex_3.sce
diff options
context:
space:
mode:
Diffstat (limited to '75/CH3/EX3.3/ex_3.sce')
-rwxr-xr-x75/CH3/EX3.3/ex_3.sce10
1 files changed, 10 insertions, 0 deletions
diff --git a/75/CH3/EX3.3/ex_3.sce b/75/CH3/EX3.3/ex_3.sce
new file mode 100755
index 000000000..801f9a7e3
--- /dev/null
+++ b/75/CH3/EX3.3/ex_3.sce
@@ -0,0 +1,10 @@
+ // PG (137)
+
+X=[0,-1]
+Y=[1,2]
+deff('[y]=f(x)','y=log(x)')
+deff('[y]=fp(x)','y=1/x')
+deff('[y]=fpp(x)','y=-1/(x)^2')
+p = lagrange(X,Y)
+// E = f(x)-p
+e = 0.00005 // for a four-place logarithmic table