summaryrefslogtreecommitdiff
path: root/608/CH6/EX6.01
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /608/CH6/EX6.01
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 '608/CH6/EX6.01')
-rwxr-xr-x608/CH6/EX6.01/6_01.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/608/CH6/EX6.01/6_01.sce b/608/CH6/EX6.01/6_01.sce
new file mode 100755
index 000000000..9871a8995
--- /dev/null
+++ b/608/CH6/EX6.01/6_01.sce
@@ -0,0 +1,15 @@
+//Problem 6.01:(a) Determine the p.d. across a 4 μF capacitor when charged with 5 mC. (b) Find the charge on a 50 pF capacitor when the voltage applied to it is 2 kV.
+
+//initializing the variables:
+C1 = 4E-6; // in Farad
+C2 = 50E-12; // in Farad
+Q1 = 5E-3; // in Coulomb
+V2 = 2000; // in volts
+
+//calculation:
+V1 = Q1/C1
+Q2 = C2*V2
+
+printf("\n\nResult\n\n")
+printf("\n (a)P.d %.0f Volts(V)",V1)
+printf("\n (b)Charge(Q) %.2E Coulomb(C)",Q2) \ No newline at end of file