diff options
author | prashantsinalkar | 2017-10-10 12:38:01 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:38:01 +0530 |
commit | f35ea80659b6a49d1bb2ce1d7d002583f3f40947 (patch) | |
tree | eb72842d800ac1233e9d890e020eac5fd41b0b1b /1388/CH7 | |
parent | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (diff) | |
download | Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.gz Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.bz2 Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.zip |
updated the code
Diffstat (limited to '1388/CH7')
-rwxr-xr-x | 1388/CH7/EX7.26/7_26.sce | 24 | ||||
-rwxr-xr-x | 1388/CH7/EX7.27/7_27.sce | 24 |
2 files changed, 24 insertions, 24 deletions
diff --git a/1388/CH7/EX7.26/7_26.sce b/1388/CH7/EX7.26/7_26.sce index 20d897cc6..79e770100 100755 --- a/1388/CH7/EX7.26/7_26.sce +++ b/1388/CH7/EX7.26/7_26.sce @@ -1,12 +1,12 @@ -clc
-//initialisation of variables
-e= 0
-e1= -0.37
-k= -0.05916 //j/mol
-a= 0.02
-a1- 0.01
-p= 730 //mm of Hg
-//CALCULATIONS
-E= (e-e1)-k*log10(a*sqrt(p/760)/(a1*a))
-//RESULTS
-printf (' cell potential = %.2f volt',E-0.03)
+clc +//initialisation of variables +e= 0 +e1= -0.37 +k= -0.05916 //j/mol +a= 0.02 +a1= 0.01 +p= 730 //mm of Hg +//CALCULATIONS +E= (e-e1)-k*log10(a*sqrt(p/760)/(a1*a)) +//RESULTS +printf (' cell potential = %.2f volt',E-0.03)
\ No newline at end of file diff --git a/1388/CH7/EX7.27/7_27.sce b/1388/CH7/EX7.27/7_27.sce index a349dff62..036915c34 100755 --- a/1388/CH7/EX7.27/7_27.sce +++ b/1388/CH7/EX7.27/7_27.sce @@ -1,12 +1,12 @@ -clc
-//initialisation of variables
-e= 0 //ev
-e1= -0.37 //ev
-k= -0.05916 //j/mol
-a= 0.02
-a1- 0.01
-p= 730 //mm of Hg
-//CALCULATIONS
-E= (e-e1)-k*log10(a*sqrt(p/760)/(a1*a))
-//RESULTS
-printf (' cell potential = %.2f volt',E-0.03)
+clc +//initialisation of variables +e= 0 //ev +e1= -0.37 //ev +k= -0.05916 //j/mol +a= 0.02 +a1= 0.01 +p= 730 //mm of Hg +//CALCULATIONS +E= (e-e1)-k*log10(a*sqrt(p/760)/(a1*a)) +//RESULTS +printf (' cell potential = %.2f volt',E-0.03)
\ No newline at end of file |