summaryrefslogtreecommitdiff
path: root/1673/CH1/EX1.10/1_10.sce
diff options
context:
space:
mode:
Diffstat (limited to '1673/CH1/EX1.10/1_10.sce')
-rwxr-xr-x1673/CH1/EX1.10/1_10.sce10
1 files changed, 10 insertions, 0 deletions
diff --git a/1673/CH1/EX1.10/1_10.sce b/1673/CH1/EX1.10/1_10.sce
new file mode 100755
index 000000000..f2a07dd9c
--- /dev/null
+++ b/1673/CH1/EX1.10/1_10.sce
@@ -0,0 +1,10 @@
+//relative error
+//example 1.10
+//page 12
+clc;clear;close;
+a=6.54;b=48.64;c=13.5
+da=0.01;db=0.02;dc=0.03;
+s=(a^2*sqrt(b))/c^3;
+disp(s,'s=');
+r_err=2*(da/a)+(db/b)/2+3*(dc/c);
+printf(' the relative error is :%f',r_err);