summaryrefslogtreecommitdiff
path: root/215/CH7/EX7.7/ex7_7.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /215/CH7/EX7.7/ex7_7.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 '215/CH7/EX7.7/ex7_7.sce')
-rwxr-xr-x215/CH7/EX7.7/ex7_7.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/215/CH7/EX7.7/ex7_7.sce b/215/CH7/EX7.7/ex7_7.sce
new file mode 100755
index 000000000..68fa3326f
--- /dev/null
+++ b/215/CH7/EX7.7/ex7_7.sce
@@ -0,0 +1,18 @@
+clc
+//Example 7.7
+printf("Given")
+disp('i=12*sin(%pi*t/6),R=0.1 ohm,L=3H')
+t=0:.1:6
+i=12*sin(%pi*t/6),R=0.1;L=3;
+//Let wL be the energy stored in the inductor
+wL=0.5*L*i^2
+plot(t,wL)
+//From the above graph
+wLmax=216;tmax=3;
+printf("Maximum value at %d J at %d sec",wLmax,tmax)
+//Let pR be the power dissipated in the resistor
+pR=i^2*R
+//Energy converted to heat in 6 sec interval in the resistor is
+syms s
+wR=integ(14.4*(sin(%pi/6*s))^2,s,0,6)
+disp(wR,'wR')