Solve trigonometric equation
How do I solve simple trigonometric equation 2*cot(2x)=0?
I tried solve, but it gives me one solution, I need solution with n.
Thank you.
How do I solve simple trigonometric equation 2*cot(2x)=0?
I tried solve, but it gives me one solution, I need solution with n.
Thank you.
With
solve(2*cot(x)==0, x, to_poly_solve = 'force')
you will get all solutions, where πzxx should be interpreted as a multiple integer of π.
It doesn't work for 2*cot(2x)
. More precisely, solve(2*cot(2*x)==0, x, to_poly_solve='force')
returns empty list.
Pay attention to argument of cotangent: it is 2x: see here See equation solver for correct answer.
Ok! Sorry, I don't know why does it return the empy list. Of course, a change of variables var('x, y')
and solve([2*cot(y)==0, y==2*x], x, y, to_poly_solve = 'force')
will do the job, but it's awkward..
I agree...
Asked: 8 years ago
Seen: 1,242 times
Last updated: Aug 28 '16