On Fri, May 08, 2009 at 09:37:59PM +0200, Andrej Vodopivec wrote:
> to_poly_solve returns some solutions:
>
> %i4: load(to_poly_solver)$
> %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()))
Thanks, but my mail was devoted to question why 'solve' doesn't solve
such equations - it is a simple task and I think should be included in
program. And are there any algorithms or methods of equation solving
that were not consciously included in maxima? (I mean free algorithms,
but that could harm somehow functionality of maxima)
Semyon.
>
> 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
> >