Mathematical Computations – MATLAB for Beginners – MATLAB Basics – Tutorials – Volume-2

Unit-5

Trigonometric Functions

Sine of argument in radians

>> sin(30)   % sine of argument in radians
ans =
   -0.9880


>> sin(pi/6)
ans =
    0.5000

Sine of argument in degrees

>> sind(30)    % sine of argument in degrees
ans =
    0.5000

Inverse Sine

>> %Inverse Sine (to get answer in radians)
>> asin(0.5) 
ans =
    0.5236     %Answer in Radians


>> % To convert the previous answer from radians to degrees
>> rad2deg(ans)   
ans =
   30.0000


>> %Inverse Sine (to get answer in degrees)
>> asind(0.5)  
ans =
   30.0000

Sine Hyperbolic and Inverse Hyperbolic Functions

>> % Sine Hyperbolic Function (argument in radians)
>> sinh(pi/6)
ans =
    0.5479


>> % Sine Inverse Hyperbolic Function (argument in radians)
>> asinh(ans)
ans =
    0.5236

Cosine and Tangent Functions

>> cos(pi/6)
ans =
    0.8660


>> tan(pi/6)
ans =
    0.5774

List of Trigonometric Functions

Be the first to comment

Leave a Reply

Your email address will not be published.




19 − nineteen =