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 --- 3014/CH2/EX2.26/Ex2_26.sce | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 3014/CH2/EX2.26/Ex2_26.sce (limited to '3014/CH2/EX2.26/Ex2_26.sce') diff --git a/3014/CH2/EX2.26/Ex2_26.sce b/3014/CH2/EX2.26/Ex2_26.sce new file mode 100755 index 000000000..9fff3fadf --- /dev/null +++ b/3014/CH2/EX2.26/Ex2_26.sce @@ -0,0 +1,11 @@ +clc +// given that +L = 1// let unit length +l1 = 0.45*L // initial point +l2 = 0.55*L // Final point + + +printf("Example 2.26 \n") +p = (1/L)*((l2-(L/(2*%pi) *sin(2*l2*%pi/L)))- (l1-(L/(2*%pi) *sin(2*l1*%pi/L)))) // Calculation of probability of finding particle +p_per = p*100 // probability of finding particle in percentage +printf("\n Probability of finding electron between \n %fL and %fL is %f percent.",l2,l1,p_per) -- cgit