diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /243/CH4/EX4.14 | |
download | Scilab-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-x | 243/CH4/EX4.14/4_14.sce | 13 |
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 |