diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2014-01-15 07:53:49 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2014-01-15 07:53:49 -0800 |
commit | 9ddfef0aa6718731db7823c20c5ff21be4311197 (patch) | |
tree | daab6391b211d18ec52cad30cd70c3605f38ec20 /txr.1 | |
parent | 4a2d84b3dcfed6226b95c4cc32dd3d58bc848868 (diff) | |
download | txr-9ddfef0aa6718731db7823c20c5ff21be4311197.tar.gz txr-9ddfef0aa6718731db7823c20c5ff21be4311197.tar.bz2 txr-9ddfef0aa6718731db7823c20c5ff21be4311197.zip |
* arith.c (atang2): New function.
* eval.c (eval_init): Register as atang2 as a atan2 intrinsic.
* lib.h (atang2): Declared.
* txr.1: Documented atan2.
Diffstat (limited to 'txr.1')
-rw-r--r-- | txr.1 | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -8895,7 +8895,7 @@ If <number> an integer, it is simply returned. If the argument is a float, then the value returned is a float. For instance (floor 1.1) returns 1.0 rather than 1. -.SS Functions sin, cos, tan, asin, acos, atan +.SS Functions sin, cos, tan, asin, acos, atan, atan2 .TP Syntax: @@ -8904,6 +8904,7 @@ Syntax: (cos <radians>) (tan <radians>) (atan <slope>) + (atan2 <y> <x>) (asin <num>) (acos <num>) @@ -8915,7 +8916,8 @@ return a float result. The sin, cos and tan functions compute the sine and cosine and tangent of the <radians> argument which represents an angle expressed in radians. The atan, acos and asin are their respective inverse functions. The <num> argument to asin and acos must be in the -range -1.0 to 1.0. +range -1.0 to 1.0. The atan2 function converts the rectilinear coordinates +<x> and <y> to an angle in polar coordinates in the range [0, 2pi). .SS Functions log, exp |