diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2915/CH5/EX5.11 | |
download | Scilab-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-x | 2915/CH5/EX5.11/5_11.JPG | bin | 0 -> 24252 bytes | |||
-rwxr-xr-x | 2915/CH5/EX5.11/Ex5_11.sce | 23 | ||||
-rwxr-xr-x | 2915/CH5/EX5.11/plot5_11.jpeg | bin | 0 -> 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 Binary files differnew file mode 100755 index 000000000..bd88bc355 --- /dev/null +++ b/2915/CH5/EX5.11/5_11.JPG 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 Binary files differnew file mode 100755 index 000000000..2286dfc1a --- /dev/null +++ b/2915/CH5/EX5.11/plot5_11.jpeg |