Solving trignometric terms with maxima

2019-07-04 01:51发布

问题:

I try to get all roots of cos(x) with wxMaxima

(%i29)solve(cos(x)=0,x);
solve: using arc-trig functions to get a solution.
Some solutions will be lost.
(%o29) [x=%pi/2]

The solution gets solved by using arccos.

How can i get all solutions for a given domain? e.g. [0; 5*pi]

回答1:

Using to_poly_solve you can obtain all solutions:

to_poly_solve(cos(x)=0,x);