summaryrefslogtreecommitdiff
path: root/3812/CH1/EX1.19.a/1_19_a.sce
diff options
context:
space:
mode:
Diffstat (limited to '3812/CH1/EX1.19.a/1_19_a.sce')
-rw-r--r--3812/CH1/EX1.19.a/1_19_a.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/3812/CH1/EX1.19.a/1_19_a.sce b/3812/CH1/EX1.19.a/1_19_a.sce
new file mode 100644
index 000000000..967a0c326
--- /dev/null
+++ b/3812/CH1/EX1.19.a/1_19_a.sce
@@ -0,0 +1,11 @@
+// example 1.19<a>
+//determine whether the following signals are power or energy signal
+clc ;
+t =0:0.01:100;
+A=1;
+x=A*sin(t);
+P=(integrate('(A*sin(t))^2','t',-%pi,%pi))/(2*%pi);
+disp(P,'The power of the signal is:');
+E=(integrate('(A*sin(t))^2','t',-%pi,%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');