summaryrefslogtreecommitdiff
path: root/Working_Examples/215/CH7/EX7.7/ex7_7.sce
diff options
context:
space:
mode:
Diffstat (limited to 'Working_Examples/215/CH7/EX7.7/ex7_7.sce')
-rwxr-xr-xWorking_Examples/215/CH7/EX7.7/ex7_7.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/Working_Examples/215/CH7/EX7.7/ex7_7.sce b/Working_Examples/215/CH7/EX7.7/ex7_7.sce
new file mode 100755
index 0000000..68fa332
--- /dev/null
+++ b/Working_Examples/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')