diff options
Diffstat (limited to '3812/CH1/EX1.18.c/1_18_c.sce')
-rw-r--r-- | 3812/CH1/EX1.18.c/1_18_c.sce | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/3812/CH1/EX1.18.c/1_18_c.sce b/3812/CH1/EX1.18.c/1_18_c.sce new file mode 100644 index 000000000..f56349128 --- /dev/null +++ b/3812/CH1/EX1.18.c/1_18_c.sce @@ -0,0 +1,11 @@ +// example 1.18<c>
+//determine the values of power and energy
+clc ;
+t =0:0.01:100;
+A=1;
+x=A*cos (t);
+P=(integrate('(A*cos(t))^2','t',0,2*%pi ))/(2*%pi);
+disp(P,'The power of the signal is:');
+E=(integrate('(A*cos(t))^2','t',0,2*%pi));
+disp(E,'The energy is:');
+disp('As t tends to infinity energy also tends to infinity but power remains finite hence it is power signal');
|