• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html>
2<head>
3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4<title>Tutorial</title>
5<link rel="stylesheet" href="../multiprecision.css" type="text/css">
6<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
7<link rel="home" href="../index.html" title="Chapter 1. Boost.Multiprecision">
8<link rel="up" href="../index.html" title="Chapter 1. Boost.Multiprecision">
9<link rel="prev" href="intro.html" title="Introduction">
10<link rel="next" href="tut/ints.html" title="Integer Types">
11</head>
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>
20</tr></table>
21<hr>
22<div class="spirit-nav">
23<a accesskey="p" href="intro.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.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="tut/ints.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a>
24</div>
25<div class="section">
26<div class="titlepage"><div><div><h2 class="title" style="clear: both">
27<a name="boost_multiprecision.tut"></a><a class="link" href="tut.html" title="Tutorial">Tutorial</a>
28</h2></div></div></div>
29<div class="toc"><dl class="toc">
30<dt><span class="section"><a href="tut/ints.html">Integer Types</a></span></dt>
31<dd><dl>
32<dt><span class="section"><a href="tut/ints/cpp_int.html">cpp_int</a></span></dt>
33<dt><span class="section"><a href="tut/ints/gmp_int.html">gmp_int</a></span></dt>
34<dt><span class="section"><a href="tut/ints/tom_int.html">tom_int</a></span></dt>
35<dt><span class="section"><a href="tut/ints/egs.html">Examples</a></span></dt>
36<dd><dl>
37<dt><span class="section"><a href="tut/ints/egs/factorials.html">Factorials</a></span></dt>
38<dt><span class="section"><a href="tut/ints/egs/bitops.html">Bit Operations</a></span></dt>
39</dl></dd>
40</dl></dd>
41<dt><span class="section"><a href="tut/floats.html">Floating-point Types</a></span></dt>
42<dd><dl>
43<dt><span class="section"><a href="tut/floats/cpp_bin_float.html">cpp_bin_float</a></span></dt>
44<dt><span class="section"><a href="tut/floats/cpp_dec_float.html">cpp_dec_float</a></span></dt>
45<dt><span class="section"><a href="tut/floats/gmp_float.html">gmp_float</a></span></dt>
46<dt><span class="section"><a href="tut/floats/mpfr_float.html">mpfr_float</a></span></dt>
47<dt><span class="section"><a href="tut/floats/float128.html">float128</a></span></dt>
48<dt><span class="section"><a href="tut/floats/fp_eg.html">Examples</a></span></dt>
49<dd><dl>
50<dt><span class="section"><a href="tut/floats/fp_eg/aos.html">Area of
51          Circle</a></span></dt>
52<dt><span class="section"><a href="tut/floats/fp_eg/caveats.html">Drop-in
53          Caveats</a></span></dt>
54<dt><span class="section"><a href="tut/floats/fp_eg/jel.html">Defining
55          a Special Function.</a></span></dt>
56<dt><span class="section"><a href="tut/floats/fp_eg/nd.html">Calculating
57          a Derivative</a></span></dt>
58<dt><span class="section"><a href="tut/floats/fp_eg/gi.html">Calculating
59          an Integral</a></span></dt>
60<dt><span class="section"><a href="tut/floats/fp_eg/poly_eg.html">Polynomial
61          Evaluation</a></span></dt>
62<dt><span class="section"><a href="tut/floats/fp_eg/variable_precision.html">Variable-Precision
63          Newton Evaluation</a></span></dt>
64<dt><span class="section"><a href="tut/floats/fp_eg/gauss_lagerre_quadrature.html">Gauss-Laguerre
65          quadrature</a></span></dt>
66</dl></dd>
67</dl></dd>
68<dt><span class="section"><a href="tut/interval.html">Interval Number Types</a></span></dt>
69<dd><dl><dt><span class="section"><a href="tut/interval/mpfi.html">mpfi_float</a></span></dt></dl></dd>
70<dt><span class="section"><a href="tut/complex.html">Complex Number Types</a></span></dt>
71<dd><dl>
72<dt><span class="section"><a href="tut/complex/cpp_complex.html">cpp_complex</a></span></dt>
73<dt><span class="section"><a href="tut/complex/mpc_complex.html">mpc_complex</a></span></dt>
74<dt><span class="section"><a href="tut/complex/complex128.html">complex128</a></span></dt>
75<dt><span class="section"><a href="tut/complex/complex_adaptor.html">complex_adaptor</a></span></dt>
76</dl></dd>
77<dt><span class="section"><a href="tut/rational.html">Rational Number Types</a></span></dt>
78<dd><dl>
79<dt><span class="section"><a href="tut/rational/cpp_rational.html">cpp_rational</a></span></dt>
80<dt><span class="section"><a href="tut/rational/gmp_rational.html">gmp_rational</a></span></dt>
81<dt><span class="section"><a href="tut/rational/tommath_rational.html">tommath_rational</a></span></dt>
82<dt><span class="section"><a href="tut/rational/br.html">Use With Boost.Rational</a></span></dt>
83<dt><span class="section"><a href="tut/rational/rational_adaptor.html">rational_adaptor</a></span></dt>
84</dl></dd>
85<dt><span class="section"><a href="tut/misc.html">Miscellaneous Number Types.</a></span></dt>
86<dd><dl>
87<dt><span class="section"><a href="tut/misc/logged_adaptor.html">logged_adaptor</a></span></dt>
88<dt><span class="section"><a href="tut/misc/debug_adaptor.html">debug_adaptor</a></span></dt>
89<dt><span class="section"><a href="tut/misc/visualizers.html">Visual C++
90        Debugger Visualizers</a></span></dt>
91</dl></dd>
92<dt><span class="section"><a href="tut/conversions.html">Constructing and
93      Interconverting Between Number Types</a></span></dt>
94<dt><span class="section"><a href="tut/random.html">Generating Random Numbers</a></span></dt>
95<dt><span class="section"><a href="tut/primetest.html">Primality Testing</a></span></dt>
96<dt><span class="section"><a href="tut/lits.html">Literal Types and <code class="computeroutput"><span class="keyword">constexpr</span></code> Support</a></span></dt>
97<dt><span class="section"><a href="tut/import_export.html">Importing and
98      Exporting Data to and from <code class="computeroutput"><span class="identifier">cpp_int</span></code>
99      and <code class="computeroutput"><span class="identifier">cpp_bin_float</span></code></a></span></dt>
100<dt><span class="section"><a href="tut/rounding.html">Rounding Rules for
101      Conversions</a></span></dt>
102<dt><span class="section"><a href="tut/mixed.html">Mixed Precision Arithmetic</a></span></dt>
103<dt><span class="section"><a href="tut/gen_int.html">Generic Integer Operations</a></span></dt>
104<dt><span class="section"><a href="tut/serial.html">Boost.Serialization
105      Support</a></span></dt>
106<dt><span class="section"><a href="tut/limits.html">Numeric Limits</a></span></dt>
107<dd><dl>
108<dt><span class="section"><a href="tut/limits/constants.html">std::numeric_limits&lt;&gt;
109        constants</a></span></dt>
110<dt><span class="section"><a href="tut/limits/functions.html"><code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">numeric_limits</span><span class="special">&lt;&gt;</span></code> functions</a></span></dt>
111<dt><span class="section"><a href="tut/limits/limits32.html">Numeric limits
112        for 32-bit platform</a></span></dt>
113<dt><span class="section"><a href="tut/limits/how_to_tell.html">How to
114        Determine the Kind of a Number From <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">numeric_limits</span></code></a></span></dt>
115</dl></dd>
116<dt><span class="section"><a href="tut/input_output.html">Input Output</a></span></dt>
117<dt><span class="section"><a href="tut/hash.html">Hash Function Support</a></span></dt>
118<dt><span class="section"><a href="tut/eigen.html">Eigen Interoperability</a></span></dt>
119<dt><span class="section"><a href="tut/new_backend.html">Writing a New Backend</a></span></dt>
120</dl></div>
121<p>
122      In order to use this library you need to make two choices:
123    </p>
124<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
125<li class="listitem">
126          What kind of number do I want (<a class="link" href="tut/ints.html" title="Integer Types">integer</a>,
127          <a class="link" href="tut/floats.html" title="Floating-point Types">floating-point</a>,
128          <a class="link" href="tut/rational.html" title="Rational Number Types">rational</a>, or
129          <a class="link" href="tut/complex.html" title="Complex Number Types">complex</a>).
130        </li>
131<li class="listitem">
132          Which back-end do I want to perform the actual arithmetic (Boost-supplied,
133          GMP, MPFR, MPC, Tommath etc)?
134        </li>
135</ul></div>
136</div>
137<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
138<td align="left"></td>
139<td align="right"><div class="copyright-footer">Copyright © 2002-2020 John
140      Maddock and Christopher Kormanyos<p>
141        Distributed under the Boost Software License, Version 1.0. (See accompanying
142        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>)
143      </p>
144</div></td>
145</tr></table>
146<hr>
147<div class="spirit-nav">
148<a accesskey="p" href="intro.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.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="tut/ints.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a>
149</div>
150</body>
151</html>
152