diff options
Diffstat (limited to '446')
-rwxr-xr-x | 446/CH2/EX2.10/2_10.sce | 11 | ||||
-rwxr-xr-x | 446/CH5/EX5.3/5_3.sce | 11 |
2 files changed, 12 insertions, 10 deletions
diff --git a/446/CH2/EX2.10/2_10.sce b/446/CH2/EX2.10/2_10.sce index dac20e3c4..7fc599f04 100755 --- a/446/CH2/EX2.10/2_10.sce +++ b/446/CH2/EX2.10/2_10.sce @@ -1,6 +1,7 @@ -clear
-clc
-disp('Exa-2.10');
-u=0.8*c;L=65;c=3*10^8; //all values are in terms of c
-t=u*L/(c^2*(sqrt(1-((u/c)^2)))); //from the equation 2.31
+clear +clc +disp('Exa-2.10'); +c=3*10^8; +u=0.8*c;L=65; //all values are in terms of c +t=u*L/(c^2*(sqrt(1-((u/c)^2)))); //from the equation 2.31 printf('The time interval between the events is %e sec which equals %.2f usec.',t,t*10^6);
\ No newline at end of file diff --git a/446/CH5/EX5.3/5_3.sce b/446/CH5/EX5.3/5_3.sce index 890ff505c..fa9853401 100755 --- a/446/CH5/EX5.3/5_3.sce +++ b/446/CH5/EX5.3/5_3.sce @@ -1,6 +1,7 @@ -clear
-clc
-disp('Ex-5.3');
-x1=0;x2=L;
-xavg=(2/L)*integrate('sin(%pi*x/L)^2','x',x1,x2);
+clear +clc +disp('Ex-5.3'); + L = 1 *10^-10; +x1=0;x2=L; +xavg=(2/L)*integrate('sin(%pi*x/L)^2','x',x1,x2); printf('The average value of x is found out to be L/2 which apparently is independent of Qunatum state.');
\ No newline at end of file |