summaryrefslogtreecommitdiff
path: root/446/CH2/EX2.10/2_10.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:38:01 +0530
committerprashantsinalkar2017-10-10 12:38:01 +0530
commitf35ea80659b6a49d1bb2ce1d7d002583f3f40947 (patch)
treeeb72842d800ac1233e9d890e020eac5fd41b0b1b /446/CH2/EX2.10/2_10.sce
parent7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (diff)
downloadScilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.gz
Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.bz2
Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.zip
updated the code
Diffstat (limited to '446/CH2/EX2.10/2_10.sce')
-rwxr-xr-x446/CH2/EX2.10/2_10.sce11
1 files changed, 6 insertions, 5 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