summaryrefslogtreecommitdiff
path: root/243/CH4/EX4.14
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /243/CH4/EX4.14
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '243/CH4/EX4.14')
-rwxr-xr-x243/CH4/EX4.14/4_14.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/243/CH4/EX4.14/4_14.sce b/243/CH4/EX4.14/4_14.sce
new file mode 100755
index 000000000..74e3c37bc
--- /dev/null
+++ b/243/CH4/EX4.14/4_14.sce
@@ -0,0 +1,13 @@
+//Example No. 4_14
+//Absolute & Relative Errors
+//Pg No. 79
+clear ; close ; clc ;
+
+xa = 4.000
+deff('f = f(x)','f = sqrt(x) + x')
+//Assuming x is correct to 4 significant digits
+ex = 0.5 * 10^(-4 + 1)
+df_xa = derivative(f,4)
+ef = ex * df_xa
+er_f = ef/f(xa)
+mprintf('\n ex = %.0E \n df(xa) = %.2f \n ef = %.2E \n er,f = %.2E \n', ex,df_xa,ef,er_f) \ No newline at end of file