# [Maxima] triginometry

Andrej Vodopivec andrej.vodopivec at gmail.com
Fri May 8 14:37:59 CDT 2009

```to_poly_solve returns some solutions:

%i5: to_poly_solve(A*sin(x)+B*cos(x)=C,x);
%o5: %union(%if((B-%i*A=0)  %or
(sqrt(C^2-B^2-A^2)-C#0),[x=2*%pi*%z15-%i*log(C/(B-%i*A)-sqrt(C^2-B^2-A^2)/(B-%i*A))],%union()),%if((B-%i*A=0)
%or  (sqrt(C^2-B^2-A^2)+C#0),[x=2*%pi*%z17-%i*log(sqrt(C^2-B^2-A^2)/(B-%i*A)+C/(B-%i*A))],%union()))

Andrej

On Fri, May 8, 2009 at 8:05 PM, Semyon Glazyrin <siglazyrin at gmail.com> wrote:
> Hello!
>
> Why maxima doesn't solve the following equation?
>
> (%i1) solve(A*sin(x)+B*cos(x)=C,x);
>                                       cos(x) B - C
> (%o1)                      [sin(x) = - ------------]
>                                            A
>
> And how can I run maxima in debug mode so that I could see how lisp
> functions are called? And watch by steps how maxima tries to solve
> this equation for example?
>
> Semyon.
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>

```