summaryrefslogtreecommitdiff
path: root/2915/CH5/EX5.11
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2915/CH5/EX5.11
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 '2915/CH5/EX5.11')
-rwxr-xr-x2915/CH5/EX5.11/5_11.JPGbin0 -> 24252 bytes
-rwxr-xr-x2915/CH5/EX5.11/Ex5_11.sce23
-rwxr-xr-x2915/CH5/EX5.11/plot5_11.jpegbin0 -> 181096 bytes
3 files changed, 23 insertions, 0 deletions
diff --git a/2915/CH5/EX5.11/5_11.JPG b/2915/CH5/EX5.11/5_11.JPG
new file mode 100755
index 000000000..bd88bc355
--- /dev/null
+++ b/2915/CH5/EX5.11/5_11.JPG
Binary files differ
diff --git a/2915/CH5/EX5.11/Ex5_11.sce b/2915/CH5/EX5.11/Ex5_11.sce
new file mode 100755
index 000000000..e492dc1c3
--- /dev/null
+++ b/2915/CH5/EX5.11/Ex5_11.sce
@@ -0,0 +1,23 @@
+//Example 5.11
+//To find the amplitude phase shift and period of given function
+clear,clc;
+
+x = linspace(-0,2*%pi,200);
+deviation = %pi; //deviation from multiples of x
+y = 3*cos(2*x- deviation) ;//given function
+amplitude = y/ cos(2*x- %pi) ;
+printf('Amplitude = %f\n',amplitude);
+multiple = 2; //multiplicity of angle
+period_cosx = 2*%pi; //period of sin(x) in radians
+required_period = period_cosx / multiple;
+printf('Required period = %f radians\n',required_period);
+phase_shift = deviation / multiple;
+printf('Phase shift = %f radians',phase_shift);
+
+x = linspace(-0,2*%pi,200);
+y = 3*cos(2*x- %pi) ;
+set(gca(),"grid",[5 5]);
+plot(x,y);
+xlabel("$0\le x\le 2*pi$","fontsize",4,"color","red");
+ylabel("$y(x)=3*cos(2*x- pi)$","fontsize",4,"color","red");
+title("Example 5.11","color","blue","fontsize",9);
diff --git a/2915/CH5/EX5.11/plot5_11.jpeg b/2915/CH5/EX5.11/plot5_11.jpeg
new file mode 100755
index 000000000..2286dfc1a
--- /dev/null
+++ b/2915/CH5/EX5.11/plot5_11.jpeg
Binary files differ