atan2(0,x), when sign(x) is nz should simplify to %pi. The code was
checking for sign(x) being neg, not nz. Modify the code to look for
both, just like how we simplify atan2(0,x) when sign(x) is pos, or pz.
Add test for this. We also fix a typo where the start of comment was
inadvertently left off.
Fix typo in atan2 simplifier where we were taking the realpart of x
instead of the realpart of y to handle the case of atan2(y,minf). Add
a comment that we're making atan2 continuous with the second quadrant
along the branch cut.
Add a test for this case and update the documentation to say that
we're continuous with second quadrant on the branch cut.
6d5d191...
by
Barton Willis <email address hidden>
Change infsimp* (defined in compar.lisp) to check for a mapatom, not an atom. This change prevents an infinite loop that can happen when expressions such as a[inf] are passed to infsimp*. The function extra-simp (defined in limit.lisp) had a workaround for this bug--this change also eliminates the workaround in extra-simp.
Tested with SBCL 2.2.2 (Windows) and Clozure Common Lisp Version 1.12.2 (v1.12.2) WindowsX8664 for both the testsuite and the share testsuite.
92323ea...
by
Barton Willis <email address hidden>
Merge branch 'master' of ssh://git.code.sf.net/p/maxima/code
Bug #4094 Build warning in share: grep: warning: stray \ before #
With this commit,
- # is escaped, not interpreted as comment by gnu make 4.2.1 or recent gnu make
- shell turns \# into #
- grep sees unescaped #, does not complain