summaryrefslogtreecommitdiff
path: root/692/CH2/EX2.5
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /692/CH2/EX2.5
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '692/CH2/EX2.5')
-rwxr-xr-x692/CH2/EX2.5/P2_5.sce16
1 files changed, 16 insertions, 0 deletions
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