Generally, it's also taken to give results in the correct quadrant. Compare 1%1 and _1%_1.

On Mon, 20 Mar 2023, Clifford Reiter wrote:

Does atn2 differ from _3&o.  ?

_3 o. _

1.5708

_3 o. __

_1.5708

_3 o. 0

0




On Mon, Mar 20, 2023 at 8:16 PM John Baker <bakerj...@gmail.com> wrote:

While computing star rise, transit and set times I encountered a need for
an atn2 verb. This is basically a tweaked arctan verb that handles ratios
like (arctan a%b) when a and b might be 0. Atn2 is in FORTRAN libraries. I
ended up rolling my own j verb but surely something so standard must be
floating around. If anyone has any atn 2’s please post. I like to compare
implementations for stuff like this.

Jdb

analyzethedatanotthedrivel.org
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to