Proposed bug fix for Bug 505443



>>>>> "Jay" == Jay Belanger <belanger@truman.edu> writes:

    Jay> Raymond Toy <toy@rtp.ericsson.se> writes:

    >> One possible solution is for maxima to return
    >> 
    >>                            SQRT(1 - COS(x)) SIGNUM(x)
    >> (D3) 			  --------------------------
    >>                                     SQRT(2)
    >> 
    >> which is correct.

    Jay> Sometimes, but if, say, x=-3 pi, then it isn't.

Of course, how stupid of me.  I guess it should really be something
like signum(remainder(x, 2*%pi)), but I can't find a remainder
function that would be appropriate, or even a function to produce the
integer part.

But at least the corresponding fix for sinh would work since sinh
isn't periodic. :-)

Oh well.

Ray