diff options
Diffstat (limited to '3782/CH8/EX8.4')
-rw-r--r-- | 3782/CH8/EX8.4/Ex8_4.sce | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/3782/CH8/EX8.4/Ex8_4.sce b/3782/CH8/EX8.4/Ex8_4.sce new file mode 100644 index 000000000..d812e9392 --- /dev/null +++ b/3782/CH8/EX8.4/Ex8_4.sce @@ -0,0 +1,23 @@ + + + +// + +//areas + +a1=2050,a2=8400,a3=16300,a4=24600,a5=31500, + + +h=5 + +printf("\n according to trapezoidal rule') + +v1=(h/2)*(a1+a5+2*(a2+a3+a4)) + +printf("\n volume = %0.3f meter cube",v1) + +printf("\n according to prismoidal rule') + +v2=(h/3)*(a1+a5+4*(a2+a4)+2*(a3)) + +printf("\n volume = %0.3f meter cube",v2) |