|
From: Richard F. <fa...@cs...> - 2021-02-26 20:52:32
|
if you type conjugate(acos(0)), acos(0) is immediately simplified to %pi/2. Conjugate(%pi/2) is %pi/2. The only time the lisp function conjugate-acos is called is if the already-simplified argument still has the form acos(..) So no problem. interestingly, acos(3) and acos(3.0) are dramatically different. as are acos(%i) and acos(1.0*%i) RJF On 2/26/2021 12:12 PM, David Scherfgen wrote: > What if the argument to acos is 0, -1 or 1? Would that prevent acos(1) > from being simplified to zero, etc.? > > Richard Fateman <fa...@gm... <mailto:fa...@gm...>> schrieb > am Fr., 26. Feb. 2021, 20:41: > > I looked at the conjugate.lisp file. > > In the last line of the conjugate-acos function, as well as the > -asin, > etc ones, > just replace (%acos) with (%acos simp) etc for the others. > Should work fine, since the argument acos(x) etc was already > simplified > before simplifying conjugate() > > RJF > > > > > _______________________________________________ > Maxima-discuss mailing list > Max...@li... > <mailto:Max...@li...> > https://lists.sourceforge.net/lists/listinfo/maxima-discuss > <https://lists.sourceforge.net/lists/listinfo/maxima-discuss> > |