summaryrefslogtreecommitdiff
path: root/964/CH26/EX26.3/26_3.sce
diff options
context:
space:
mode:
Diffstat (limited to '964/CH26/EX26.3/26_3.sce')
-rwxr-xr-x964/CH26/EX26.3/26_3.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/964/CH26/EX26.3/26_3.sce b/964/CH26/EX26.3/26_3.sce
new file mode 100755
index 000000000..b72953d08
--- /dev/null
+++ b/964/CH26/EX26.3/26_3.sce
@@ -0,0 +1,17 @@
+//clc()
+x1 = 1;
+x2 = 2;
+y1 = 6.194631;
+y2 = 14.84392;
+y10 = 5.607005;
+y11 = 6.360865;
+y20 = 13.44346;
+y21 = 15.30224;
+Ec1 = -(y11 - y10)/5;
+disp(Ec1,"Ec (x = 1) = ")
+e1 = y1 - y11;
+disp(e1,"true error (x = 1) = ")
+Ec2 = -(y21 - y20)/5;
+disp(Ec2,"Ec (x = 2) = ")
+e2 = y2 - y21;
+disp(e2,"true error (x = 2) = ")