diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /215/CH11/EX11.7/ex11_7.sce | |
download | Scilab-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/CH11/EX11.7/ex11_7.sce')
-rwxr-xr-x | 215/CH11/EX11.7/ex11_7.sce | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/215/CH11/EX11.7/ex11_7.sce b/215/CH11/EX11.7/ex11_7.sce new file mode 100755 index 000000000..d64e258b5 --- /dev/null +++ b/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 |