From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 692/CH2/EX2.5/P2_5.sce | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 692/CH2/EX2.5/P2_5.sce (limited to '692/CH2/EX2.5') diff --git a/692/CH2/EX2.5/P2_5.sce b/692/CH2/EX2.5/P2_5.sce new file mode 100755 index 000000000..a1a3b05cc --- /dev/null +++ b/692/CH2/EX2.5/P2_5.sce @@ -0,0 +1,16 @@ +//EXAMPLE 2.5,Conjugate-Antisymmetric & Conjugate-symmetric parts of Sequence +clc; +clear; +g=[0, 1+%i*4, -2+%i*3, 4-%i*2, -5-%i*6, -%i*2, 3]; +disp(g,'g = ') +g1=conj(g); //Conjugate of g; +disp(g1,conj(g)); +a=length(g); +for i=1:a + g2(1,i)=g1(a-i+1); +end + +gcs=(g+g2)/2 //Conjugate-Symmetric part +disp(gcs,'The Conjugate symmetric part is ='); +gcas=(g-g2)/2; //Conjugate-Antisymmetric part +disp(gcas,'The Conjugate antisymmetric part is ='); \ No newline at end of file -- cgit