|
Boost-Commit : |
From: john_at_[hidden]
Date: 2008-01-23 08:59:56
Author: johnmaddock
Date: 2008-01-23 08:59:56 EST (Wed, 23 Jan 2008)
New Revision: 42928
URL: http://svn.boost.org/trac/boost/changeset/42928
Log:
Updated concepts to reflect dependence on the rounding functions.
Text files modified:
sandbox/math_toolkit/libs/math/doc/sf_and_dist/concepts.qbk | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
Modified: sandbox/math_toolkit/libs/math/doc/sf_and_dist/concepts.qbk
==============================================================================
--- sandbox/math_toolkit/libs/math/doc/sf_and_dist/concepts.qbk (original)
+++ sandbox/math_toolkit/libs/math/doc/sf_and_dist/concepts.qbk 2008-01-23 08:59:56 EST (Wed, 23 Jan 2008)
@@ -174,13 +174,25 @@
[[`asin(cr1)`][RealType]]
[[`tan(cr1)`][RealType]]
[[`atan(cr1)`][RealType]]
+[[`fmod(cr1)`][RealType]]
+[[`round(cr1)`][RealType]]
+[[`iround(cr1)`][int]]
+[[`trunc(cr1)`][RealType]]
+[[`itrunc(cr1)`][int]]
]
Note that the table above lists only those standard library functions known to
be used (or likely to be used in the near future) by this library.
-The following functions: `acos`, `atan2`, `fmod`, `cosh`, `sinh`, `tanh`, `modf` and `log10`
+The following functions: `acos`, `atan2`, `fmod`, `cosh`, `sinh`, `tanh`, `log10`,
+`lround`, `llround`, ltrunc`, `lltrunc` and `modf`
are not currently used, but may be if further special functions are added.
+Note that the `round`, `trunc` and `modf` functions are not part of the
+current C++ standard: they are part of the additions added to C99 which will
+likely be in the next C++ standard. There are Boost versions of these provided
+as a backup, and the functions are always called unqualified so that
+argument-dependent-lookup can take place.
+
In addition, for efficient and accurate results, a __lanczos is highly desirable.
You may be able to adapt an existing approximation from
[@../../../../../boost/math/special_functions/lanczos.hpp
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