From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 3369/CH4/EX4.3/Ex4_3.sce | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 3369/CH4/EX4.3/Ex4_3.sce (limited to '3369/CH4/EX4.3/Ex4_3.sce') 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 -- cgit