summaryrefslogtreecommitdiff
path: root/608/CH6/EX6.16
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.16
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.16')
-rwxr-xr-x608/CH6/EX6.16/6_16.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/608/CH6/EX6.16/6_16.sce b/608/CH6/EX6.16/6_16.sce
new file mode 100755
index 000000000..6a83421db
--- /dev/null
+++ b/608/CH6/EX6.16/6_16.sce
@@ -0,0 +1,11 @@
+//Problem 6.16: A 12 μF capacitor is required to store 4 J of energy. Find the pd to which the capacitor must be charged.
+
+//initializing the variables:
+C = 12E-6; // in Farads
+W = 4; // in Joules
+
+//calculation:
+V = (2*W/C)^0.5
+
+printf("\n\nResult\n\n")
+printf("\n P.d %.1f V\n",V) \ No newline at end of file