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 /854/CH6 | |
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 '854/CH6')
-rwxr-xr-x | 854/CH6/EX6.3/Example6_3.sce | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/854/CH6/EX6.3/Example6_3.sce b/854/CH6/EX6.3/Example6_3.sce index 53b638a6a..d0011e480 100755 --- a/854/CH6/EX6.3/Example6_3.sce +++ b/854/CH6/EX6.3/Example6_3.sce @@ -1,16 +1,16 @@ -//clear//
-//Caption: Program to calculate the capacitance of a parallel plate capacitor
-//Example6.3
-//page 151
-clc;
-S = 10;//area in square inch
-S = 10*(0.0254)^2; //area in square metre
-d = 0.01; //distance between the plates in inch
-d = 0.01*0.0254; //distance between the plates in metre
-e0 = 8.854e-12; //free space permittivity in F/m
-er = 6; //relative permittivity of mica
-e = e0*er;
-C = parallel_capacitor(e,S,d);
-disp(C*1e09,'Capacitance of a parallel plate capacitor in pico farads C =')
-//Result
-//Capacitance of a parallel plate capacitor in pico farads C = 1.3493496
+//clear// +//Caption: Program to calculate the capacitance of a parallel plate capacitor +//Example6.3 +//page 151 +clc; +S = 10;//area in square inch +S = 10*(0.0254)^2; //area in square metre +d = 0.01; //distance between the plates in inch +d = 0.01*0.0254; //distance between the plates in metre +e0 = 8.854e-12; //free space permittivity in F/m +er = 6; //relative permittivity of mica +e = e0*er; +C = e*S/d; +disp(C*1e09,'Capacitance of a parallel plate capacitor in pico farads C =') +//Result +//Capacitance of a parallel plate capacitor in pico farads C = 1.3493496
\ No newline at end of file |