summaryrefslogtreecommitdiff
path: root/1332/CH3
diff options
context:
space:
mode:
Diffstat (limited to '1332/CH3')
-rwxr-xr-x1332/CH3/EX3.1/3_1.pdfbin0 -> 6013 bytes
-rwxr-xr-x1332/CH3/EX3.1/3_1.sce7
-rwxr-xr-x1332/CH3/EX3.2/3_2.pdfbin0 -> 6048 bytes
-rwxr-xr-x1332/CH3/EX3.2/3_2.sce10
-rwxr-xr-x1332/CH3/EX3.3/3_3.pdfbin0 -> 6024 bytes
-rwxr-xr-x1332/CH3/EX3.3/3_3.sce9
-rwxr-xr-x1332/CH3/EX3.4/3_4.pdfbin0 -> 6027 bytes
-rwxr-xr-x1332/CH3/EX3.4/3_4.sce9
-rwxr-xr-x1332/CH3/EX3.5/3_5.pdfbin0 -> 6370 bytes
-rwxr-xr-x1332/CH3/EX3.5/3_5.sce22
10 files changed, 57 insertions, 0 deletions
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
--- /dev/null
+++ b/1332/CH3/EX3.1/3_1.pdf
Binary files 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
--- /dev/null
+++ b/1332/CH3/EX3.2/3_2.pdf
Binary files 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
--- /dev/null
+++ b/1332/CH3/EX3.3/3_3.pdf
Binary files 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
--- /dev/null
+++ b/1332/CH3/EX3.4/3_4.pdf
Binary files 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
--- /dev/null
+++ b/1332/CH3/EX3.5/3_5.pdf
Binary files 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