|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r49994 - sandbox/math_toolkit/libs/math/doc/sf_and_dist
From: pbristow_at_[hidden]
Date: 2008-11-28 12:55:02
Author: pbristow
Date: 2008-11-28 12:55:02 EST (Fri, 28 Nov 2008)
New Revision: 49994
URL: http://svn.boost.org/trac/boost/changeset/49994
Log:
Added C99 reference.
Text files modified:
sandbox/math_toolkit/libs/math/doc/sf_and_dist/c99_ref.qbk | 32 +++++++++++++++++---------------
1 files changed, 17 insertions(+), 15 deletions(-)
Modified: sandbox/math_toolkit/libs/math/doc/sf_and_dist/c99_ref.qbk
==============================================================================
--- sandbox/math_toolkit/libs/math/doc/sf_and_dist/c99_ref.qbk (original)
+++ sandbox/math_toolkit/libs/math/doc/sf_and_dist/c99_ref.qbk 2008-11-28 12:55:02 EST (Fri, 28 Nov 2008)
@@ -88,7 +88,7 @@
long double truncl(long double x);
}}}} // namespaces
-
+
In addition sufficient additional overloads of the `double` versions of the
above functions are provided, so that calling the function with any mixture
of `float`, `double`, `long double`, or /integer/ arguments is supported, with the
@@ -110,7 +110,7 @@
typedef unspecified float_t;
typedef unspecified double_t;
-
+
In this implementation `float_t` is the same as type `float`, and
`double_t` the same as type `double` unless the preprocessor symbol
FLT_EVAL_METHOD is defined, in which case these are set as follows:
@@ -149,7 +149,7 @@
double cbrt(double x);
float cbrtf(float x);
long double cbrtl(long double x);
-
+
Returns the cubed root of /x/.
See also __cbrt for the full template (header only) version of this function.
@@ -212,7 +212,7 @@
double lgamma(double x);
float lgammaf(float x);
long double lgammal(long double x);
-
+
Returns the log of the gamma function of /x/.
[equation lgamm1]
@@ -222,8 +222,8 @@
long long llround(double x);
long long llroundf(float x);
long long llroundl(long double x);
-
-Returns the value /x/ rounded to the nearest integer as a `long long`:
+
+Returns the value /x/ rounded to the nearest integer as a `long long`:
equivalent to `floor(x + 0.5)`
See also __llround for the full template (header only) version of this function.
@@ -231,8 +231,8 @@
double log1p(double x);
float log1pf(float x);
long double log1pl(long double x);
-
-Returns the `log(x+1)` without the loss of precision
+
+Returns the `log(x+1)` without the loss of precision
implied by that formulation.
See also __log1p for the full template (header only) version of this function.
@@ -241,7 +241,7 @@
long lroundf(float x);
long lroundl(long double x);
-Returns the value /x/ rounded to the nearest integer as a `long`:
+Returns the value /x/ rounded to the nearest integer as a `long`:
equivalent to `floor(x + 0.5)`
See also __lround for the full template (header only) version of this function.
@@ -249,21 +249,21 @@
double nextafter(double x, double y);
float nextafterf(float x, float y);
long double nextafterl(long double x, long double y);
-
+
Returns the next representable floating point number after /x/
in the direction of /y/, or /x/ if `x == y`.
double nexttoward(double x, long double y);
float nexttowardf(float x, long double y);
long double nexttowardl(long double x, long double y);
-
+
As `nextafter`, but with /y/ always expressed as a `long double`.
double round(double x);
float roundf(float x);
long double roundl(long double x);
-Returns the value /x/ rounded to the nearest integer:
+Returns the value /x/ rounded to the nearest integer:
equivalent to `floor(x + 0.5)`
See also __round for the full template (header only) version of this function.
@@ -271,7 +271,7 @@
double tgamma(double x);
float tgammaf(float x);
long double tgammal(long double x);
-
+
Returns the gamma function of /x/:
[equation gamm1]
@@ -281,14 +281,16 @@
double trunc(double x);
float truncf(float x);
long double truncl(long double x);
-
+
Returns /x/ truncated to the nearest integer.
See also __trunc for the full template (header only) version of this function.
+See also [@http://www.open-std.org/JTC1/SC22/WG14/www/docs/n1124.pdf C99 ISO Standard]
+
[endsect]
-[/
+[/
Copyright 2008 John Maddock and Paul A. Bristow.
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk