summaryrefslogtreecommitdiff
path: root/Working_Examples/215/CH11/EX11.7/ex11_7.sce
diff options
context:
space:
mode:
Diffstat (limited to 'Working_Examples/215/CH11/EX11.7/ex11_7.sce')
-rwxr-xr-xWorking_Examples/215/CH11/EX11.7/ex11_7.sce10
1 files changed, 10 insertions, 0 deletions
diff --git a/Working_Examples/215/CH11/EX11.7/ex11_7.sce b/Working_Examples/215/CH11/EX11.7/ex11_7.sce
new file mode 100755
index 0000000..d64e258
--- /dev/null
+++ b/Working_Examples/215/CH11/EX11.7/ex11_7.sce
@@ -0,0 +1,10 @@
+clc
+//Example 11.7
+//Calculate the Average power
+printf("Given")
+disp('Resistor value is 4 ohm, i2=2*cos(10t)-3*cos(10t) A')
+disp('On solving we get i2=-cos(10t)')
+R=4;im=-1
+//Let P be the average power delievered
+P=0.5*im^2*R
+printf("Average power=%d W",P) \ No newline at end of file