why solve function does not return answer?

1 view (last 30 days)
syms b
eq1 = 1/tan(b);
sol=solve(eq1)
sol = Empty sym: 0-by-1
the equation above should give answer pi/2 or pi/2+n*pi
but solve doesnt give the answer...
What is the problem with my code?

Answers (0)

Products


Release

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!