summaryrefslogtreecommitdiff
path: root/2345/CH5/EX5.1/Ex5_1.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2345/CH5/EX5.1/Ex5_1.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2345/CH5/EX5.1/Ex5_1.sce')
-rwxr-xr-x2345/CH5/EX5.1/Ex5_1.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/2345/CH5/EX5.1/Ex5_1.sce b/2345/CH5/EX5.1/Ex5_1.sce
new file mode 100755
index 000000000..4d27b152e
--- /dev/null
+++ b/2345/CH5/EX5.1/Ex5_1.sce
@@ -0,0 +1,15 @@
+//Finding charge and capacitance
+//Example 5.1(pg 193)
+clc
+clear
+t=0.25//time in sec
+I=0.22//Current in A
+V=220//voltage in V
+Q=I*t//charge given to condenser
+C=Q/V//capacitance of condenser
+C1=C*(10^6)
+printf('Charge given to condenser is %3.3f Coulombs \n',Q)
+printf('Capacitance of condenser is %3.4f F',C)
+printf('or %3.0f microF',C1)
+
+