Nazif Jaafar
Nazif Jaafar

Reputation: 21

Solving inverse tan for unknown variable

i try to solve to get variable from the inverse of tan. But I got an error in Matlab.

Here my code:

syms x
solve(3*atan(-5*x) == -180, x)

The error I get is

 Warning: Explicit solution could not be found. > In solve at 179

My expected value of x is 0.3464. .

Upvotes: 0

Views: 726

Answers (1)

Mad Physicist
Mad Physicist

Reputation: 114310

Partially solving your equation gives atan(-5*x) == -60. This clearly has no solution since the range of atan is only defined from -pi to pi. It appears that you plugged degrees instead of radians in. The correct equation is 3*atan(-5*x) == -pi.

Upvotes: 3

Related Questions