We observed the following while experimenting on MATLAB pi

We observed the following while experimenting on MATLAB

pi = 3.141592653589793 sin(pi) = 1.224646799147353e-16 cos(pi) = -1

Explain why in MATLAB, sin() = 0, while cos() = 1.

Solution

sin(pi) = sin(180degrees) and when we graph sinx then it touches at 180degree on x axis

Hence x intercept of sinx=pi=180degrees

=> sin(pi) =0

ALso cos(pi) = cos(180degrees) and when we graph cosx then it takes value -1 at 180 degrees

=> cos(pi) = -1

We observed the following while experimenting on MATLAB pi = 3.141592653589793 sin(pi) = 1.224646799147353e-16 cos(pi) = -1 Explain why in MATLAB, sin() = 0, wh

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site