summaryrefslogtreecommitdiff
path: root/1673/CH1/EX1.11/1_11.sce
diff options
context:
space:
mode:
Diffstat (limited to '1673/CH1/EX1.11/1_11.sce')
-rwxr-xr-x1673/CH1/EX1.11/1_11.sce10
1 files changed, 10 insertions, 0 deletions
diff --git a/1673/CH1/EX1.11/1_11.sce b/1673/CH1/EX1.11/1_11.sce
new file mode 100755
index 000000000..82caff41e
--- /dev/null
+++ b/1673/CH1/EX1.11/1_11.sce
@@ -0,0 +1,10 @@
+//relative error
+//example 1.11
+//page 13
+clc;clear;close;
+x=1;y=1;z=1;
+u=(5*x*y^3)/z^3;
+dx=0.001;dy=0.001;dz=0.001;
+u_max=((5*y^2)/z^3)*dx+((10*x*y)/z^3)*dy+((15*x*y^2)/z^4)*dz;
+r_err=u_max/u;
+printf(' the relative error is :%f',r_err);