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.12 | |
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.12')
-rwxr-xr-x | 2915/CH5/EX5.12/5_12.JPG | bin | 0 -> 24094 bytes | |||
-rwxr-xr-x | 2915/CH5/EX5.12/Ex5_12.sce | 22 | ||||
-rwxr-xr-x | 2915/CH5/EX5.12/plot5_12.jpeg | bin | 0 -> 218883 bytes |
3 files changed, 22 insertions, 0 deletions
diff --git a/2915/CH5/EX5.12/5_12.JPG b/2915/CH5/EX5.12/5_12.JPG Binary files differnew file mode 100755 index 000000000..39d734c77 --- /dev/null +++ b/2915/CH5/EX5.12/5_12.JPG diff --git a/2915/CH5/EX5.12/Ex5_12.sce b/2915/CH5/EX5.12/Ex5_12.sce new file mode 100755 index 000000000..d4bd2b8f6 --- /dev/null +++ b/2915/CH5/EX5.12/Ex5_12.sce @@ -0,0 +1,22 @@ +//Example 5.12
+//To find the amplitude phase shift and period of given function
+clear,clc;
+
+x = linspace(-%pi/6,4*%pi/3,200);
+deviation = -%pi/2;//deviation from multiples of x
+y = -2*sin(3*x- deviation) ;// given function
+amplitude = abs(y/(sin(3*x- deviation)) );
+printf('Amplitude = %f\n',amplitude);
+multiple = 3; //multiplicity of angle
+period_sinx = 2*%pi ;//period of sin(x) in radians
+required_period = period_sinx / multiple;
+printf('Required period = %f radians\n',required_period);
+phase_shift = deviation / multiple;
+printf('Phase shift = %f radians',phase_shift);
+
+x = linspace(-%pi/6,4*%pi/3,200);
+y =-2*sin(3*x+ %pi/2) ;
+set(gca(),"grid",[5 5]);
+plot(x,y);
+ylabel("$y =-2*sin(3*x+ %pi/2)$","fontsize",4,"color","red");
+title("Example 5.12","color","blue","fontsize",9);
diff --git a/2915/CH5/EX5.12/plot5_12.jpeg b/2915/CH5/EX5.12/plot5_12.jpeg Binary files differnew file mode 100755 index 000000000..0228906b8 --- /dev/null +++ b/2915/CH5/EX5.12/plot5_12.jpeg |