3 <meta http-equiv=
"Content-Type" content=
"text/html; charset=US-ASCII">
4 <title>Using NTL Library
</title>
5 <link rel=
"stylesheet" href=
"../../math.css" type=
"text/css">
6 <meta name=
"generator" content=
"DocBook XSL Stylesheets V1.77.1">
7 <link rel=
"home" href=
"../../index.html" title=
"Math Toolkit 2.5.1">
8 <link rel=
"up" href=
"../high_precision.html" title=
"Using Boost.Math with High-Precision Floating-Point Libraries">
9 <link rel=
"prev" href=
"e_float.html" title=
"Using e_float Library">
10 <link rel=
"next" href=
"using_test.html" title=
"Using without expression templates for Boost.Test and others">
12 <body bgcolor=
"white" text=
"black" link=
"#0000FF" vlink=
"#840084" alink=
"#0000FF">
13 <table cellpadding=
"2" width=
"100%"><tr>
14 <td valign=
"top"><img alt=
"Boost C++ Libraries" width=
"277" height=
"86" src=
"../../../../../../boost.png"></td>
15 <td align=
"center"><a href=
"../../../../../../index.html">Home
</a></td>
16 <td align=
"center"><a href=
"../../../../../../libs/libraries.htm">Libraries
</a></td>
17 <td align=
"center"><a href=
"http://www.boost.org/users/people.html">People
</a></td>
18 <td align=
"center"><a href=
"http://www.boost.org/users/faq.html">FAQ
</a></td>
19 <td align=
"center"><a href=
"../../../../../../more/index.htm">More
</a></td>
22 <div class=
"spirit-nav">
23 <a accesskey=
"p" href=
"e_float.html"><img src=
"../../../../../../doc/src/images/prev.png" alt=
"Prev"></a><a accesskey=
"u" href=
"../high_precision.html"><img src=
"../../../../../../doc/src/images/up.png" alt=
"Up"></a><a accesskey=
"h" href=
"../../index.html"><img src=
"../../../../../../doc/src/images/home.png" alt=
"Home"></a><a accesskey=
"n" href=
"using_test.html"><img src=
"../../../../../../doc/src/images/next.png" alt=
"Next"></a>
26 <div class=
"titlepage"><div><div><h3 class=
"title">
27 <a name=
"math_toolkit.high_precision.use_ntl"></a><a class=
"link" href=
"use_ntl.html" title=
"Using NTL Library">Using NTL Library
</a>
28 </h3></div></div></div>
30 <a href=
"http://shoup.net/ntl/doc/RR.txt" target=
"_top">NTL::RR
</a> (an arbitrarily-fixed
31 precision floating-point number type), can be used via the bindings in
<a href=
"../../../../../../boost/math/bindings/rr.hpp" target=
"_top">boost/math/bindings/rr.hpp
</a>.
32 For details, see
<a href=
"http://shoup.net/ntl/" target=
"_top">NTL: A Library for doing
33 Number Theory by Victor Shoup
</a>.
36 <span class=
"bold"><strong>New projects are recommended to use
<a href=
"../../../../../../libs/multiprecision/doc/html/index.html" target=
"_top">Boost.Multiprecision
</a>
37 instead.
</strong></span>
40 Unfortunately
<code class=
"computeroutput"><span class=
"identifier">NTL
</span><span class=
"special">::
</span><span class=
"identifier">RR
</span></code> doesn't quite satisfy our conceptual
41 requirements, so there is a very thin wrapper class
<code class=
"computeroutput"><span class=
"identifier">boost
</span><span class=
"special">::
</span><span class=
"identifier">math
</span><span class=
"special">::
</span><span class=
"identifier">ntl
</span><span class=
"special">::
</span><span class=
"identifier">RR
</span></code> defined in
<a href=
"../../../../../../boost/math/bindings/rr.hpp" target=
"_top">boost/math/bindings/rr.hpp
</a>
42 that you should use in place of
<code class=
"computeroutput"><span class=
"identifier">NTL
</span><span class=
"special">::
</span><span class=
"identifier">RR
</span></code>. The
43 class is intended to be a drop-in replacement for the
"real" NTL::RR
44 that adds some syntactic sugar to keep this library happy, plus some of the
45 standard library functions not implemented in NTL.
48 For those functions that are based upon the
<a class=
"link" href=
"../lanczos.html" title=
"The Lanczos Approximation">Lanczos
49 approximation
</a>, the bindings defines a series of approximations with
50 up to
61 terms and accuracy up to approximately
3e-113. This therefore sets
51 the upper limit for accuracy to the majority of functions defined this library
52 when used with
<code class=
"computeroutput"><span class=
"identifier">NTL
</span><span class=
"special">::
</span><span class=
"identifier">RR
</span></code>.
55 There is a concept checking test program for NTL support
<a href=
"../../../../../../libs/math/test/ntl_concept_check.cpp" target=
"_top">here
</a>.
58 <table xmlns:
rev=
"http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width=
"100%"><tr>
59 <td align=
"left"></td>
60 <td align=
"right"><div class=
"copyright-footer">Copyright
© 2006-
2010,
2012-
2014 Nikhar Agrawal,
61 Anton Bikineev, Paul A. Bristow, Marco Guazzone, Christopher Kormanyos, Hubert
62 Holin, Bruno Lalande, John Maddock, Jeremy Murphy, Johan R
åde, Gautam Sewani,
63 Benjamin Sobotta, Thijs van den Berg, Daryle Walker and Xiaogang Zhang
<p>
64 Distributed under the Boost Software License, Version
1.0. (See accompanying
65 file LICENSE_1_0.txt or copy at
<a href=
"http://www.boost.org/LICENSE_1_0.txt" target=
"_top">http://www.boost.org/LICENSE_1_0.txt
</a>)
70 <div class=
"spirit-nav">
71 <a accesskey=
"p" href=
"e_float.html"><img src=
"../../../../../../doc/src/images/prev.png" alt=
"Prev"></a><a accesskey=
"u" href=
"../high_precision.html"><img src=
"../../../../../../doc/src/images/up.png" alt=
"Up"></a><a accesskey=
"h" href=
"../../index.html"><img src=
"../../../../../../doc/src/images/home.png" alt=
"Home"></a><a accesskey=
"n" href=
"using_test.html"><img src=
"../../../../../../doc/src/images/next.png" alt=
"Next"></a>