diff options
author | prashantsinalkar | 2018-02-03 10:59:42 +0530 |
---|---|---|
committer | prashantsinalkar | 2018-02-03 10:59:42 +0530 |
commit | d1e070fe2d77c8e7f6ba4b0c57b1b42e26349059 (patch) | |
tree | 612077a22c8142c0ae754ec11882a4e7d5dc25a4 /3875/CH9/EX9.2 | |
parent | f35ea80659b6a49d1bb2ce1d7d002583f3f40947 (diff) | |
download | Scilab-TBC-Uploads-d1e070fe2d77c8e7f6ba4b0c57b1b42e26349059.tar.gz Scilab-TBC-Uploads-d1e070fe2d77c8e7f6ba4b0c57b1b42e26349059.tar.bz2 Scilab-TBC-Uploads-d1e070fe2d77c8e7f6ba4b0c57b1b42e26349059.zip |
Modified the code
Diffstat (limited to '3875/CH9/EX9.2')
-rw-r--r-- | 3875/CH9/EX9.2/Ex9_2.sce | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/3875/CH9/EX9.2/Ex9_2.sce b/3875/CH9/EX9.2/Ex9_2.sce index 68d3e7d4d..1a9d85d31 100644 --- a/3875/CH9/EX9.2/Ex9_2.sce +++ b/3875/CH9/EX9.2/Ex9_2.sce @@ -5,10 +5,11 @@ L1=2 //distance in km L2=6 //distance in km
//calculation
-//Case(a):when distance is 2km
-It_by_I0=10^-((alpha*L1)/10)
-mprintf("\nThe fraction of intial intensity that will remain after 2km is = %1.3f\n",It_by_I0)
+//Case(a):when distance L = 2km
+It_by_I0_1=10^-((alpha*L1)/10)
-//Case(b):when distance is 6km
-It_by_I0=10^-((alpha*L2)/10)
-mprintf("\nThe fraction of intial intensity that will remain after 2km is = %1.3f",It_by_I0) //The answer varies due to round off error.
+//Case(b):when distance L = 6km
+It_by_I0_2=10^-((alpha*L2)/10)
+
+mprintf("\nThe fraction of intial intensity that will remain after 2km is = %1.3f\n",It_by_I0_1) //The answer varies due to round off error.
+mprintf("\nThe fraction of intial intensity that will remain after 6km is = %1.3f",It_by_I0_2) //The answer varies due to round off error.
|