Please solve this with matlab code Find the first ten positi

Please solve this with matlab code.

Find the first ten positive values of x for which x = tan x.

Solution

x = 0;

c = 0;

while(c<0)

    if(x==tan(x))

        disp(x);

        c = c+1;

    end

    x = x+0.01;

end

; the sample output is zero.

; i\'m not sure where x will be equal to tanx

; this loop is running infitely.

Please solve this with matlab code. Find the first ten positive values of x for which x = tan x.Solutionx = 0; c = 0; while(c<0) if(x==tan(x)) disp(x); c = c

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site