On 2/28/10 4:04 PM, Barton Willis wrote:
> -----maxima-bounces at math.utexas.edu wrote: -----
>
>
>> is it possible to check, whether a warning
>> "using arc-trig functions to get a solution. Some solutions will be lost"
>> has been printed in the last 'solve' call?
>>
> Without changing the Maxima function mtell, I don't know of a way to
> do this. The Maxima function mtell prints the message but does not
> save it (unlike an error message that is saved). Maybe you could
> insert a few lines into mtell to do what you would like it to do. If
> you aren't a CL progammer, hacking mtell is a good excuse to learn :)
>
Why not just replace the call to mtell with something like (setf
$solvetrigwarn t), being sure the set $solvetrigwarn to nil at the
beginning of solve.
But it would be much better, of course, to teach solve to return all the
roots. How does sage do the trick solve([sin(2*x-%pi/6)=y,
y=1/2],[x,y])? When I do this in maxima, I get no solutions. (That
seems like a bug too.)
Ray