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 /3369/CH4/EX4.3/Ex4_3.sce | |
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 '3369/CH4/EX4.3/Ex4_3.sce')
-rwxr-xr-x | 3369/CH4/EX4.3/Ex4_3.sce | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/3369/CH4/EX4.3/Ex4_3.sce b/3369/CH4/EX4.3/Ex4_3.sce new file mode 100755 index 000000000..5858a2127 --- /dev/null +++ b/3369/CH4/EX4.3/Ex4_3.sce @@ -0,0 +1,13 @@ +//Chapter 4, Exmaple 3, page 140 +//Claculate size of developed avalanche +clc +clear +a = 4*10**4 +b = 15*10**5 +//Rewriting equation 4.2 +x0=0;x1=0.0005; +X=integrate('a-b*sqrt(x)','x',x0,x1); +As = exp(X) // Avelanche size +printf("\n Avalanche size = %f m",As) + +//Answers may vary due to round of error |