From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 243/CH4/EX4.14/4_14.sce | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 243/CH4/EX4.14/4_14.sce (limited to '243/CH4/EX4.14') 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 -- cgit