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.7 | |
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.7')
-rwxr-xr-x | 243/CH4/EX4.7/4_07.sce | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/243/CH4/EX4.7/4_07.sce b/243/CH4/EX4.7/4_07.sce new file mode 100755 index 000000000..dcda386a7 --- /dev/null +++ b/243/CH4/EX4.7/4_07.sce @@ -0,0 +1,15 @@ +//Example No. 4_07
+//Absolute and Relative Errors
+//Pg No. 71
+clear ; close ; clc ;
+
+h_bu_t = 2945 ;
+h_bu_a = 2950 ;
+h_be_t = 30 ;
+h_be_a = 35 ;
+e1 = abs(h_bu_t - h_bu_a)
+e1_r = e1/h_bu_t
+e2 = abs(h_be_t - h_be_a)
+e2_r = e2/h_be_t
+mprintf('\n For Building : \n Absolute error, e1 = %i \n Relative error , e1_r = %.2f percent \n ',e1,e1_r*100)
+mprintf('\n For Beam : \n Absolute error, e2 = %i \n Relative error , e2_r = %.2G percent \n ',e2,e2_r*100)
\ No newline at end of file |