David Schultz
d132715684
Add cexp() to the complex(3) manpage. Thanks to bde for pointing out
...
that I missed this.
2011-03-07 08:54:20 +00:00
David Schultz
f3732b5aaa
Add cexp() and cexpf().
...
Reviewed by: bde (earlier version)
2011-03-07 03:09:24 +00:00
Murray Stokely
11725f2142
Add complex(3) manual page documenting our partial support for C99
...
complex arithmetic in libm.
Reviewed by: David Schultz <das@FreeBSD.org>
MFC after: 2 weeks
2011-02-20 05:29:00 +00:00
David Schultz
63687c8b08
Fix various nits in style and comments that were pointed out by bde.
...
Code changes verified with md5.
2010-12-07 02:19:15 +00:00
David Schultz
177668d11f
Add log2() and log2f().
2010-12-05 22:11:22 +00:00
Joel Dahl
c2025a7660
Fix typos, spelling, formatting and mdoc mistakes found by Nobuyuki while
...
translating these manual pages. Minor corrections by me.
Submitted by: Nobuyuki Koganemaru <n-kogane@syd.odn.ne.jp>
2010-08-16 15:18:30 +00:00
Ulrich Spörlein
df26753b39
mdoc: spell out theta, the Unicode glyph is hard to read for terminal fonts
...
It is referred to as "theta" later in the document anyway,
so stop being fancy.
2010-06-09 07:31:32 +00:00
Ulrich Spörlein
e3303e900e
mdoc: spell macros correctly, there's no need for the backslash escape
2010-06-02 10:20:38 +00:00
Ulrich Spörlein
25c8b07fc2
mdoc: Garbage collect unused/unneeded macros
2010-05-27 13:56:27 +00:00
Ulrich Spörlein
0b31f1f731
mdoc: move remaining sections into consistent order
...
This pertains mostly to FILES, HISTORY, EXIT STATUS and AUTHORS sections.
Found by: mdocml lint run
Reviewed by: ru
2010-05-13 12:08:11 +00:00
Ulrich Spörlein
0afc94c17a
mdoc: move CAVEATS, BUGS and SECURITY CONSIDERATIONS sections to the
...
bottom of the manpages and order them consistently.
GNU groff doesn't care about the ordering, and doesn't even mention
CAVEATS and SECURITY CONSIDERATIONS as common sections and where to put
them.
Found by: mdocml lint run
Reviewed by: ru
2010-05-13 12:07:55 +00:00
Ulrich Spörlein
63d46d1d5e
Fix several typos in macros or macro misusage.
...
Found by: make manlint
Reviewed by: ru
Approved by: philip (mentor)
2010-03-12 10:01:06 +00:00
David Schultz
5e9470f1d5
Implement cproj{,f,l}().
2008-08-07 15:07:48 +00:00
David Schultz
17303c626f
Add implementations of acosl(), asinl(), atanl(), atan2l(),
...
and cargl().
Reviewed by: bde
sparc64 testing resources from: remko
2008-07-31 22:41:26 +00:00
David Schultz
018b56d61f
Fix a typo in the cosl() prototype.
2008-06-28 01:43:24 +00:00
David Schultz
f2dc0faad0
Implement fmodl.
...
Document fmodl and fix some errors in the fmod manpage.
2008-06-19 22:39:53 +00:00
David Schultz
c7392feecc
Hook remquol() and remainderl() up to the build.
2008-03-30 20:48:02 +00:00
David Schultz
511dd36b32
Implement csqrtl().
2008-03-30 20:07:15 +00:00
David Schultz
01a13522ad
Document hypotl().
...
Submitted by: Steve Kargl <sgk@troutmask.apl.washington.edu>
2008-03-30 20:03:29 +00:00
David Schultz
e43c8f6acc
Hook up sqrtl() to the build.
2008-03-02 01:48:17 +00:00
David Schultz
345241c5e0
Document return values better.
2008-02-18 19:02:49 +00:00
David Schultz
71c11dd528
Add tgammaf() as a simple wrapper around tgamma().
2008-02-18 17:27:11 +00:00
David Schultz
f869a8c5f3
Documentation for sinl(), cosl(), and tanl().
2008-02-17 07:32:44 +00:00
David Schultz
5526551600
Introduce a new log(3) manpage and move the relevant functions there.
...
Document exp2l() in exp(3), and remove the quaint discussion of topics
such as what these functions were called on the HP-71B's variant of
BASIC.
2008-01-18 21:43:00 +00:00
David Schultz
d3f9671a7d
Implement rintl(), nearbyintl(), lrintl(), and llrintl().
...
Thanks to bde@ for feedback and testing of rintl().
2008-01-14 02:12:07 +00:00
David Schultz
6821aba9e5
Add logbl(3) to libm.
2007-12-17 03:53:38 +00:00
David Schultz
3be0479b4c
Document the fact that we have nan(3) now, and make some minor clarifications
...
in other places.
2007-12-17 01:04:43 +00:00
David Schultz
4b6b574455
Implement and document nan(), nanf(), and nanl(). This commit
...
adds two new directories in msun: ld80 and ld128. These are for
long double functions specific to the 80-bit long double format
used on x86-derived architectures, and the 128-bit format used on
sparc64, respectively.
2007-12-16 21:19:28 +00:00
David Schultz
aaf70b2314
Implement and document csqrt(3) and csqrtf(3).
2007-12-15 08:38:44 +00:00
David Schultz
ce448a2e74
Update the standards section, and make a minor clarification about the
...
return value of sqrt.
2007-12-14 07:53:09 +00:00
David Schultz
9768c3fea8
s/C90/C99/
2007-12-12 23:50:00 +00:00
David Schultz
367d55260f
Add a "STANDARDS" section.
2007-12-12 23:49:40 +00:00
David Schultz
205bd64894
Implement carg(3) and cargf(3).
...
Rotting in an old src tree since: March 2005
2007-12-12 23:43:51 +00:00
Warner Losh
ee7093a640
Remove California Regent's clause 3, per letter
2007-01-09 01:02:06 +00:00
David Schultz
93e0663877
Fix a cut-and-paste-o.
2007-01-06 21:23:20 +00:00
David Schultz
cc0d85b680
Remove a note pertaining to the Alpha.
2007-01-05 07:14:26 +00:00
Joel Dahl
19797b2256
s/5.5/6.0/ in HISTORY section.
...
Discussed with: ru
2005-11-24 09:25:10 +00:00
Ruslan Ermilov
110e1704d3
-mdoc sweep.
2005-11-17 13:00:00 +00:00
Bruce Evans
32948b81c4
The logb() functions are not just ieee754 "test" functions, but are
...
standard in C99 and POSIX.1-2001+. They are also not deprecated, since
apart from being standard they can handle special args slightly better
than the ilogb() functions.
Move their documentation to ilogb.3. Try to use consistent and improved
wording for both sets of functions. All of ieee854, C99 and POSIX
have better wording and more details for special args.
Add history for the logb() functions and ilogbl(). Fix history for
ilogb().
2005-11-06 12:18:27 +00:00
Bruce Evans
053d1689b1
Fixed spelling of remquof() in its prototype.
2005-10-30 12:34:58 +00:00
Ruslan Ermilov
01293bdb90
Markup nit.
...
Approved by: re (blanket)
2005-06-16 21:56:03 +00:00
Ruslan Ermilov
70db9cd000
Fixed compile warning.
...
Approved by: re (blanket)
2005-06-16 21:55:45 +00:00
Ruslan Ermilov
f789cb8293
Assorted markup fixes.
...
Approved by: re
2005-06-15 19:04:04 +00:00
David Schultz
2f2ee27de4
Implement truncl() based on floorl().
2005-04-16 21:12:47 +00:00
David Schultz
07f3bc5b9c
Add roundl(), lroundl(), and llroundl().
2005-04-08 01:24:08 +00:00
David Schultz
90232fdf16
Document exp2() and exp2f(), and make other minor tweaks and updates.
2005-04-05 02:57:28 +00:00
David Schultz
3b9141ee91
Implement and document remquo() and remquof().
2005-03-25 04:40:44 +00:00
David Schultz
2e5fb44003
Document feenableexcept(), fedisableexcept(), and fegetexcept().
2005-03-16 19:04:28 +00:00
David Schultz
10b01832c3
Replace fegetmask() and fesetmask() with feenableexcept(),
...
fedisableexcept(), and fegetexcept(). These two sets of routines
provide the same functionality. I implemented the former as an
undocumented internal interface to make the regression test easier to
write. However, fe(enable|disable|get)except() is already part of
glibc, and I would like to avoid gratuitous differences. The only
major flaw in the glibc API is that there's no good way to report
errors on processors that don't support all the unmasked exceptions.
2005-03-16 19:03:46 +00:00
David Schultz
388bf3b630
Document scalbnl and scalblnl.
2005-03-07 05:00:44 +00:00
David Schultz
6af2c5a60c
Document nextafterl and nexttoward{,f,l}.
2005-03-07 05:00:29 +00:00
David Schultz
15a53f77fd
Add nexttoward to the list of implemented functions, and explicitly
...
list the four that are still missing.
2005-03-07 04:59:53 +00:00
David Schultz
66d672d8cb
Document fmal.
2005-03-07 04:59:43 +00:00
David Schultz
1b32579f23
Fix a mistake in the exponent range.
2005-03-06 19:08:18 +00:00
David Schultz
57276bb6ea
Un-document the non-extant exp10() and exp10f() functions.
...
exp10() was a casualty of the transition away from the VAX.
2005-02-26 08:54:45 +00:00
Ruslan Ermilov
1f8ee0e102
Typo.
2005-01-28 21:14:16 +00:00
Ruslan Ermilov
d7a604cc33
Properly terminate sentence.
2005-01-28 21:13:34 +00:00
David Schultz
29bf6af890
- Move the functions presently described in in ieee(3) to their own
...
manpages. They are not very related, so separating them makes it
easier to add meaningful cross-references and extend some of the
descriptions.
- Move the part of math(3) that discusses IEEE 754 to the ieee(3)
manpage.
2005-01-27 05:46:17 +00:00
David Schultz
52611c608e
Many changes, including the following major ones:
...
- Rearrange the list of functions into categories.
- Remove the ulps column. It was appropriate for only some
of the functions in the list, and correct for even fewer
of them.
- Add some new paragraphs, and remove some old ones about
NaNs that may do more harm than good.
- Document precisions other than double-precision.
2005-01-23 22:05:33 +00:00
David Schultz
d5580d091a
Add fma() and fmaf(), which implement a fused multiply-add operation.
2005-01-22 09:53:18 +00:00
Ruslan Ermilov
24a0682c64
Sort sections.
2005-01-20 09:17:07 +00:00
Ruslan Ermilov
5391441c05
Use the \*(If string provided by mdoc(7), to represent infinity.
2005-01-16 16:49:10 +00:00
Ruslan Ermilov
1fbb01b7f0
Removed redundant .br call.
2005-01-16 16:46:14 +00:00
David Schultz
8e26469445
Remove numerous references to VAX floating-point and the setting of
...
errno, replacing them with a discussion of IEEE exceptions where
appropriate. Cross-reference fenv(3) whenever exceptions are
mentioned.
2005-01-14 23:28:28 +00:00
Ruslan Ermilov
e880667b92
Tiny markup nits.
2005-01-14 09:12:05 +00:00
Stefan Farfeleder
749f5f532e
Fixed too many of "the", and enclose multi-word argument in double quotes.
...
Obtained from: ru
2005-01-13 20:33:42 +00:00
Ruslan Ermilov
83e0359d53
Markup nits.
2005-01-13 10:43:01 +00:00
Ruslan Ermilov
113ed1bb1d
Fixed too many of "the", and enclose multi-word argument in double quotes.
2005-01-13 09:35:47 +00:00
Stefan Farfeleder
43295fac79
Implement and document ceill().
2005-01-13 09:11:41 +00:00
Stefan Farfeleder
4067ee86a5
Bump .Dd for the last commit.
2005-01-13 09:08:16 +00:00
Stefan Farfeleder
7e2ee1f065
Hook up and document floorl().
2005-01-12 22:16:26 +00:00
David Schultz
2aac156d2e
Document [l]lrint[f]() and [l]lround[f]().
2005-01-11 23:12:17 +00:00
Ruslan Ermilov
2d82ac3110
Scheduled mdoc(7) sweep.
2005-01-11 20:50:51 +00:00
Ruslan Ermilov
4e05ab77a8
Sanitize the markup, as prompted.
2005-01-11 20:16:03 +00:00
David Schultz
dbc8f2b5ce
More updates for math(3):
...
- Make some minor rearrangements in the introduction.
- Mention the problem with argument reduction on i386.
- Add recently-implemented functions to the table.
- Un-document the error bounds that only apply to the old 4BSD math
library, and fill in the correct values where I know them. No
attempt has been made to document bounds lower than 1 ulp, although
smaller bounds are usually achievable in round-to-nearest mode.
2004-10-11 20:13:52 +00:00
Stefan Farfeleder
2fd3a32ee1
Add and document ilogbl(), a long double version of ilogb().
2004-10-11 18:13:52 +00:00
Stefan Farfeleder
bef5493789
Add man pages for the cimag(), conj() and creal() functions.
2004-08-07 23:03:36 +00:00
David Schultz
ec79bc0da9
Fix two bugs in the signbit() macro, which was implemented last year:
...
- It was added to libc instead of libm. Hopefully no programs rely
on this mistake.
- It didn't work properly on large long doubles because its argument
was converted to type double, resulting in undefined behavior.
2004-07-19 08:16:10 +00:00
David Schultz
9428e108c9
Add C99's nearbyint{,f}() functions as wrappers around rint().
...
These trivial implementations are about 25 times slower than
rint{,f}() on x86 due to the FP environment save/restore.
They should eventually be redone in terms of fegetround() and
bit fiddling.
2004-07-06 04:46:08 +00:00
Ruslan Ermilov
30950a21e1
Eliminate double whitespace.
2004-07-03 22:30:10 +00:00
Ruslan Ermilov
1a0a934547
Mechanically kill hard sentence breaks.
2004-07-02 23:52:20 +00:00
Ruslan Ermilov
862b46f607
Markup, grammar, punctuation.
2004-07-01 18:20:57 +00:00
David Schultz
4f82cb46c4
Implement and document fdim{,f,l}, fmax{,f,l}, and fmin{,f,l}.
2004-06-30 07:04:01 +00:00
David Schultz
f7748f6e01
Uncomment some functions that we now support.
2004-06-20 10:39:09 +00:00
David Schultz
a9a0bf07f3
Cross-reference round(3) and trunc(3) as appropriate.
2004-06-20 09:27:17 +00:00
David Schultz
7ffaea8021
Implement trunc() and truncf().
2004-06-20 09:25:43 +00:00
David Schultz
2f90a15e14
Add trivial implementations of scalbln() and scalblnf().
...
These routines are specified in C99 for the sake of
architectures where an int isn't big enough to represent
the full range of floating-point exponents. However,
even the 128-bit long double format has an exponent smaller
than 15 bits, so for all practical purposes, scalbln() and
scalblnf() are aliases for scalbn() and scalbnf(), respectively.
2004-06-20 09:25:27 +00:00
Stefan Farfeleder
32ef5abfe3
Document ilogb()'s return values in terms of the FP_ILOGB* macros.
2004-06-19 09:33:29 +00:00
David Schultz
2a6bf1fadb
Memory's free, but all the world ain't a VAX anymore. Bring math.3
...
kicking and screaming into the 1980's. This change converts most of
the markup from man(7) to mdoc(7) format, and I believe it removes or
updates everything that was flat out wrong. However, much work is
still needed to sanitize the markup, improve coverage, and reduce
overlap with other manpages. Some of the sections would better belong
in a philosophy_of_w_kahan.3 manpage, but they are informative and
remain at least as reminders of topics to cover.
Reviewed by: doc@, trhodes@
2004-06-19 03:25:28 +00:00
David Schultz
9772caa388
The references to scalbn and scalbnf should be scalb and scalbf.
...
(The former are actually useful, and ieee_test(3) only documents
functions that aren't.) Add a sentence describing the domain of
scalb() and scalbf().
2004-06-12 04:40:47 +00:00
David Schultz
d0f1363370
Add round(3) and roundf(3) and the associated documentation.
...
PR: 59797
Submitted by: "Steven G. Kargl" <kargl@troutmask.apl.washington.edu>
Reviewed by: bde (earlier version, last year)
2004-06-07 08:05:36 +00:00
David Schultz
07235cc8f7
Add documentation for:
...
- fenv(3)
- feclearexcept(3), fegetexceptflag(3), feraiseexcept(3),
fesetexceptflag(3), fetestexcept(3)
- fegetround(3), fesetround(3)
- fegetenv(3), feholdexcept(3), fesetenv(3), feupdateenv(3)
Reviewed by: standards@
2004-06-06 10:06:26 +00:00
Stefan Farfeleder
b60cb13f76
Add an implementation of copysignl(), a long double version of copysign().
...
Approved by: das (mentor)
2004-05-07 18:56:31 +00:00
Stefan Farfeleder
89c5bc6db4
The prototypes for cabs() and cabsf() are in <complex.h>. Fix their arguments'
...
types and describe them briefly.
Reviewed by: ru, bde
Approved by: das (mentor)
2004-05-06 13:11:18 +00:00
Dag-Erling Smørgrav
801517fd4e
Document fabsl(3).
...
Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at>
2003-10-25 13:45:11 +00:00
Ruslan Ermilov
3892c30012
mdoc(7) police: Nits.
2003-03-02 21:04:21 +00:00
Warner Losh
457f6cd2d6
- gamma_r, lgamma_r, gammaf_r, and lgammaf_r were protected by _REENTRANT
...
in math.h; the consensus here was that __BSD_VISIBLE was correct instead.
- gamma_r, lgamma_r, gammaf_r, and lgammaf_r had no documentation in the
lgamma(3) manpage.
Reviewed by: standards@
Submitted by: Ben Mesander
2003-02-26 13:12:03 +00:00
Jens Schweikhardt
57bd0fc6e8
english(4) police.
2002-12-27 12:15:40 +00:00
Bruce Evans
46d7c2979e
Resurrect Lite1's gamma() as C99's tgamma(). Minimal changes.
2002-03-26 11:59:29 +00:00
Bruce Evans
675902aa73
Fixed some bugs in the description of plain gamma() (and gammaf()).
...
Give a more detailed and correct history of when gamma() was actually
the gamma function.
2002-03-26 10:18:20 +00:00