summaryrefslogtreecommitdiff
path: root/24/CH33/EX33.2
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /24/CH33/EX33.2
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 '24/CH33/EX33.2')
-rwxr-xr-x24/CH33/EX33.2/Example33_2.sce19
-rwxr-xr-x24/CH33/EX33.2/Example33_2_result.txt5
2 files changed, 24 insertions, 0 deletions
diff --git a/24/CH33/EX33.2/Example33_2.sce b/24/CH33/EX33.2/Example33_2.sce
new file mode 100755
index 000000000..188fe736e
--- /dev/null
+++ b/24/CH33/EX33.2/Example33_2.sce
@@ -0,0 +1,19 @@
+//Given that
+C = 1.5*10^-6 //in F
+V = 57 //in volts
+L = 12*10^-3 //in H
+
+//Sample Problem 33-2a
+printf("**Sample Problem 33-2a**\n")
+//V(accross Inductor) = V(accross Capacitor)
+//-L*(dI/dt) = V
+//I = C*(dV/dt)
+//L*C*(d^2V/dt^2) = -V
+//at t=0, Potential difference = V
+w = 1/sqrt(L*C)
+printf("The potential defference accross the inductor is V=%d*cos(%d*t)\n", V, w)
+
+//Sample Problem 33-2b
+printf("\n**Sample Problem 33-2b**\n")
+MaxRate = abs(-V/L)
+printf("The maximum rate of change in current is %1.2famp/s", MaxRate) \ No newline at end of file
diff --git a/24/CH33/EX33.2/Example33_2_result.txt b/24/CH33/EX33.2/Example33_2_result.txt
new file mode 100755
index 000000000..c2b6d560b
--- /dev/null
+++ b/24/CH33/EX33.2/Example33_2_result.txt
@@ -0,0 +1,5 @@
+**Sample Problem 33-2a**
+The potential defference accross the inductor is V=57*cos(7453*t)
+
+**Sample Problem 33-2b**
+The maximum rate of change in current is 4750.00amp/s \ No newline at end of file