summaryrefslogtreecommitdiff
path: root/2294/CH1/EX1.16
diff options
context:
space:
mode:
Diffstat (limited to '2294/CH1/EX1.16')
-rwxr-xr-x2294/CH1/EX1.16/EX1_16.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/2294/CH1/EX1.16/EX1_16.sce b/2294/CH1/EX1.16/EX1_16.sce
new file mode 100755
index 000000000..84f57ec22
--- /dev/null
+++ b/2294/CH1/EX1.16/EX1_16.sce
@@ -0,0 +1,11 @@
+//Example 1.16
+//Determine the power of the signal
+clc;
+A=2;
+theta=0;
+t=0:0.001:10;
+y=A*cos(2*%pi*t+theta);
+P=(integrate('A^2*(cos(2*%pi*t))^2','t',0,2*%pi))/(2*%pi);
+disp(P,'power of the signal is:');
+y=round(P);
+disp(y,'The given signal is power signal as power is finite');