summaryrefslogtreecommitdiff
path: root/1332/CH3/EX3.2/3_2.sce
blob: 190e4c51a5c7271fdc55e76544db83c5ea8a5f79 (plain)
1
2
3
4
5
6
7
8
9
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);