File: manual036.html

package info (click to toggle)
ocaml-doc 3.09-1
  • links: PTS
  • area: non-free
  • in suites: etch, etch-m68k
  • size: 10,428 kB
  • ctags: 4,963
  • sloc: ml: 9,244; makefile: 2,413; ansic: 122; sh: 49; asm: 17
file content (61 lines) | stat: -rw-r--r-- 2,220 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
            "http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD>



<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<META name="GENERATOR" content="hevea 1.08">
<LINK rel="stylesheet" type="text/css" href="manual.css">
<TITLE>
The num library: arbitrary-precision rational arithmetic
</TITLE>
</HEAD>
<BODY >
<A HREF="manual035.html"><IMG SRC ="previous_motif.gif" ALT="Previous"></A>
<A HREF="index.html"><IMG SRC ="contents_motif.gif" ALT="Up"></A>
<A HREF="manual037.html"><IMG SRC ="next_motif.gif" ALT="Next"></A>
<HR>

<H1 CLASS="chapter"><A NAME="htoc254">Chapter&nbsp;22</A>&nbsp;&nbsp;The num library: arbitrary-precision rational arithmetic</H1>

The <TT>num</TT> library implements integer arithmetic and rational
arithmetic in arbitrary precision.<BR>
<BR>
More documentation on the functions provided in this library can be found
in <EM>The CAML Numbers Reference Manual</EM> by 
Valrie Mnissier-Morain, technical report 141, INRIA, july 1992
(available electronically,
<TT>ftp://ftp.inria.fr/INRIA/publication/RT/RT-0141.ps.gz</TT>).<BR>
<BR>
Programs that use the <TT>num</TT> library must be linked as follows:
<PRE>
        ocamlc <I>other options</I> nums.cma <I>other files</I>
        ocamlopt <I>other options</I> nums.cmxa <I>other files</I>
</PRE>
For interactive use of the <TT>nums</TT> library, do:
<PRE>
        ocamlmktop -o mytop nums.cma
        ./mytop
</PRE>
or (if dynamic linking of C libraries is supported on your platform),
start <TT>ocaml</TT> and type <TT>#load "nums.cma";;</TT>.<BR>
<BR>

<ul>
<li><a HREF="libref/Num.html"> Module <tt>Num</tt>: operation on arbitrary-precision numbers</a></li>
<li><a HREF="libref/Big_int.html"> Module <tt>Big_int</tt>: operations on arbitrary-precision integers</a></li>
<li><a HREF="libref/Arith_status.html"> Module <tt>Arith_status</tt>: flags that control rational arithmetic</a></li>
</ul>
<BR>
<BR>

<BR>
<BR>
<HR>
<A HREF="manual035.html"><IMG SRC ="previous_motif.gif" ALT="Previous"></A>
<A HREF="index.html"><IMG SRC ="contents_motif.gif" ALT="Up"></A>
<A HREF="manual037.html"><IMG SRC ="next_motif.gif" ALT="Next"></A>
</BODY>
</HTML>