sqrt.3 (3a8617a83f16ffc9db4f96e1f0f21af94078e6b1) sqrt.3 (7a15a32a17f4c2cbeb6f842c4c6b1cf93e4639e7)
1.\" Copyright (c) 1985, 1991 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: @(#)sqrt.3 6.4 (Berkeley) 5/6/91
1.\" Copyright (c) 1985, 1991 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: @(#)sqrt.3 6.4 (Berkeley) 5/6/91
33.\" $Id: sqrt.3,v 1.3 1993/08/14 13:43:05 mycroft Exp $
33.\" $Id: sqrt.3,v 1.1.1.1 1994/08/19 09:39:42 jkh Exp $
34.\"
35.Dd May 6, 1991
36.Dt SQRT 3
37.Os
38.Sh NAME
39.Nm cbrt ,
34.\"
35.Dd May 6, 1991
36.Dt SQRT 3
37.Os
38.Sh NAME
39.Nm cbrt ,
40.Nm sqrt
40.Nm cbrtf ,
41.Nm sqrt ,
42.Nm sqrtf
41.Nd cube root and square root functions
42.Sh SYNOPSIS
43.Fd #include <math.h>
44.Ft double
45.Fn cbrt "double x"
43.Nd cube root and square root functions
44.Sh SYNOPSIS
45.Fd #include <math.h>
46.Ft double
47.Fn cbrt "double x"
48.Ft float
49.Fn cbrtf "float x"
46.Ft double
47.Fn sqrt "double x"
50.Ft double
51.Fn sqrt "double x"
52.Ft float
53.Fn sqrtf "float x"
48.Sh DESCRIPTION
49The
50.Fn cbrt
54.Sh DESCRIPTION
55The
56.Fn cbrt
51function computes
57and the
58.Fn cbrtf
59functions compute
52the cube root of
53.Ar x .
54.Pp
55The
56.Fn sqrt
60the cube root of
61.Ar x .
62.Pp
63The
64.Fn sqrt
57computes the
65and the
66.Fn sqrtf
67functions compute the
58non-negative square root of x.
59.Sh RETURN VALUES
60The
61.Fn cbrt
68non-negative square root of x.
69.Sh RETURN VALUES
70The
71.Fn cbrt
62function returns the requested cube root.
72and the
73.Fn cbrtf
74functions return the requested cube root.
63The
64.Fn sqrt
75The
76.Fn sqrt
65function returns the requested square root
77and the
78.Fn sqrtf
79functions return the requested square root
66unless an error occurs.
67On the
68.Tn VAX
69or
70.Tn Tahoe
71processor an attempt to take the
72.Fn sqrt
73of negative

--- 48 unchanged lines hidden ---
80unless an error occurs.
81On the
82.Tn VAX
83or
84.Tn Tahoe
85processor an attempt to take the
86.Fn sqrt
87of negative

--- 48 unchanged lines hidden ---