Deleted Added
full compact
atan2.3 (84881) atan2.3 (131504)
1.\" Copyright (c) 1991 The Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 16 unchanged lines hidden (view full) ---

25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" from: @(#)atan2.3 5.1 (Berkeley) 5/2/91
1.\" Copyright (c) 1991 The Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 16 unchanged lines hidden (view full) ---

25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" from: @(#)atan2.3 5.1 (Berkeley) 5/2/91
33.\" $FreeBSD: head/lib/msun/man/atan2.3 84881 2001-10-13 12:23:23Z bde $
33.\" $FreeBSD: head/lib/msun/man/atan2.3 131504 2004-07-02 23:52:20Z ru $
34.\"
35.Dd May 2, 1991
36.Dt ATAN2 3
37.Os
38.Sh NAME
39.Nm atan2 ,
40.Nm atan2f
41.Nd arc tangent functions of two variables

--- 98 unchanged lines hidden (view full) ---

140.if t\
141r\(**sin\(*h.
142These equations are satisfied when (x=0,y=0)
143is mapped to
144.if n \
145(r=0,theta=0)
146.if t \
147(r=0,\(*h=0)
34.\"
35.Dd May 2, 1991
36.Dt ATAN2 3
37.Os
38.Sh NAME
39.Nm atan2 ,
40.Nm atan2f
41.Nd arc tangent functions of two variables

--- 98 unchanged lines hidden (view full) ---

140.if t\
141r\(**sin\(*h.
142These equations are satisfied when (x=0,y=0)
143is mapped to
144.if n \
145(r=0,theta=0)
146.if t \
147(r=0,\(*h=0)
148on a VAX. In general, conversions to polar coordinates
148on a VAX.
149In general, conversions to polar coordinates
149should be computed thus:
150.Bd -unfilled -offset indent
151.if n \{\
152r := hypot(x,y); ... := sqrt(x\(**x+y\(**y)
153theta := atan2(y,x).
154.\}
155.if t \{\
156r := hypot(x,y); ... := \(sr(x\u\s82\s10\d+y\u\s82\s10\d)

--- 42 unchanged lines hidden ---
150should be computed thus:
151.Bd -unfilled -offset indent
152.if n \{\
153r := hypot(x,y); ... := sqrt(x\(**x+y\(**y)
154theta := atan2(y,x).
155.\}
156.if t \{\
157r := hypot(x,y); ... := \(sr(x\u\s82\s10\d+y\u\s82\s10\d)

--- 42 unchanged lines hidden ---