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 --- 1332/CH3/EX3.1/3_1.pdf | Bin 0 -> 6013 bytes 1332/CH3/EX3.1/3_1.sce | 7 +++++++ 1332/CH3/EX3.2/3_2.pdf | Bin 0 -> 6048 bytes 1332/CH3/EX3.2/3_2.sce | 10 ++++++++++ 1332/CH3/EX3.3/3_3.pdf | Bin 0 -> 6024 bytes 1332/CH3/EX3.3/3_3.sce | 9 +++++++++ 1332/CH3/EX3.4/3_4.pdf | Bin 0 -> 6027 bytes 1332/CH3/EX3.4/3_4.sce | 9 +++++++++ 1332/CH3/EX3.5/3_5.pdf | Bin 0 -> 6370 bytes 1332/CH3/EX3.5/3_5.sce | 22 ++++++++++++++++++++++ 10 files changed, 57 insertions(+) create mode 100755 1332/CH3/EX3.1/3_1.pdf create mode 100755 1332/CH3/EX3.1/3_1.sce create mode 100755 1332/CH3/EX3.2/3_2.pdf create mode 100755 1332/CH3/EX3.2/3_2.sce create mode 100755 1332/CH3/EX3.3/3_3.pdf create mode 100755 1332/CH3/EX3.3/3_3.sce create mode 100755 1332/CH3/EX3.4/3_4.pdf create mode 100755 1332/CH3/EX3.4/3_4.sce create mode 100755 1332/CH3/EX3.5/3_5.pdf create mode 100755 1332/CH3/EX3.5/3_5.sce (limited to '1332/CH3') diff --git a/1332/CH3/EX3.1/3_1.pdf b/1332/CH3/EX3.1/3_1.pdf new file mode 100755 index 000000000..5fb36e07b Binary files /dev/null and b/1332/CH3/EX3.1/3_1.pdf differ diff --git a/1332/CH3/EX3.1/3_1.sce b/1332/CH3/EX3.1/3_1.sce new file mode 100755 index 000000000..b93f90907 --- /dev/null +++ b/1332/CH3/EX3.1/3_1.sce @@ -0,0 +1,7 @@ +//Example 3.1 +//Limiting Error +//Page no. 45 +clc;clear;close; +R=1000; +e=0.1*1000; //limiting error calculation +printf('Magnitude of the Resistor resistence (R) =\n%i <= R <= %i',R-e,R+e) \ No newline at end of file diff --git a/1332/CH3/EX3.2/3_2.pdf b/1332/CH3/EX3.2/3_2.pdf new file mode 100755 index 000000000..fdc37ff6c Binary files /dev/null and b/1332/CH3/EX3.2/3_2.pdf differ diff --git a/1332/CH3/EX3.2/3_2.sce b/1332/CH3/EX3.2/3_2.sce new file mode 100755 index 000000000..190e4c51a --- /dev/null +++ b/1332/CH3/EX3.2/3_2.sce @@ -0,0 +1,10 @@ +//Example 3.2 +//Known Error +//Page no. 46 +clc;clear;close; +l=28;d=5; +v=%pi*l*(d/2)^2; +printf('\nVolume of Cylinder= %f cu. cm',v); +re_d=0.1;re_l=-0.5; +re_v=2*re_d+re_l; //relative error computation +printf('\n\nRelative error in volume= %f %%',re_v); \ No newline at end of file diff --git a/1332/CH3/EX3.3/3_3.pdf b/1332/CH3/EX3.3/3_3.pdf new file mode 100755 index 000000000..7350232f1 Binary files /dev/null and b/1332/CH3/EX3.3/3_3.pdf differ diff --git a/1332/CH3/EX3.3/3_3.sce b/1332/CH3/EX3.3/3_3.sce new file mode 100755 index 000000000..d08d13685 --- /dev/null +++ b/1332/CH3/EX3.3/3_3.sce @@ -0,0 +1,9 @@ +//Example 3.3 +//Absolute, Relative and Percetage Errors +//Page no. 48 +clc;clear;close; +x=0.00006;x1=0.00005; +ex=x-x1; //absolute error +Ex=ex/x1; //relative error +px=100*Ex; //percentage error +printf('\nAbsolute Error= %f\nRelative Error= %f\nPercentage Error= %f %%',ex,Ex,px); \ No newline at end of file diff --git a/1332/CH3/EX3.4/3_4.pdf b/1332/CH3/EX3.4/3_4.pdf new file mode 100755 index 000000000..52f4c0922 Binary files /dev/null and b/1332/CH3/EX3.4/3_4.pdf differ diff --git a/1332/CH3/EX3.4/3_4.sce b/1332/CH3/EX3.4/3_4.sce new file mode 100755 index 000000000..a5e93860e --- /dev/null +++ b/1332/CH3/EX3.4/3_4.sce @@ -0,0 +1,9 @@ +//Example 3.4 +//Absolute, Relative and Percetage Errors +//Page no. 48 +clc;clear;close; +x=100500;x1=100000; +ex=x-x1; //absolute error +Ex=ex/x1; //relative error +px=100*Ex; //percentage error +printf('\nAbsolute Error= %f\nRelative Error= %f\nPercentage Error= %f %%',ex,Ex,px); \ No newline at end of file diff --git a/1332/CH3/EX3.5/3_5.pdf b/1332/CH3/EX3.5/3_5.pdf new file mode 100755 index 000000000..dd8a9b6ac Binary files /dev/null and b/1332/CH3/EX3.5/3_5.pdf differ diff --git a/1332/CH3/EX3.5/3_5.sce b/1332/CH3/EX3.5/3_5.sce new file mode 100755 index 000000000..2f06e53be --- /dev/null +++ b/1332/CH3/EX3.5/3_5.sce @@ -0,0 +1,22 @@ +//Example 3.5 +//Absolute, Relative and Percentage Errors +//Page no. 52 +clc;clear;close; +x=9.12345;y=7.654321; +x1=9.1234;y1=7.6543; //on a 5 decimal computer +ex=x-x1; //absolute error of x +ey=y-y1; //absolute error of y +z1=x1+y1; +printf('\nAbsolute Error in x= %f',ex); +printf('\nAbsolute Error in y= %f',ey); +printf('\nAddition on a 5 decimal computer yields= %.5g',z1); +z2=16.777; +printf('\nAbsolute Total Error= %f',x+y-z2); +printf('\nAbsolute Propagated Error= %f',x+y-z1); +printf('\nAbsolute Round-off Error= %.4g',z1-z2); +printf('\nRealtive Total Error= %.4g',(x+y-z2)/(x+y)); +printf('\nRelative Propagated Error= %.2g',(x+y-z1)/(x+y)); +printf('\nRelative Round-off Error= %.3g',(z1-z2)/(x+y)); +printf('\nBound on the propagated relative error= %f',2*10^-4); +printf('\nBound on the total relative error= %f',3*10^-4); +printf('\nAs we can see that both the propagated and total relative error are less than their bound values') \ No newline at end of file -- cgit