From c597eb5534a61a742ac4f2792b5b1760d34a794a Mon Sep 17 00:00:00 2001 From: Richard Kreckel Date: Fri, 5 May 2000 18:01:35 +0000 Subject: [PATCH] - Upgraded texinfo.tex to newer version 1999-10-01.07, which also triggered lots of style changes. - Documented use of external GMP. - Fixed some index entries. --- doc/cln.dvi | Bin 257596 -> 258328 bytes doc/cln.html | 946 +++--- doc/cln.info | 224 +- doc/cln.ps | 8242 +++++++++++++++++++++++----------------------- doc/cln.tex | 58 +- doc/cln.texi | 70 +- doc/cln_1.html | 2 +- doc/cln_10.html | 28 +- doc/cln_11.html | 26 +- doc/cln_12.html | 24 +- doc/cln_13.html | 4 +- doc/cln_2.html | 45 +- doc/cln_3.html | 60 +- doc/cln_4.html | 448 +-- doc/cln_5.html | 18 +- doc/cln_6.html | 4 +- doc/cln_7.html | 68 +- doc/cln_8.html | 28 +- doc/cln_9.html | 78 +- doc/cln_toc.html | 139 +- doc/texinfo.tex | 4769 +++++++++++++++++---------- 21 files changed, 8430 insertions(+), 6851 deletions(-) diff --git a/doc/cln.dvi b/doc/cln.dvi index 086cf54ac849ccff0928188b6bc52f3035b1a310..00de7ca85f3131f997e90b4c356130f51826522b 100644 GIT binary patch literal 258328 zcmd443!GeKeK)?z%!U9#AfSSvm|)3nGCSEz?qnk&5L`(@nuIC^lAM`&X6BeP=M3kZ z$?gWcw4yDQj5$0q99hd^rRf`O0aM$eLiJT@ONDByFJ4|}6#c)}YhNj?T19z3-`{gN z=giD*HiWkS{d@?!Gv_>)-}AfQo}bO1_s+XMeevZzJv}|C?_KoTJ?zb|b!vXK=D&7$ zaBwg?xH>zydc)BA)vMmq)6+8#kDch}g%@6U;qdgo_Vm>6pa0I0<%jS8^+or7|8Vep z?mN$2`I)D8+~0Hlqi^Y1)YH?mAYaK%3=RMA$}QV=WE!V^?oSN9#WFmPZ!>eQ;ZE|R zY=^(WFmo2GPcMA($vb-Hivj9)Vr%nHv@Q9wJh8PG_J8EB#ny(e zeRlt3&l%5+^qkSt)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Rq?oIezw8_W(2K=teexK0@{tnyQ_&cu0Pd~Qf8}vKy)9dQ4Sarz0cSY~< z*N?9A+2Q|^8VKj}N|NC#I&&La5&_bgH(WKbz zuOD5~TKCfjI1k6+Kj`oGG>-b}#YZ&z!=%(WTK#hNaGUk;528t}ag - + CLN, a Class Library for Numbers @@ -21,99 +21,102 @@
  • 2.2 Building the library -
  • 2.3 Installing the library -
  • 2.4 Cleaning up + +
  • 2.3 Installing the library +
  • 2.4 Cleaning up -
  • 3. Ordinary number types +
  • 3. Ordinary number types -
  • 4. Functions on numbers +
  • 4. Functions on numbers -
  • 5. Input/Output +
  • 5. Input/Output -
  • 6. Rings -
  • 7. Modular integers +
  • 6. Rings +
  • 7. Modular integers -
  • 8. Symbolic data types +
  • 8. Symbolic data types -
  • 9. Univariate polynomials +
  • 9. Univariate polynomials -
  • 10. Internals +
  • 10. Internals -
  • 11. Using the library +
  • 11. Using the library -
  • 12. Customizing +
  • 12. Customizing -
  • Index +
  • Index


    @@ -316,21 +319,23 @@ of static and global variables, a feature which I could implement for GNU g++ only. -

    -

    2.1.2 Make utility

    +

    + +

    To build CLN, you also need to have GNU make installed. -

    -

    2.1.3 Sed utility

    +

    + +

    To build CLN on HP-UX, you also need to have GNU sed installed. @@ -466,11 +471,40 @@ library. -

    2.3 Installing the library

    +

    2.2.1 Using the GNU MP Library

    +

    +Starting with version 1.0.4, CLN may be configured to make use of a +preinstalled gmp library. Please make sure that you have at +least gmp version 3.0 installed since earlier versions are +unsupported and likely not to work. Enabling this feature by calling +configure with the option `--with-gmp' is known to be quite +a boost for CLN's performance. + + +

    +If you have installed the gmp library and its header file in +some place where your compiler cannot find it by default, you must help +configure by setting CPPFLAGS and LDFLAGS. Here is +an example: + + + +

    +$ CC="gcc" CFLAGS="-O2" CXX="g++" CXXFLAGS="-O2 -fno-exceptions" \
    +  CPPFLAGS="-I/opt/gmp/include" LDFLAGS="-L/opt/gmp/lib" ./configure --with-gmp
    +
    + + + +

    2.3 Installing the library

    +

    + + +

    As with any autoconfiguring GNU software, installation is as easy as this: @@ -496,7 +530,7 @@ the --prefix=... option. -

    2.4 Cleaning up

    +

    2.4 Cleaning up

    You can remove system-dependent files generated by make through @@ -519,7 +553,7 @@ $ make distclean -

    3. Ordinary number types

    +

    3. Ordinary number types

    CLN implements the following class hierarchy: @@ -555,8 +589,8 @@ Rational number Floating-point number

    - + The base class cl_number is an abstract base class. It is not useful to declare a variable of this type except if you want to completely disable compile-time type checking and use run-time type @@ -564,24 +598,24 @@ checking instead.

    - + The class cl_N comprises real and complex numbers. There is no special class for complex numbers since complex numbers with imaginary part 0 are automatically converted to real numbers.

    - + The class cl_R comprises real numbers of different kinds. It is an abstract class.

    - + The class cl_RA comprises exact real numbers: rational numbers, including integers. There is no special class for non-integral rational numbers since rational numbers with denominator 1 are automatically converted @@ -589,16 +623,16 @@ to integers.

    - + The class cl_F implements floating-point approximations to real numbers. It is an abstract class. -

    3.1 Exact numbers

    +

    3.1 Exact numbers

    - +

    @@ -640,9 +674,9 @@ is completely transparent. -

    3.2 Floating-point numbers

    +

    3.2 Floating-point numbers

    - +

    @@ -654,7 +688,7 @@ CLN implements ordinary floating-point numbers, with mantissa and exponent.

    - + The elementary operations (+, -, *, /, ...) only return approximate results. For example, the value of the expression (cl_F) 0.3 + (cl_F) 0.4 prints as `0.70000005', not as @@ -685,7 +719,7 @@ Floating point numbers come in four flavors:

    • - + Short floats, type cl_SF. They have 1 sign bit, 8 exponent bits (including the exponent's sign), and 17 mantissa bits (including the "hidden" bit). @@ -693,7 +727,7 @@ They don't consume heap allocation.
    • - + Single floats, type cl_FF. They have 1 sign bit, 8 exponent bits (including the exponent's sign), and 24 mantissa bits (including the "hidden" bit). @@ -702,7 +736,7 @@ This corresponds closely to the C/C++ type `float'.
    • - + Double floats, type cl_DF. They have 1 sign bit, 11 exponent bits (including the exponent's sign), and 53 mantissa bits (including the "hidden" bit). @@ -711,7 +745,7 @@ This corresponds closely to the C/C++ type `double'.
    • - + Long floats, type cl_LF. They have 1 sign bit, 32 exponent bits (including the exponent's sign), and n mantissa bits (including the "hidden" bit), where n >= 64. @@ -732,7 +766,7 @@ with larger exponent range.

      - + As a user of CLN, you can forget about the differences between the four floating-point types and just declare all your floating-point variables as being of type cl_F. This has the advantage that @@ -747,9 +781,9 @@ the floating point contagion rule happened to change in the future.) -

      3.3 Complex numbers

      +

      3.3 Complex numbers

      - +

      @@ -766,9 +800,9 @@ through application of sqrt or transcendental functions. -

      3.4 Conversions

      +

      3.4 Conversions

      - +

      @@ -827,7 +861,7 @@ Conversions from `const char *' are provided for the classes cl_R, cl_N. The easiest way to specify a value which is outside of the range of the C++ built-in types is therefore to specify it as a string, like this: - +

          cl_I order_of_rubiks_cube_group = "43252003274489856000";
      @@ -847,16 +881,16 @@ the functions
       
       
      int cl_I_to_int (const cl_I& x)
      - +
      unsigned int cl_I_to_uint (const cl_I& x)
      - +
      long cl_I_to_long (const cl_I& x)
      - +
      unsigned long cl_I_to_ulong (const cl_I& x)
      - + Returns x as element of the C type ctype. If x is not representable in the range of ctype, a runtime error occurs. @@ -873,10 +907,10 @@ the functions
      float cl_float_approx (const type& x)
      - +
      double cl_double_approx (const type& x)
      - + Returns an approximation of x of C type ctype. If abs(x) is too close to 0 (underflow), 0 is returned. If abs(x) is too large (overflow), an IEEE infinity is returned. @@ -887,10 +921,10 @@ Conversions from any class to any of its subclasses ("derived classes" in C++ terminology) are not provided. Instead, you can assert and check that a value belongs to a certain subclass, and return it as element of that class, using the `As' and `The' macros. - + As(type)(value) checks that value belongs to type and returns it as such. - + The(type)(value) assumes that value belongs to type and returns it as such. It is your responsibility to ensure that this assumption is valid. @@ -907,7 +941,7 @@ Example: -

      4. Functions on numbers

      +

      4. Functions on numbers

      Each of the number classes declares its mathematical operations in the @@ -917,7 +951,7 @@ objects of type cl_I, it should #include <cl_integer.h -

      4.1 Constructing numbers

      +

      4.1 Constructing numbers

      Here is how to create number objects "from nothing". @@ -925,37 +959,37 @@ Here is how to create number objects "from nothing". -

      4.1.1 Constructing integers

      +

      4.1.1 Constructing integers

      cl_I objects are most easily constructed from C integers and from -strings. See section 3.4 Conversions. +strings. See section 3.4 Conversions. -

      4.1.2 Constructing rational numbers

      +

      4.1.2 Constructing rational numbers

      cl_RA objects can be constructed from strings. The syntax -for rational numbers is described in section 5.1 Internal and printed representation. +for rational numbers is described in section 5.1 Internal and printed representation. Another standard way to produce a rational number is through application of `operator /' or `recip' on integers. -

      4.1.3 Constructing floating-point numbers

      +

      4.1.3 Constructing floating-point numbers

      cl_F objects with low precision are most easily constructed from -C `float' and `double'. See section 3.4 Conversions. +C `float' and `double'. See section 3.4 Conversions.

      To construct a cl_F with high precision, you can use the conversion from `const char *', but you have to specify the desired precision -within the string. (See section 5.1 Internal and printed representation.) +within the string. (See section 5.1 Internal and printed representation.) Example:

      @@ -969,7 +1003,7 @@ will set `e' to the given value, with a precision of 40 decimal dig
       

      The programmatic way to construct a cl_F with high precision is through the cl_float conversion function, see -section 4.11.1 Conversion to floating-point numbers. For example, to compute +section 4.11.1 Conversion to floating-point numbers. For example, to compute e to 40 decimal places, first construct 1.0 to 40 decimal places and then apply the exponential function: @@ -980,7 +1014,7 @@ and then apply the exponential function: -

      4.1.4 Constructing complex numbers

      +

      4.1.4 Constructing complex numbers

      Non-real cl_N objects are normally constructed through the function @@ -990,12 +1024,12 @@ Non-real cl_N objects are normally constructed through the function

      -See section 4.4 Elementary complex functions. +See section 4.4 Elementary complex functions. -

      4.2 Elementary functions

      +

      4.2 Elementary functions

      Each of the classes cl_N, cl_R, cl_RA, cl_I, @@ -1007,12 +1041,12 @@ defines the following operations:

      type operator + (const type&, const type&)
      - + Addition.
      type operator - (const type&, const type&)
      - + Subtraction.
      type operator - (const type&) @@ -1021,22 +1055,22 @@ Returns the negative of the argument.
      type plus1 (const type& x)
      - + Returns x + 1.
      type minus1 (const type& x)
      - + Returns x - 1.
      type operator * (const type&, const type&)
      - + Multiplication.
      type square (const type& x)
      - + Returns x * x. @@ -1050,12 +1084,12 @@ defines the following operations:
      type operator / (const type&, const type&)
      - + Division.
      type recip (const type&)
      - + Returns the reciprocal of the argument. @@ -1063,7 +1097,7 @@ Returns the reciprocal of the argument. The class cl_I doesn't define a `/' operation because in the C/C++ language this operator, applied to integral types, denotes the `floor' or `truncate' operation (which one of these, -is implementation dependent). (See section 4.6 Rounding functions) +is implementation dependent). (See section 4.6 Rounding functions.) Instead, cl_I defines an "exact quotient" function: @@ -1071,7 +1105,7 @@ Instead, cl_I defines an "exact quotient" function:
      cl_I exquo (const cl_I& x, const cl_I& y)
      - + Checks that y divides x, and returns the quotient x/y. @@ -1083,14 +1117,14 @@ The following exponentiation functions are defined:
      cl_I expt_pos (const cl_I& x, const cl_I& y)
      - +
      cl_RA expt_pos (const cl_RA& x, const cl_I& y)
      y must be > 0. Returns x^y.
      cl_RA expt (const cl_RA& x, const cl_I& y)
      - +
      cl_R expt (const cl_R& x, const cl_I& y)
      cl_N expt (const cl_N& x, const cl_I& y) @@ -1108,7 +1142,7 @@ defines the following operation:
      type abs (const type& x)
      - + Returns the absolute value of x. This is x if x >= 0, and -x if x <= 0. @@ -1134,7 +1168,7 @@ defines the following operation:
      type signum (const type& x)
      - + Returns the sign of x, in the same number format as x. This is defined as x / abs(x) if x is non-zero, and x if x is zero. If x is real, the value is either @@ -1143,7 +1177,7 @@ This is defined as x / abs(x) if x is non-zero, and -

      4.3 Elementary rational functions

      +

      4.3 Elementary rational functions

      Each of the classes cl_RA, cl_I defines the following operations: @@ -1153,12 +1187,12 @@ Each of the classes cl_RA, cl_I defines the following

      cl_I numerator (const type& x)
      - + Returns the numerator of x.
      cl_I denominator (const type& x)
      - + Returns the denominator of x. @@ -1169,7 +1203,7 @@ a way that they have no factor in common and the denominator is positive. -

      4.4 Elementary complex functions

      +

      4.4 Elementary complex functions

      The class cl_N defines the following operation: @@ -1179,7 +1213,7 @@ The class cl_N defines the following operation:

      cl_N complex (const cl_R& a, const cl_R& b)
      - + Returns the complex number a+bi, that is, the complex number with real part a and imaginary part b. @@ -1192,17 +1226,17 @@ Each of the classes cl_N, cl_R defines the following o
      cl_R realpart (const type& x)
      - + Returns the real part of x.
      cl_R imagpart (const type& x)
      - + Returns the imaginary part of x.
      type conjugate (const type& x)
      - + Returns the complex conjugate of x. @@ -1222,9 +1256,9 @@ We have the relations -

      4.5 Comparisons

      +

      4.5 Comparisons

      - +

      @@ -1237,22 +1271,22 @@ defines the following operations:

      bool operator == (const type&, const type&)
      - +
      bool operator != (const type&, const type&)
      - + Comparison, as in C and C++.
      uint32 cl_equal_hashcode (const type&)
      - + Returns a 32-bit hash code that is the same for any two numbers which are the same according to ==. This hash code depends on the number's value, not its type or precision.
      cl_boolean zerop (const type& x)
      - + Compare against zero: x == 0 @@ -1266,42 +1300,42 @@ defines the following operations:
      cl_signean cl_compare (const type& x, const type& y)
      - + Compares x and y. Returns +1 if x>y, -1 if x<y, 0 if x=y.
      bool operator <= (const type&, const type&)
      - +
      bool operator < (const type&, const type&)
      - +
      bool operator >= (const type&, const type&)
      - +
      bool operator > (const type&, const type&)
      - + Comparison, as in C and C++.
      cl_boolean minusp (const type& x)
      - + Compare against zero: x < 0
      cl_boolean plusp (const type& x)
      - + Compare against zero: x > 0
      type max (const type& x, const type& y)
      - + Return the maximum of x and y.
      type min (const type& x, const type& y)
      - + Return the minimum of x and y. @@ -1316,9 +1350,9 @@ there is no floating point number whose value is exactly 1/3. -

      4.6 Rounding functions

      +

      4.6 Rounding functions

      - +

      @@ -1389,19 +1423,19 @@ defines the following operations:

      cl_I floor1 (const type& x)
      - + Returns floor(x).
      cl_I ceiling1 (const type& x)
      - + Returns ceiling(x).
      cl_I truncate1 (const type& x)
      - + Returns truncate(x).
      cl_I round1 (const type& x)
      - + Returns round(x). @@ -1490,16 +1524,16 @@ defines the following operations:
      type_div_t floor2 (const type& x, const type& y)
      - +
      type_div_t ceiling2 (const type& x, const type& y)
      - +
      type_div_t truncate2 (const type& x, const type& y)
      - +
      type_div_t round2 (const type& x, const type& y)
      - +

      @@ -1518,16 +1552,16 @@ defines the following operations:

      type ffloor (const type& x)
      - +
      type fceiling (const type& x)
      - +
      type ftruncate (const type& x)
      - +
      type fround (const type& x)
      - +

      @@ -1559,6 +1593,11 @@ and the remainder. The suffix `2' indicates this. Each of the classes cl_F, cl_SF, cl_FF, cl_DF, cl_LF defines the following operations: + + + + +

      @@ -1567,19 +1606,20 @@ defines the following operations:
      type_fdiv_t ffloor2 (const type& x)
      - +
      type_fdiv_t fceiling2 (const type& x)
      - +
      type_fdiv_t ftruncate2 (const type& x)
      - +
      type_fdiv_t fround2 (const type& x)
      - +

      and similarly for class cl_R, but with quotient type cl_F. +

      @@ -1631,15 +1671,15 @@ The classes cl_R, cl_I define the following operations

      type mod (const type& x, const type& y)
      - +
      type rem (const type& x, const type& y)
      - + -

      4.7 Roots

      +

      4.7 Roots

      Each of the classes cl_R, @@ -1651,7 +1691,7 @@ defines the following operation:

      type sqrt (const type& x)
      - + x must be >= 0. This function returns the square root of x, normalized to be >= 0. If x is the square of a rational number, sqrt(x) will be a rational number, else it will return a @@ -1666,7 +1706,7 @@ The classes cl_RA, cl_I define the following operation
      cl_boolean sqrtp (const type& x, type* root)
      - + This tests whether x is a perfect square. If so, it returns true and the exact square root in *root, else it returns false. @@ -1679,7 +1719,7 @@ Furthermore, for integers, similarly:
      cl_boolean isqrt (const type& x, type* root)
      - + x should be >= 0. This function sets *root to floor(sqrt(x)) and returns the same value as sqrtp: the boolean value (expt(*root,2) == x). @@ -1694,7 +1734,7 @@ define the following operation:
      cl_boolean rootp (const type& x, const cl_I& n, type* root)
      - + x must be >= 0. n must be > 0. This tests whether x is an nth power of a rational number. If so, it returns true and the exact root in *root, else it returns @@ -1710,7 +1750,7 @@ for class cl_N:
      cl_N sqrt (const cl_N& z)
      - + Returns the square root of z, as defined by the formula sqrt(z) = exp(log(z)/2). Conversion to a floating-point type or to a complex number are done if necessary. The range of the result is the @@ -1722,9 +1762,9 @@ The result is an exact number only if z is an exact number. -

      4.8 Transcendental functions

      +

      4.8 Transcendental functions

      - +

      @@ -1736,13 +1776,13 @@ For example, cos(0) = 1 returns the rational number 1. -

      4.8.1 Exponential and logarithmic functions

      +

      4.8.1 Exponential and logarithmic functions

      cl_R exp (const cl_R& x)
      - +
      cl_N exp (const cl_N& x)
      Returns the exponential function of x. This is e^x where @@ -1751,12 +1791,12 @@ is the entire complex plane excluding 0.
      cl_R ln (const cl_R& x)
      - + x must be > 0. Returns the (natural) logarithm of x.
      cl_N log (const cl_N& x)
      - + Returns the (natural) logarithm of x. If x is real and positive, this is ln(x). In general, log(x) = log(abs(x)) + i*phase(x). The range of the result is the strip in the complex plane @@ -1764,7 +1804,7 @@ The range of the result is the strip in the complex plane
      cl_R phase (const cl_N& x)
      - + Returns the angle part of x in its polar representation as a complex number. That is, phase(x) = atan(realpart(x),imagpart(x)). This is also the imaginary part of log(x). @@ -1786,7 +1826,7 @@ Returns the logarithm of a with respect to base b.
      cl_N expt (const cl_N& x, const cl_N& y)
      - + Exponentiation: Returns x^y = exp(y*log(x)).
      @@ -1798,7 +1838,7 @@ The constant e = exp(1) = 2.71828... is returned by the following functions:
      cl_F cl_exp1 (cl_float_format_t f)
      - + Returns e as a float of format f.
      cl_F cl_exp1 (const cl_F& y) @@ -1812,13 +1852,13 @@ Returns e as a float of format cl_default_float_format. -

      4.8.2 Trigonometric functions

      +

      4.8.2 Trigonometric functions

      cl_R sin (const cl_R& x)
      - + Returns sin(x). The range of the result is the interval -1 <= sin(x) <= 1. @@ -1828,7 +1868,7 @@ Returns sin(z). The range of the result is the entire complex plane
      cl_R cos (const cl_R& x)
      - + Returns cos(x). The range of the result is the interval -1 <= cos(x) <= 1. @@ -1838,31 +1878,31 @@ Returns cos(z). The range of the result is the entire complex plane
      struct cl_cos_sin_t { cl_R cos; cl_R sin; };
      - +
      cl_cos_sin_t cl_cos_sin (const cl_R& x)
      Returns both sin(x) and cos(x). This is more efficient than - + computing them separately. The relation cos^2 + sin^2 = 1 will hold only approximately.
      cl_R tan (const cl_R& x)
      - +
      cl_N tan (const cl_N& x)
      Returns tan(x) = sin(x)/cos(x).
      cl_N cis (const cl_R& x)
      - +
      cl_N cis (const cl_N& x)
      Returns exp(i*x). The name `cis' means "cos + i sin", because e^(i*x) = cos(x) + i*sin(x). - - + +
      cl_N asin (const cl_N& z)
      Returns arcsin(z). This is defined as @@ -1875,7 +1915,7 @@ with realpart = pi/2 and imagpart > 0.
      cl_N acos (const cl_N& z)
      - + Returns arccos(z). This is defined as arccos(z) = pi/2 - arcsin(z) = log(z+i*sqrt(1-z^2))/i and satisfies arccos(-z) = pi - arccos(z). @@ -1884,8 +1924,8 @@ The range of the result is the strip in the complex domain with realpart = 0 and imagpart < 0 and the numbers with realpart = pi and imagpart > 0. - - + +
      cl_R atan (const cl_R& x, const cl_R& y)
      Returns the angle of the polar representation of the complex number @@ -1914,8 +1954,8 @@ with realpart = pi/2 and imagpart <= 0.

      - - + + Archimedes' constant pi = 3.14... is returned by the following functions: @@ -1923,7 +1963,7 @@ Archimedes' constant pi = 3.14... is returned by the following functions:

      cl_F cl_pi (cl_float_format_t f)
      - + Returns pi as a float of format f.
      cl_F cl_pi (const cl_F& y) @@ -1937,13 +1977,13 @@ Returns pi as a float of format cl_default_float_format. -

      4.8.3 Hyperbolic functions

      +

      4.8.3 Hyperbolic functions

      cl_R sinh (const cl_R& x)
      - + Returns sinh(x).
      cl_N sinh (const cl_N& z) @@ -1952,7 +1992,7 @@ Returns sinh(z). The range of the result is the entire complex plan
      cl_R cosh (const cl_R& x)
      - + Returns cosh(x). The range of the result is the interval cosh(x) >= 1. @@ -1962,24 +2002,24 @@ Returns cosh(z). The range of the result is the entire complex plan
      struct cl_cosh_sinh_t { cl_R cosh; cl_R sinh; };
      - +
      cl_cosh_sinh_t cl_cosh_sinh (const cl_R& x)
      - + Returns both sinh(x) and cosh(x). This is more efficient than computing them separately. The relation cosh^2 - sinh^2 = 1 will hold only approximately.
      cl_R tanh (const cl_R& x)
      - +
      cl_N tanh (const cl_N& x)
      Returns tanh(x) = sinh(x)/cosh(x).
      cl_N asinh (const cl_N& z)
      - + Returns arsinh(z). This is defined as arsinh(z) = log(z+sqrt(1+z^2)) and satisfies arsinh(-z) = -arsinh(z). @@ -1990,7 +2030,7 @@ with imagpart = pi/2 and realpart < 0.
      cl_N acosh (const cl_N& z)
      - + Returns arcosh(z). This is defined as arcosh(z) = 2*log(sqrt((z+1)/2)+sqrt((z-1)/2)). The range of the result is the half-strip in the complex domain @@ -1999,7 +2039,7 @@ excluding the numbers with realpart = 0 and -pi < imagpar
      cl_N atanh (const cl_N& z)
      - + Returns artanh(z). This is defined as artanh(z) = (log(1+z)-log(1-z)) / 2 and satisfies artanh(-z) = -artanh(z). The range of the result is @@ -2011,9 +2051,9 @@ with imagpart = pi/2 and realpart >= 0. -

      4.8.4 Euler gamma

      +

      4.8.4 Euler gamma

      - +

      @@ -2024,7 +2064,7 @@ Euler's constant C = 0.577... is returned by the following functions:

      cl_F cl_eulerconst (cl_float_format_t f)
      - + Returns Euler's constant as a float of format f.
      cl_F cl_eulerconst (const cl_F& y) @@ -2038,14 +2078,14 @@ Returns Euler's constant as a float of format cl_default_float_format Catalan's constant G = 0.915... is returned by the following functions: - +
      cl_F cl_catalanconst (cl_float_format_t f)
      - + Returns Catalan's constant as a float of format f.
      cl_F cl_catalanconst (const cl_F& y) @@ -2059,9 +2099,9 @@ Returns Catalan's constant as a float of format cl_default_float_format4.8.5 Riemann zeta +

      4.8.5 Riemann zeta

      - +

      @@ -2073,7 +2113,7 @@ following functions:

      cl_F cl_zeta (int s, cl_float_format_t f)
      - + Returns Riemann's zeta function at s as a float of format f.
      cl_F cl_zeta (int s, const cl_F& y) @@ -2088,11 +2128,11 @@ Returns Riemann's zeta function at s as a float of format -

      4.9 Functions on integers

      +

      4.9 Functions on integers

      -

      4.9.1 Logical functions

      +

      4.9.1 Logical functions

      Integers, when viewed as in two's complement notation, can be thought as @@ -2113,69 +2153,69 @@ on each of the bit positions in parallel.

      cl_I lognot (const cl_I& x)
      - +
      cl_I operator ~ (const cl_I& x)
      - + Logical not, like ~x in C. This is the same as -1-x.
      cl_I logand (const cl_I& x, const cl_I& y)
      - +
      cl_I operator & (const cl_I& x, const cl_I& y)
      - + Logical and, like x & y in C.
      cl_I logior (const cl_I& x, const cl_I& y)
      - +
      cl_I operator | (const cl_I& x, const cl_I& y)
      - + Logical (inclusive) or, like x | y in C.
      cl_I logxor (const cl_I& x, const cl_I& y)
      - +
      cl_I operator ^ (const cl_I& x, const cl_I& y)
      - + Exclusive or, like x ^ y in C.
      cl_I logeqv (const cl_I& x, const cl_I& y)
      - + Bitwise equivalence, like ~(x ^ y) in C.
      cl_I lognand (const cl_I& x, const cl_I& y)
      - + Bitwise not and, like ~(x & y) in C.
      cl_I lognor (const cl_I& x, const cl_I& y)
      - + Bitwise not or, like ~(x | y) in C.
      cl_I logandc1 (const cl_I& x, const cl_I& y)
      - + Logical and, complementing the first argument, like ~x & y in C.
      cl_I logandc2 (const cl_I& x, const cl_I& y)
      - + Logical and, complementing the second argument, like x & ~y in C.
      cl_I logorc1 (const cl_I& x, const cl_I& y)
      - + Logical or, complementing the first argument, like ~x | y in C.
      cl_I logorc2 (const cl_I& x, const cl_I& y)
      - + Logical or, complementing the second argument, like x | ~y in C.
      @@ -2185,7 +2225,7 @@ These operations are all available though the function
      cl_I boole (cl_boole op, const cl_I& x, const cl_I& y)
      - +

      where op must have one of the 16 values (each one stands for a function @@ -2194,13 +2234,6 @@ which combines two bits into one bit): boole_clr, boole_setboole_and, boole_ior, boole_xor, boole_eqv, boole_nand, boole_nor, boole_andc1, boole_andc2, boole_orc1, boole_orc2. - - - - - - - @@ -2209,6 +2242,13 @@ which combines two bits into one bit): boole_clr, boole_set + + + + + + +

      @@ -2219,19 +2259,19 @@ Other functions that view integers as bit strings:

      cl_boolean logtest (const cl_I& x, const cl_I& y)
      - + Returns true if some bit is set in both x and y, i.e. if logand(x,y) != 0.
      cl_boolean logbitp (const cl_I& n, const cl_I& x)
      - + Returns true if the nth bit (from the right) of x is set. Bit 0 is the least significant bit.
      uintL logcount (const cl_I& x)
      - + Returns the number of one bits in x, if x >= 0, or the number of zero bits in x, if x < 0. @@ -2245,7 +2285,7 @@ struct cl_byte { uintL size; uintL position; };

      - + represents the bit interval containing the bits position...position+size-1 of an integer. The constructor cl_byte(size,position) constructs a cl_byte. @@ -2255,19 +2295,19 @@ The constructor cl_byte(size,position) constructs a cl_bytecl_I ldb (const cl_I& n, const cl_byte& b)

      - + extracts the bits of n described by the bit interval b and returns them as a nonnegative integer with b.size bits.
      cl_boolean ldb_test (const cl_I& n, const cl_byte& b)
      - + Returns true if some bit described by the bit interval b is set in n.
      cl_I dpb (const cl_I& newbyte, const cl_I& n, const cl_byte& b)
      - + Returns n, with the bits described by the bit interval b replaced by newbyte. Only the lowest b.size bits of newbyte are relevant. @@ -2282,13 +2322,13 @@ functions are their counterparts without shifting:
      cl_I mask_field (const cl_I& n, const cl_byte& b)
      - + returns an integer with the bits described by the bit interval b copied from the corresponding bits in n, the other bits zero.
      cl_I deposit_field (const cl_I& newbyte, const cl_I& n, const cl_byte& b)
      - + returns an integer where the bits described by the bit interval b come from newbyte and the other bits come from n. @@ -2319,39 +2359,39 @@ for common arithmetic operations:
      cl_boolean oddp (const cl_I& x)
      - + Returns true if the least significant bit of x is 1. Equivalent to mod(x,2) != 0.
      cl_boolean evenp (const cl_I& x)
      - + Returns true if the least significant bit of x is 0. Equivalent to mod(x,2) == 0.
      cl_I operator << (const cl_I& x, const cl_I& n)
      - + Shifts x by n bits to the left. n should be >=0. Equivalent to x * expt(2,n).
      cl_I operator >> (const cl_I& x, const cl_I& n)
      - + Shifts x by n bits to the right. n should be >=0. Bits shifted out to the right are thrown away. Equivalent to floor(x / expt(2,n)).
      cl_I ash (const cl_I& x, const cl_I& y)
      - + Shifts x by y bits to the left (if y>=0) or by -y bits to the right (if y<=0). In other words, this returns floor(x * expt(2,y)).
      uintL integer_length (const cl_I& x)
      - + Returns the number of bits (excluding the sign bit) needed to represent x in two's complement notation. This is the smallest n >= 0 such that -2^n <= x < 2^n. If x > 0, this is the unique n > 0 such that @@ -2359,14 +2399,14 @@ in two's complement notation. This is the smallest n >= 0 such that
      uintL ord2 (const cl_I& x)
      - + x must be non-zero. This function returns the number of 0 bits at the right of x in two's complement notation. This is the largest n >= 0 such that 2^n divides x.
      uintL power2p (const cl_I& x)
      - + x must be > 0. This function checks whether x is a power of 2. If x = 2^(n-1), it returns n. Else it returns 0. (See also the function logp.) @@ -2374,13 +2414,13 @@ If x = 2^(n-1), it returns n. Else it returns 0. -

      4.9.2 Number theoretic functions

      +

      4.9.2 Number theoretic functions

      uint32 gcd (uint32 a, uint32 b)
      - +
      cl_I gcd (const cl_I& a, const cl_I& b)
      This function returns the greatest common divisor of a and b, @@ -2388,7 +2428,7 @@ normalized to be >= 0.
      cl_I xgcd (const cl_I& a, const cl_I& b, cl_I* u, cl_I* v)
      - + This function ("extended gcd") returns the greatest common divisor g of a and b and at the same time the representation of g as an integral linear combination of a and b: @@ -2400,13 +2440,13 @@ value, in the following sense: If a and b are non-zero
      cl_I lcm (const cl_I& a, const cl_I& b)
      - + This function returns the least common multiple of a and b, normalized to be >= 0.
      cl_boolean logp (const cl_I& a, const cl_I& b, cl_RA* l)
      - +
      cl_boolean logp (const cl_RA& a, const cl_RA& b, cl_RA* l)
      a must be > 0. b must be >0 and != 1. If log(a,b) is @@ -2416,26 +2456,26 @@ it returns false. -

      4.9.3 Combinatorial functions

      +

      4.9.3 Combinatorial functions

      cl_I factorial (uintL n)
      - + n must be a small integer >= 0. This function returns the factorial n! = 1*2*...*n.
      cl_I doublefactorial (uintL n)
      - + n must be a small integer >= 0. This function returns the doublefactorial n!! = 1*3*...*n or n!! = 2*4*...*n, respectively.
      cl_I binomial (uintL n, uintL k)
      - + n and k must be small integers >= 0. This function returns the binomial coefficient (n choose k) = n! / k! (n-k)! @@ -2444,7 +2484,7 @@ for 0 <= k <= n, 0 else. -

      4.10 Functions on floating-point numbers

      +

      4.10 Functions on floating-point numbers

      Recall that a floating-point number consists of a sign s, an @@ -2462,7 +2502,7 @@ defines the following operations.

      type scale_float (const type& x, sintL delta)
      - +
      type scale_float (const type& x, const cl_I& delta)
      Returns x*2^delta. This is more efficient than an explicit multiplication @@ -2478,32 +2518,32 @@ representation of floating-point numbers.
      sintL float_exponent (const type& x)
      - + Returns the exponent e of x. For x = 0.0, this is 0. For x non-zero, this is the unique integer with 2^(e-1) <= abs(x) < 2^e.
      sintL float_radix (const type& x)
      - + Returns the base of the floating-point representation. This is always 2.
      type float_sign (const type& x)
      - + Returns the sign s of x as a float. The value is 1 for x >= 0, -1 for x < 0.
      uintL float_digits (const type& x)
      - + Returns the number of mantissa bits in the floating-point representation of x, including the hidden bit. The value only depends on the type of x, not on its value.
      uintL float_precision (const type& x)
      - + Returns the number of significant mantissa bits in the floating-point representation of x. Since denormalized numbers are not supported, this is the same as float_digits(x) if x is non-zero, and @@ -2512,11 +2552,11 @@ this is the same as float_digits(x) if x is non-zero,

      The complete internal representation of a float is encoded in the type - - - - - + + + + + cl_decoded_float (or cl_decoded_sfloat, cl_decoded_ffloat, cl_decoded_dfloat, cl_decoded_lfloat, respectively), defined by @@ -2534,7 +2574,7 @@ and returned by the function

      cl_decoded_typefloat decode_float (const type& x)
      - + For x non-zero, this returns (-1)^s, e, m with x = (-1)^s * 2^e * m and 0.5 <= m < 1.0. For x = 0, it returns (-1)^s=1, e=0, m=0. @@ -2545,7 +2585,7 @@ it returns (-1)^s=1, e=0, m=0. A complete decoding in terms of integers is provided as type
      -struct cl_idecoded_float {
      +struct cl_idecoded_float {
               cl_I mantissa; cl_I exponent; cl_I sign;
       };
       
      @@ -2558,7 +2598,7 @@ by the following function:
      cl_idecoded_float integer_decode_float (const type& x)
      - + For x non-zero, this returns (-1)^s, e, m with x = (-1)^s * 2^e * m and m an integer with float_digits(x) bits. For x = 0, it returns (-1)^s=1, e=0, m=0. @@ -2574,7 +2614,7 @@ Some other function, implemented only for class cl_F:
      cl_F float_sign (const cl_F& x, const cl_F& y)
      - + This returns a floating point number whose precision and absolute value is that of y and whose sign is that of x. If x is zero, it is treated as positive. Same for y. @@ -2582,24 +2622,25 @@ zero, it is treated as positive. Same for y. -

      4.11 Conversion functions

      +

      4.11 Conversion functions

      - + -

      4.11.1 Conversion to floating-point numbers

      +

      4.11.1 Conversion to floating-point numbers

      The type cl_float_format_t describes a floating-point format. +

      cl_float_format_t cl_float_format (uintL n)
      - + Returns the smallest float format which guarantees at least n decimal digits in the mantissa (after the decimal point). @@ -2609,7 +2650,7 @@ Returns the floating point format of x.
      cl_float_format_t cl_default_float_format
      - + Global variable: the default float format used when converting rational numbers to floats.
      @@ -2625,7 +2666,7 @@ defines the following operations:
      cl_F cl_float (const type&x, cl_float_format_t f)
      - + Returns x as a float of format f.
      cl_F cl_float (const type&x, const cl_F& y)
      @@ -2648,40 +2689,40 @@ Every floating-point format has some characteristic numbers:
      cl_F most_positive_float (cl_float_format_t f)
      - + Returns the largest (most positive) floating point number in float format f.
      cl_F most_negative_float (cl_float_format_t f)
      - + Returns the smallest (most negative) floating point number in float format f.
      cl_F least_positive_float (cl_float_format_t f)
      - + Returns the least positive floating point number (i.e. > 0 but closest to 0) in float format f.
      cl_F least_negative_float (cl_float_format_t f)
      - + Returns the least negative floating point number (i.e. < 0 but closest to 0) in float format f.
      cl_F float_epsilon (cl_float_format_t f)
      - + Returns the smallest floating point number e > 0 such that 1+e != 1.
      cl_F float_negative_epsilon (cl_float_format_t f)
      - + Returns the smallest floating point number e > 0 such that 1-e != 1.
      -

      4.11.2 Conversion to rational numbers

      +

      4.11.2 Conversion to rational numbers

      Each of the classes cl_R, cl_RA, cl_F @@ -2692,7 +2733,7 @@ defines the following operation:

      cl_RA rational (const type& x)
      - + Returns the value of x as an exact number. If x is already an exact number, this is x. If x is a floating-point number, the value is a rational number whose denominator is a power of 2. @@ -2707,7 +2748,7 @@ the function
      cl_RA rationalize (const cl_R& x)
      - + If x is a floating-point number, it actually represents an interval of real numbers, and this function returns the rational number with smallest denominator (and smallest numerator, in magnitude) @@ -2731,7 +2772,7 @@ If x is any float, one has -

      4.12 Random number generators

      +

      4.12 Random number generators

      A random generator is a machine which produces (pseudo-)random numbers. @@ -2749,7 +2790,8 @@ a complicated but deterministic way.

      The global variable - + +

       cl_random_state cl_default_random_state
      @@ -2766,14 +2808,14 @@ below are called without cl_random_state argument.
       
      uint32 random32 ()
      - + Returns a random unsigned 32-bit number. All bits are equally random.
      cl_I random_I (cl_random_state& randomstate, const cl_I& n)
      cl_I random_I (const cl_I& n)
      - + n must be an integer > 0. This function returns a random integer x in the range 0 <= x < n. @@ -2781,7 +2823,7 @@ in the range 0 <= x < n.
      cl_F random_F (const cl_F& n)
      - + n must be a float > 0. This function returns a random floating-point number of the same format as n in the range 0 <= x < n. @@ -2789,16 +2831,16 @@ number of the same format as n in the range 0 <= x <
      cl_R random_R (const cl_R& n)
      - + Behaves like random_I if n is an integer and like random_F if n is a float.
      -

      4.13 Obfuscating operators

      +

      4.13 Obfuscating operators

      - +

      @@ -2814,7 +2856,7 @@ to get happy, then add

      - + to the beginning of your source files, before the inclusion of any CLN include files. This flag will enable the following operators: @@ -2828,16 +2870,16 @@ For the classes cl_N, cl_R, cl_RA,

      type& operator += (type&, const type&)
      - +
      type& operator -= (type&, const type&)
      - +
      type& operator *= (type&, const type&)
      - +
      type& operator /= (type&, const type&)
      - +

      @@ -2854,19 +2896,19 @@ For the class cl_I:

      type& operator &= (type&, const type&)
      - +
      type& operator |= (type&, const type&)
      - +
      type& operator ^= (type&, const type&)
      - +
      type& operator <<= (type&, const type&)
      - +
      type& operator >>= (type&, const type&)
      - +

      @@ -2878,7 +2920,7 @@ For the classes cl_N, cl_R, cl_RA,

      type& operator ++ (type& x)
      - + The prefix operator ++x.
      void operator ++ (type& x, int) @@ -2887,7 +2929,7 @@ The postfix operator x++.
      type& operator -- (type& x)
      - + The prefix operator --x.
      void operator -- (type& x, int) @@ -2903,16 +2945,16 @@ efficient. -

      5. Input/Output

      +

      5. Input/Output

      - + -

      5.1 Internal and printed representation

      +

      5.1 Internal and printed representation

      - +

      @@ -2927,9 +2969,9 @@ Several external representations may denote the same number, for example,

      Converting an internal to an external representation is called "printing", - + converting an external to an internal representation is called "reading". - + In CLN, it is always true that conversion of an internal to an external representation and then back to an internal representation will yield the same internal representation. Symbolically: read(print(x)) == x. @@ -3009,7 +3051,7 @@ In Common Lisp notation: #C(realpart imagpart)5.2 Input functions +

      5.2 Input functions

      Including <cl_io.h> defines a type cl_istream, which is @@ -3161,7 +3203,7 @@ precision corresponding to their number of significant digits. -

      5.3 Output functions

      +

      5.3 Output functions

      Including <cl_io.h> defines a type cl_ostream, which is @@ -3316,7 +3358,7 @@ used by the function fprint. -

      6. Rings

      +

      6. Rings

      CLN has a class of abstract rings. @@ -3415,16 +3457,16 @@ Tests whether the given number is an element of the number ring R. -

      7. Modular integers

      +

      7. Modular integers

      - + -

      7.1 Modular integer rings

      +

      7.1 Modular integer rings

      - +

      @@ -3452,6 +3494,10 @@ The class of modular integer rings is <cl_modinteger.h> +

      + + +

      and the class of all modular integers (elements of modular integer rings) is @@ -3471,11 +3517,11 @@ Modular integer rings are constructed using the function

      cl_modint_ring cl_find_modint_ring (const cl_I& N)
      - + This function returns the modular ring `Z/NZ'. It takes care of finding out about special cases of N, like powers of two and odd numbers for which Montgomery multiplication will be a win, - + and precomputes any necessary auxiliary data for computing modulo N. There is a cache table of rings, indexed by N (or, more precisely, by abs(N)). This ensures that the precomputation costs are reduced @@ -3490,10 +3536,10 @@ Modular integer rings can be compared for equality:
      bool operator== (const cl_modint_ring&, const cl_modint_ring&)
      - +
      bool operator!= (const cl_modint_ring&, const cl_modint_ring&)
      - + These compare two modular integer rings for equality. Two different calls to cl_find_modint_ring with the same argument necessarily return the same ring because it is memoized in the cache table. @@ -3501,7 +3547,7 @@ same ring because it is memoized in the cache table. -

      7.2 Functions on modular integers

      +

      7.2 Functions on modular integers

      Given a modular integer ring R, the following members can be used. @@ -3511,27 +3557,27 @@ Given a modular integer ring R, the following members can be used.

      cl_I R->modulus
      - + This is the ring's modulus, normalized to be nonnegative: abs(N).
      cl_MI R->zero()
      - + This returns 0 mod N.
      cl_MI R->one()
      - + This returns 1 mod N.
      cl_MI R->canonhom (const cl_I& x)
      - + This returns x mod N.
      cl_I R->retract (const cl_MI& x)
      - + This is a partial inverse function to R->canonhom. It returns the standard representative (>=0, <N) of x. @@ -3539,7 +3585,7 @@ standard representative (>=0, <N) of x
      cl_MI R->random()
      - + This returns a random integer modulo N. @@ -3551,18 +3597,18 @@ The following operations are defined on modular integers.
      cl_modint_ring x.ring ()
      - + Returns the ring to which the modular integer x belongs.
      cl_MI operator+ (const cl_MI&, const cl_MI&)
      - + Returns the sum of two modular integers. One of the arguments may also be a plain integer.
      cl_MI operator- (const cl_MI&, const cl_MI&)
      - + Returns the difference of two modular integers. One of the arguments may also be a plain integer. @@ -3572,61 +3618,61 @@ Returns the negative of a modular integer.
      cl_MI operator* (const cl_MI&, const cl_MI&)
      - + Returns the product of two modular integers. One of the arguments may also be a plain integer.
      cl_MI square (const cl_MI&)
      - + Returns the square of a modular integer.
      cl_MI recip (const cl_MI& x)
      - + Returns the reciprocal x^-1 of a modular integer x. x must be coprime to the modulus, otherwise an error message is issued.
      cl_MI div (const cl_MI& x, const cl_MI& y)
      - + Returns the quotient x*y^-1 of two modular integers x, y. y must be coprime to the modulus, otherwise an error message is issued.
      cl_MI expt_pos (const cl_MI& x, const cl_I& y)
      - + y must be > 0. Returns x^y.
      cl_MI expt (const cl_MI& x, const cl_I& y)
      - + Returns x^y. If y is negative, x must be coprime to the modulus, else an error message is issued.
      cl_MI operator<< (const cl_MI& x, const cl_I& y)
      - + Returns x*2^y.
      cl_MI operator>> (const cl_MI& x, const cl_I& y)
      - + Returns x*2^-y. When y is positive, the modulus must be odd, or an error message is issued.
      bool operator== (const cl_MI&, const cl_MI&)
      - +
      bool operator!= (const cl_MI&, const cl_MI&)
      - + Compares two modular integers, belonging to the same modular integer ring, for equality.
      cl_boolean zerop (const cl_MI& x)
      - + Returns true if x is 0 mod N. @@ -3639,19 +3685,19 @@ input/output).
      void fprint (cl_ostream stream, const cl_MI& x)
      - +
      cl_ostream operator<< (cl_ostream stream, const cl_MI& x)
      - + Prints the modular integer x on the stream. The output may depend on the global printer settings in the variable cl_default_print_flags. -

      8. Symbolic data types

      +

      8. Symbolic data types

      - +

      @@ -3660,9 +3706,9 @@ CLN implements two symbolic (non-numeric) data types: strings and symbols. -

      8.1 Strings

      +

      8.1 Strings

      - +

      @@ -3688,7 +3734,7 @@ Strings are constructed through the following constructors:

      cl_string (const char * s)
      - + Returns an immutable copy of the (zero-terminated) C string s.
      cl_string (const char * ptr, unsigned long len) @@ -3709,30 +3755,30 @@ Assignment from cl_string and const char *.
      s.length()
      - +
      strlen(s)
      - + Returns the length of the string s.
      s[i]
      - + Returns the ith character of the string s. i must be in the range 0 <= i < s.length().
      bool equal (const cl_string& s1, const cl_string& s2)
      - + Compares two strings for equality. One of the arguments may also be a plain const char *. -

      8.2 Symbols

      +

      8.2 Symbols

      - +

      @@ -3752,7 +3798,7 @@ Symbols are constructed through the following constructor:

      cl_symbol (const cl_string& s)
      - + Looks up or creates a new symbol with a given name. @@ -3769,21 +3815,21 @@ Conversion to cl_string: Returns the string which names the symbol
      bool equal (const cl_symbol& sym1, const cl_symbol& sym2)
      - + Compares two symbols for equality. This is very fast. -

      9. Univariate polynomials

      +

      9. Univariate polynomials

      - - + + -

      9.1 Univariate polynomial rings

      +

      9.1 Univariate polynomial rings

      CLN implements univariate polynomials (polynomials in one variable) over an @@ -3891,7 +3937,7 @@ return the same polynomial ring.

      cl_univpoly_complex_ring cl_find_univpoly_ring (const cl_complex_ring& R)
      - +
      cl_univpoly_complex_ring cl_find_univpoly_ring (const cl_complex_ring& R, const cl_symbol& varname)
      cl_univpoly_real_ring cl_find_univpoly_ring (const cl_real_ring& R) @@ -3916,7 +3962,7 @@ only the return type is more specific, according to the base ring's type. -

      9.2 Functions on univariate polynomials

      +

      9.2 Functions on univariate polynomials

      Given a univariate polynomial ring R, the following members can be used. @@ -3926,33 +3972,33 @@ Given a univariate polynomial ring R, the following members can be

      cl_ring R->basering()
      - + This returns the base ring, as passed to `cl_find_univpoly_ring'.
      cl_UP R->zero()
      - + This returns 0 in R, a polynomial of degree -1.
      cl_UP R->one()
      - + This returns 1 in R, a polynomial of degree <= 0.
      cl_UP R->canonhom (const cl_I& x)
      - + This returns x in R, a polynomial of degree <= 0.
      cl_UP R->monomial (const cl_ring_element& x, uintL e)
      - + This returns a sparse polynomial: x * X^e, where X is the indeterminate.
      cl_UP R->create (sintL degree)
      - + Creates a new polynomial with a given degree. The zero polynomial has degree -1. After creating the polynomial, you should put in the coefficients, using the set_coeff member function, and then call the finalize @@ -3967,14 +4013,14 @@ The following are the only destructive operations on univariate polynomials.
      void set_coeff (cl_UP& x, uintL index, const cl_ring_element& y)
      - + This changes the coefficient of X^index in x to be y. After changing a polynomial and before applying any "normal" operation on it, you should call its finalize member function.
      void finalize (cl_UP& x)
      - + This function marks the endpoint of destructive modifications of a polynomial. It normalizes the internal representation so that subsequent computations have less overhead. Doing normal computations on unnormalized polynomials may @@ -3989,17 +4035,17 @@ The following operations are defined on univariate polynomials.
      cl_univpoly_ring x.ring ()
      - + Returns the ring to which the univariate polynomial x belongs.
      cl_UP operator+ (const cl_UP&, const cl_UP&)
      - + Returns the sum of two univariate polynomials.
      cl_UP operator- (const cl_UP&, const cl_UP&)
      - + Returns the difference of two univariate polynomials.
      cl_UP operator- (const cl_UP&) @@ -4008,54 +4054,54 @@ Returns the negative of a univariate polynomial.
      cl_UP operator* (const cl_UP&, const cl_UP&)
      - + Returns the product of two univariate polynomials. One of the arguments may also be a plain integer or an element of the base ring.
      cl_UP square (const cl_UP&)
      - + Returns the square of a univariate polynomial.
      cl_UP expt_pos (const cl_UP& x, const cl_I& y)
      - + y must be > 0. Returns x^y.
      bool operator== (const cl_UP&, const cl_UP&)
      - +
      bool operator!= (const cl_UP&, const cl_UP&)
      - + Compares two univariate polynomials, belonging to the same univariate polynomial ring, for equality.
      cl_boolean zerop (const cl_UP& x)
      - + Returns true if x is 0 in R.
      sintL degree (const cl_UP& x)
      - + Returns the degree of the polynomial. The zero polynomial has degree -1.
      cl_ring_element coeff (const cl_UP& x, uintL index)
      - + Returns the coefficient of X^index in the polynomial x.
      cl_ring_element x (const cl_ring_element& y)
      - + Evaluation: If x is a polynomial and y belongs to the base ring, then `x(y)' returns the value of the substitution of y into x.
      cl_UP deriv (const cl_UP& x)
      - + Returns the derivative of the polynomial x with respect to the indeterminate X. @@ -4069,10 +4115,10 @@ input/output).
      void fprint (cl_ostream stream, const cl_UP& x)
      - +
      cl_ostream operator<< (cl_ostream stream, const cl_UP& x)
      - + Prints the univariate polynomial x on the stream. The output may depend on the global printer settings in the variable cl_default_print_flags. @@ -4080,7 +4126,7 @@ depend on the global printer settings in the variable -

      9.3 Special polynomials

      +

      9.3 Special polynomials

      The following functions return special polynomials. @@ -4090,26 +4136,26 @@ The following functions return special polynomials.

      cl_UP_I cl_tschebychev (sintL n)
      - - + + Returns the n-th Tchebychev polynomial (n >= 0).
      cl_UP_I cl_hermite (sintL n)
      - - + + Returns the n-th Hermite polynomial (n >= 0).
      cl_UP_RA cl_legendre (sintL n)
      - - + + Returns the n-th Legendre polynomial (n >= 0).
      cl_UP_I cl_laguerre (sintL n)
      - - + + Returns the n-th Laguerre polynomial (n >= 0). @@ -4121,13 +4167,13 @@ of these polynomials from their definition can be found in the -

      10. Internals

      +

      10. Internals

      -

      10.1 Why C++ ?

      +

      10.1 Why C++ ?

      - +

      @@ -4142,7 +4188,7 @@ Efficiency: It compiles to machine code.

    • - + Portability: It runs on all platforms supporting a C++ compiler. Because of the availability of GNU C++, this includes all currently used 32-bit and 64-bit platforms, independently of the quality of the vendor's C++ compiler. @@ -4174,7 +4220,7 @@ in a high-level language. -

      10.2 Memory efficiency

      +

      10.2 Memory efficiency

      In order to save memory allocations, CLN implements: @@ -4188,8 +4234,8 @@ Object sharing: An operation like x+0 returns x withou it.

    • - - + + Garbage collection: A reference counting mechanism makes sure that any number object's storage is freed immediately when the last reference to the object is gone. @@ -4203,7 +4249,7 @@ on the heap. -

      10.3 Speed efficiency

      +

      10.3 Speed efficiency

      Speed efficiency is obtained by the combination of the following tricks @@ -4234,9 +4280,9 @@ algorithm. For very large numbers (more than 12000 decimal digits), CLN uses Schönhage-Strassen - -multiplication, which is an asymptotically -optimal multiplication algorithm. + +multiplication, which is an asymptotically optimal multiplication +algorithm.

    • These fast multiplication algorithms also give improvements in the speed @@ -4245,9 +4291,9 @@ of division and radix conversion. -

      10.4 Garbage collection

      +

      10.4 Garbage collection

      - +

      @@ -4271,7 +4317,7 @@ cached, whereas undue memory consumption through cached rings is avoided. -

      11. Using the library

      +

      11. Using the library

      For the following discussion, we will assume that you have installed @@ -4283,9 +4329,9 @@ environment variables, or directly substitute the appropriate values. -

      11.1 Compiler options

      +

      11.1 Compiler options

      - +

      @@ -4322,10 +4368,10 @@ linking a CLN application it is sufficient to give the flag -lcln. -

      11.2 Include files

      +

      11.2 Include files

      - - + +

      @@ -4518,11 +4564,11 @@ Includes all of the above. -

      11.3 An Example

      +

      11.3 An Example

      A function which computes the nth Fibonacci number can be written as follows. - + @@ -4606,9 +4652,9 @@ contains this implementation together with an even faster algorithm. -

      11.4 Debugging support

      +

      11.4 Debugging support

      - +

      @@ -4642,7 +4688,7 @@ CLN offers a function cl_print, callable from the debugger, for printing number objects. In order to get this function, you have to define the macro `CL_DEBUG' and then include all the header files for which you want cl_print debugging support. For example: - +

       #define CL_DEBUG
      @@ -4669,7 +4715,7 @@ only with number objects and similar. Therefore CLN offers a member function
       debug_print() on all CLN types. The same macro `CL_DEBUG'
       is needed for this member function to be implemented. Under gdb,
       you call it like this:
      -
      +
       
       
       (gdb) print s
      @@ -4689,14 +4735,14 @@ Unfortunately, this feature does not seem to work under all circumstances.
       
       
       
      -

      12. Customizing

      +

      12. Customizing

      - + -

      12.1 Error handling

      +

      12.1 Error handling

      When a fatal error occurs, an error message is output to the standard error @@ -4711,15 +4757,15 @@ void cl_abort (void);

      - + This function must not return control to its caller. -

      12.2 Floating-point underflow

      +

      12.2 Floating-point underflow

      - +

      @@ -4740,17 +4786,17 @@ will be generated instead. The default value of -

      12.3 Customizing I/O

      +

      12.3 Customizing I/O

      The output of the function fprint may be customized by changing the value of the global variable cl_default_print_flags. - + -

      12.4 Customizing the memory allocator

      +

      12.4 Customizing the memory allocator

      Every memory allocation of CLN is done through the function pointer @@ -4769,8 +4815,8 @@ void (*cl_free_hook) (void* ptr) = ...;

      - - + + The cl_malloc_hook function must not return a NULL pointer. @@ -4782,7 +4828,7 @@ global variables. -

      Index

      +

      Index

      Jump to: @@ -4790,7 +4836,7 @@ Jump to:


      -This document was generated on 4 May 2000 using +This document was generated on 5 May 2000 using texi2html 1.56k. diff --git a/doc/cln.info b/doc/cln.info index 2adcbc2..0729cfe 100644 --- a/doc/cln.info +++ b/doc/cln.info @@ -1,5 +1,4 @@ -This is Info file cln.info, produced by Makeinfo version 1.68 from the -input file cln.texi. +This is cln.info, produced by makeinfo version 4.0 from cln.texi. This file documents CLN, a Class Library for Numbers. @@ -41,7 +40,8 @@ File: cln.info, Node: Top, Next: Introduction, Prev: (dir), Up: (dir) * Customizing:: * Index:: - -- The Detailed Node Listing -- + + --- The Detailed Node Listing --- Installation @@ -56,6 +56,10 @@ Prerequisites * Make utility:: * Sed utility:: +Building the library + +* Using the GNU MP Library:: + Ordinary number types * Exact numbers:: @@ -384,6 +388,30 @@ If you use `g++' version egcs-2.91.x (egcs-1.1) on Sparc, you cannot use `--enable-shared' because `g++' would miscompile parts of the library. +* Menu: + +* Using the GNU MP Library:: + + +File: cln.info, Node: Using the GNU MP Library, Prev: Building the library, Up: Building the library + +Using the GNU MP Library +------------------------ + +Starting with version 1.0.4, CLN may be configured to make use of a +preinstalled `gmp' library. Please make sure that you have at least +`gmp' version 3.0 installed since earlier versions are unsupported and +likely not to work. Enabling this feature by calling `configure' with +the option `--with-gmp' is known to be quite a boost for CLN's +performance. + +If you have installed the `gmp' library and its header file in some +place where your compiler cannot find it by default, you must help +`configure' by setting `CPPFLAGS' and `LDFLAGS'. Here is an example: + + $ CC="gcc" CFLAGS="-O2" CXX="g++" CXXFLAGS="-O2 -fno-exceptions" \ + CPPFLAGS="-I/opt/gmp/include" LDFLAGS="-L/opt/gmp/lib" ./configure --with-gmp +  File: cln.info, Node: Installing the library, Next: Cleaning up, Prev: Building the library, Up: Installation @@ -812,7 +840,7 @@ Each of the classes `cl_N', `cl_R', `cl_RA', `cl_F', `cl_SF', `cl_FF', The class `cl_I' doesn't define a `/' operation because in the C/C++ language this operator, applied to integral types, denotes the `floor' or `truncate' operation (which one of these, is implementation -dependent). (*Note Rounding functions::) Instead, `cl_I' defines an +dependent). (*Note Rounding functions::.) Instead, `cl_I' defines an "exact quotient" function: `cl_I exquo (const cl_I& x, const cl_I& y)' @@ -2002,7 +2030,8 @@ with the macro CL_IO_STDIO being defined, `cl_istream' is the same as `istream&'. The variable - `cl_istream cl_stdin' contains the standard input stream. + `cl_istream cl_stdin' +contains the standard input stream. These are the simple input functions: @@ -2102,10 +2131,12 @@ CLN with the macro CL_IO_STDIO being defined, `cl_ostream' is the same as `ostream&'. The variable - `cl_ostream cl_stdout' contains the standard output stream. + `cl_ostream cl_stdout' +contains the standard output stream. The variable - `cl_ostream cl_stderr' contains the standard error output stream. + `cl_ostream cl_stderr' +contains the standard error output stream. These are the simple output functions: @@ -3282,7 +3313,7 @@ Index * acosh (): Hyperbolic functions. * advocacy: Why C++ ?. * Archimedes' constant: Trigonometric functions. -* As() (): Conversions. +* As()(): Conversions. * ash (): Logical functions. * asin: Trigonometric functions. * asin (): Trigonometric functions. @@ -3332,17 +3363,21 @@ Index * cl_default_print_flags: Customizing I/O. * cl_default_random_state: Random number generators. * cl_DF: Floating-point numbers. +* cl_DF_fdiv_t: Rounding functions. * cl_double_approx (): Conversions. * cl_equal_hashcode (): Comparisons. * cl_eulerconst (): Euler gamma. * cl_F <1>: Floating-point numbers. * cl_F: Ordinary number types. +* cl_F_fdiv_t: Rounding functions. * cl_FF: Floating-point numbers. +* cl_FF_fdiv_t: Rounding functions. * cl_find_modint_ring (): Modular integer rings. * cl_find_univpoly_ring (): Univariate polynomial rings. -* cl_float: Conversion to floating-point numbers. +* cl_float (): Conversion to floating-point numbers. * cl_float_approx (): Conversions. * cl_float_format (): Conversion to floating-point numbers. +* cl_float_format_t: Conversion to floating-point numbers. * cl_free_hook (): Customizing the memory allocator. * cl_hermite (): Special polynomials. * cl_I_to_int (): Conversions. @@ -3353,13 +3388,18 @@ Index * cl_laguerre (): Special polynomials. * cl_legendre (): Special polynomials. * cl_LF: Floating-point numbers. +* cl_LF_fdiv_t: Rounding functions. * cl_malloc_hook (): Customizing the memory allocator. +* cl_modint_ring: Modular integer rings. * cl_N: Ordinary number types. * cl_number: Ordinary number types. -* cl_pi: Trigonometric functions. +* cl_pi (): Trigonometric functions. * cl_R: Ordinary number types. +* cl_R_fdiv_t: Rounding functions. * cl_RA: Ordinary number types. +* cl_random_state: Random number generators. * cl_SF: Floating-point numbers. +* cl_SF_fdiv_t: Rounding functions. * cl_string (): Strings. * cl_symbol (): Symbols. * cl_tschebychev (): Special polynomials. @@ -3389,7 +3429,6 @@ Index * dpb (): Logical functions. * equal () <1>: Symbols. * equal (): Strings. -* etract (): Functions on modular integers. * Euler's constant: Euler gamma. * evenp (): Logical functions. * exact number: Exact numbers. @@ -3428,6 +3467,7 @@ Index * garbage collection <1>: Garbage collection. * garbage collection: Memory efficiency. * gcd (): Number theoretic functions. +* GMP <1>: Using the GNU MP Library. * GMP: Introduction. * header files: Include files. * Hermite polynomial: Special polynomials. @@ -3464,7 +3504,7 @@ Index * logp (): Number theoretic functions. * logtest (): Logical functions. * logxor (): Logical functions. -* make: C++ compiler. +* make: Make utility. * mask_field (): Logical functions. * max (): Comparisons. * min (): Comparisons. @@ -3551,10 +3591,11 @@ Index * reference counting: Memory efficiency. * rem (): Rounding functions. * representation: Internal and printed representation. +* retract (): Functions on modular integers. * Riemann's zeta: Riemann zeta. * ring: Modular integer rings. -* ring (): Functions on univariate polynomials. -* ring(): Functions on modular integers. +* ring () <1>: Functions on univariate polynomials. +* ring (): Functions on modular integers. * rootp (): Roots. * round1 (): Rounding functions. * round2 (): Rounding functions. @@ -3562,9 +3603,9 @@ Index * rounding error: Floating-point numbers. * Rubik's cube: Conversions. * scale_float (): Functions on floating-point numbers. -* Schönhage-Strassen: Speed efficiency. +* Schönhage-Strassen multiplication <1>: Speed efficiency. * Schönhage-Strassen multiplication: Introduction. -* sed: Make utility. +* sed: Sed utility. * set_coeff (): Functions on univariate polynomials. * signum (): Elementary functions. * sin (): Trigonometric functions. @@ -3580,7 +3621,7 @@ Index * symbolic type: Symbolic data types. * tan (): Trigonometric functions. * tanh (): Hyperbolic functions. -* The() (): Conversions. +* The()(): Conversions. * transcendental functions: Transcendental functions. * truncate1 (): Rounding functions. * truncate2 (): Rounding functions. @@ -3598,79 +3639,80 @@ Index  Tag Table: -Node: Top957 -Node: Introduction3124 -Node: Installation5646 -Node: Prerequisites5940 -Node: C++ compiler6138 -Node: Make utility6853 -Node: Sed utility7039 -Node: Building the library7359 -Node: Installing the library10541 -Node: Cleaning up11264 -Node: Ordinary number types11589 -Node: Exact numbers13936 -Node: Floating-point numbers15101 -Node: Complex numbers18680 -Node: Conversions19177 -Node: Functions on numbers22643 -Node: Constructing numbers23346 -Node: Constructing integers23718 -Node: Constructing rational numbers24008 -Node: Constructing floating-point numbers24483 -Node: Constructing complex numbers25603 -Node: Elementary functions25967 -Node: Elementary rational functions28434 -Node: Elementary complex functions29006 -Node: Comparisons29834 -Node: Rounding functions31733 -Node: Roots37510 -Node: Transcendental functions39391 -Node: Exponential and logarithmic functions39947 -Node: Trigonometric functions41964 -Node: Hyperbolic functions45315 -Node: Euler gamma47388 -Node: Riemann zeta48304 -Node: Functions on integers48860 -Node: Logical functions49148 -Node: Number theoretic functions55101 -Node: Combinatorial functions56468 -Node: Functions on floating-point numbers57146 -Node: Conversion functions60377 -Node: Conversion to floating-point numbers60657 -Node: Conversion to rational numbers62880 -Node: Random number generators63934 -Node: Obfuscating operators65608 -Node: Input/Output67338 -Node: Internal and printed representation67548 -Node: Input functions70090 -Node: Output functions74641 -Node: Rings78377 -Node: Modular integers80301 -Node: Modular integer rings80501 -Node: Functions on modular integers82591 -Node: Symbolic data types85601 -Node: Strings85864 -Node: Symbols86929 -Node: Univariate polynomials87831 -Node: Univariate polynomial rings88089 -Node: Functions on univariate polynomials93043 -Node: Special polynomials96824 -Node: Internals97544 -Node: Why C++ ?97758 -Node: Memory efficiency99258 -Node: Speed efficiency99956 -Node: Garbage collection101040 -Node: Using the library101867 -Node: Compiler options102401 -Node: Include files103319 -Node: An Example106960 -Node: Debugging support110110 -Node: Customizing112460 -Node: Error handling112688 -Node: Floating-point underflow113262 -Node: Customizing I/O113901 -Node: Customizing the memory allocator114194 -Node: Index115151 +Node: Top931 +Node: Introduction3153 +Node: Installation5675 +Node: Prerequisites5969 +Node: C++ compiler6167 +Node: Make utility6882 +Node: Sed utility7068 +Node: Building the library7388 +Node: Using the GNU MP Library10609 +Node: Installing the library11487 +Node: Cleaning up12210 +Node: Ordinary number types12535 +Node: Exact numbers14882 +Node: Floating-point numbers16047 +Node: Complex numbers19626 +Node: Conversions20123 +Node: Functions on numbers23589 +Node: Constructing numbers24292 +Node: Constructing integers24664 +Node: Constructing rational numbers24954 +Node: Constructing floating-point numbers25429 +Node: Constructing complex numbers26549 +Node: Elementary functions26913 +Node: Elementary rational functions29382 +Node: Elementary complex functions29954 +Node: Comparisons30782 +Node: Rounding functions32681 +Node: Roots38458 +Node: Transcendental functions40339 +Node: Exponential and logarithmic functions40895 +Node: Trigonometric functions42912 +Node: Hyperbolic functions46263 +Node: Euler gamma48336 +Node: Riemann zeta49252 +Node: Functions on integers49808 +Node: Logical functions50096 +Node: Number theoretic functions56049 +Node: Combinatorial functions57416 +Node: Functions on floating-point numbers58094 +Node: Conversion functions61325 +Node: Conversion to floating-point numbers61605 +Node: Conversion to rational numbers63828 +Node: Random number generators64882 +Node: Obfuscating operators66556 +Node: Input/Output68286 +Node: Internal and printed representation68496 +Node: Input functions71038 +Node: Output functions75589 +Node: Rings79325 +Node: Modular integers81249 +Node: Modular integer rings81449 +Node: Functions on modular integers83539 +Node: Symbolic data types86549 +Node: Strings86812 +Node: Symbols87877 +Node: Univariate polynomials88779 +Node: Univariate polynomial rings89037 +Node: Functions on univariate polynomials93991 +Node: Special polynomials97772 +Node: Internals98492 +Node: Why C++ ?98706 +Node: Memory efficiency100206 +Node: Speed efficiency100904 +Node: Garbage collection101988 +Node: Using the library102815 +Node: Compiler options103349 +Node: Include files104267 +Node: An Example107908 +Node: Debugging support111058 +Node: Customizing113408 +Node: Error handling113636 +Node: Floating-point underflow114210 +Node: Customizing I/O114849 +Node: Customizing the memory allocator115142 +Node: Index116099  End Tag Table diff --git a/doc/cln.ps b/doc/cln.ps index 1241843..1fd3583 100644 --- a/doc/cln.ps +++ b/doc/cln.ps @@ -1,7 +1,7 @@ %!PS-Adobe-2.0 %%Creator: dvips(k) 5.86 Copyright 1999 Radical Eye Software %%Title: cln.dvi -%%Pages: 74 +%%Pages: 59 %%PageOrder: Ascend %%BoundingBox: 0 0 596 842 %%EndComments @@ -9,7 +9,7 @@ %DVIPSCommandLine: /usr/local/teTeX/bin/ix86-linux-libc6/dvips -D600 -o %+ cln.ps cln.dvi %DVIPSParameters: dpi=600, compressed -%DVIPSSource: TeX output 2000.05.04:2122 +%DVIPSSource: TeX output 2000.05.05:1954 %%BeginProcSet: texc.pro %! /TeXDict 300 dict def TeXDict begin/N{def}def/B{bind def}N/S{exch}N/X{S @@ -221,9 +221,9 @@ FF8026FFFC0313FCA226207F9F29>I<3A7FFF807FF8A23A07F8001FE00003EC0F80ED07 5AEB0003007E130FB6FCA21C207E9F22>I<001C1370003E13F8387F01FC00FF13FEA200 7F13FC383E00F8001C1370170879B226>127 D E %EndDVIPSBitmapFont -%DVIPSBitmapFont: Fd cmsl9 9 1 -/Fd 1 47 df<123C127E12FFA312FE127C12380808798715>46 D -E +%DVIPSBitmapFont: Fd cmti9 9 1 +/Fd 1 47 df<121C123E127F12FFA212FE127C12380808778718>46 +D E %EndDVIPSBitmapFont %DVIPSBitmapFont: Fe cmtt9 9 63 /Fe 63 127 df<123C127E12FFAF127EAE123C1200A7123C127E12FFA4127E123C082F71 @@ -365,15 +365,28 @@ FE4814FFA490380001FEEC03FCEC07F8EC0FF0001EEB1FE0C7EA3FC0EC7F80ECFF00495A C0000F130F381FFE1F393FFF7F80397FBFFF0038FE1FFE486C5A00F813F0387003C01A0A 7AAD27>126 D E %EndDVIPSBitmapFont -%DVIPSBitmapFont: Ff cmtt12 14.4 1 -/Ff 1 44 df<157815FC4A7EB3A2003FB812E04817F0B912F8A46C17F06C17E0C7D801FE +%DVIPSBitmapFont: Ff cmmi10 10.95 2 +/Ff 2 80 df<49B592B512F082A290C76D913807FE00DA01BFED01F0705D039F6F5AA291 +26031FF04A5A150F82150702066D4AC7FC1503A26F7E020C16068281834A017F5CA2707E +A24A6E5B161F83160F4A6E5B1607A2834A01035C8316018349486D5CA21880177F49C8EB +C180173F18E1171F010604E3C8FCEF0FF3A218FB49ED07FEA21703A2496F5AA301381500 +6001FC1678EA03FE267FFFF01538B56C15304A15104C3E7DBD49>78 +DI E +%EndDVIPSBitmapFont +%DVIPSBitmapFont: Fg cmtt12 14.4 1 +/Fg 1 44 df<157815FC4A7EB3A2003FB812E04817F0B912F8A46C17F06C17E0C7D801FE C8FCB3A26E5A157835347CBE3E>43 D E %EndDVIPSBitmapFont -%DVIPSBitmapFont: Fg cmsy7 7 1 -/Fg 1 1 df0 D E +%DVIPSBitmapFont: Fh cmsy7 7 1 +/Fh 1 1 df0 D E %EndDVIPSBitmapFont -%DVIPSBitmapFont: Fh cmr7 7 5 -/Fh 5 55 df<1238127C12FEA6127CAA1238AA12101200A51238127C12FEA3127C123807 +%DVIPSBitmapFont: Fi cmr7 7 5 +/Fi 5 55 df<1238127C12FEA6127CAA1238AA12101200A51238127C12FEA3127C123807 297BA813>33 D<1306130C13181330136013E0EA01C0EA0380A2EA07005A120E121EA212 1C123CA35AA512F85AAB7E1278A57EA3121C121EA2120E120F7EEA0380A2EA01C0EA00E0 136013301318130C13060F3B7AAB1A>40 D<12C012607E7E7E120E7EEA0380A2EA01C013 @@ -384,8 +397,8 @@ E01200B3AB487EB512F8A215267BA521>49 D54 D E %EndDVIPSBitmapFont -%DVIPSBitmapFont: Fi cmmi7 7 3 -/Fi 3 111 df<1238127C12FEA3127C123807077A8614>58 D<1378EA07FC5BEA0078A3 +%DVIPSBitmapFont: Fj cmmi7 7 3 +/Fj 3 111 df<1238127C12FEA3127C123807077A8614>58 D<1378EA07FC5BEA0078A3 5BA4485AA43903C00780EC1FC0EC3860EC60E0380780C1EB8103138290388401C0D80F18 C7FC5B13E07FEA1FFE381E3F80EB07C06D7EEA3C011560A30078EBC0C01303903801C180 A200F0EBE300EB00FE0060133C1B297CA723>107 D<3907C01FC0390FE07FE03918F0E0 @@ -393,8 +406,8 @@ F03930718078EB7B00D8607E1338017C133C01781338D8C0F813785B1200A248485BA34A 5AEA03C01660EC03C0A23A07800780C0A2ED8180ED8300390F000386EC01FC00066D5A23 1B7D9929>110 D E %EndDVIPSBitmapFont -%DVIPSBitmapFont: Fj cmex10 10 2 -/Fj 2 2 df<1430147014E0EB01C0EB0380A2EB0700130E131E131C133C5BA25BA2485A +%DVIPSBitmapFont: Fk cmex10 10 2 +/Fk 2 2 df<1430147014E0EB01C0EB0380A2EB0700130E131E131C133C5BA25BA2485A A212035B1207A2485AA348C7FCA45A123EA3127EA5127CA212FCB3A2127CA2127EA5123E A3123F7EA46C7EA36C7EA212037F1201A26C7EA21378A27F131C131E130E7FEB0380A2EB 01C0EB00E0147014301462738226>0 D<124012E012707E7EA27E7E7F12037F6C7EA26C @@ -402,8 +415,8 @@ A3123F7EA46C7EA36C7EA212037F1201A26C7EA21378A27F131C131E130E7FEB0380A2EB 1307A514C0A3130F1480A4EB1F00A3133EA2133C137C1378A25BA2485AA2485A5B120790 C7FC120E5AA25A5A5A124014627C8226>I E %EndDVIPSBitmapFont -%DVIPSBitmapFont: Fk cmsl10 10.95 20 -/Fk 20 122 dfI E %EndDVIPSBitmapFont -%DVIPSBitmapFont: Fl cmtt12 13.14 1 -/Fl 1 44 df43 D E %EndDVIPSBitmapFont -%DVIPSBitmapFont: Fm cmbx12 13.14 42 -/Fm 42 123 df<923803FFF0037FEBFE7C0203B612FC141F91397FFE001FDAFFE0133F01 +%DVIPSBitmapFont: Fn cmbx12 13.14 45 +/Fn 45 123 df<923803FFF0037FEBFE7C0203B612FC141F91397FFE001FDAFFE0133F01 030180137F4990C7FC495A4A14FF4948147F495AA24A143F017F151FAFB9FCA526007FF0 C7121FB3B3A2003FB5D8E00FB512F8A53D4D7ECC44>13 D45 D @@ -520,102 +533,114 @@ F01303033F02FE13074AB7EA800F0207EEE01F021F903AFC003FF03F027F01C0903807FC CB59>67 D69 D72 -D76 DII82 DI<003FBB12C0A5DA80019038F8001FD9F800160148487113E001C0183F49181F -90C7170FA2007E1907A3007C1903A500FC1AF0481901A5C894C7FCB3B3A749B812F8A54C -4A7CC955>I97 -DI<913807FF80 -027F13F80103B512FE010FECFF804948C613C0D97FF0EB1FE04948EB3FF04849137F4849 -EBFFF84890C7FCA2485A121F49EC7FF0123FEE3FE0EE0F80484891C7FCA312FFAB127FA2 -7FA2123FA2001F163E7F120F6D157C6C6D14FC6C16F86C6DEB01F06C01F013076D6CEB0F -E06DB4EB7F80010F90B51200010314FCD9007F13F0020790C7FC2F337CB137>IIIIII<13FC487E3807FF80A2487F487FA66C5B6C5BA2D801FEC7FC6C5A90C8FCACEB7F -C0B5FCA512037EB3B3B61280A5194D7BCC22>I107 -DII<903A7FC001FF80B5010F13F0033F13FC4B13FF9126C1FE077F9138C3F0030003 -9026C7C0017F6C1480DACF008002DE7F02DC8114F8A25CA35CB3AAB6D8C07FEBFFE0A53B -317BB044>I<913807FF80027F13F80103B6FC010F15C090261FFE017F903A7FF0003FF8 -D9FFC0EB0FFC48496D7E4890C76C7E4817804980000F17C048486E13E0A2003F17F04915 -7FA2007F17F8A400FF17FCAB007F17F8A36C6CEDFFF0A3001F17E06D5C000F17C06C6C4A -13806C17006C6D495A6C01E0EB1FFC6D6C495A903A3FFE01FFF0010FB612C0010392C7FC -D9007F13F80207138036337DB13D>I<90397FC007FEB590383FFFE002C1B512F802C714 -FE913ACFF80FFF809126FFC0037F000391C713F06C01FC6E7E4A143F4A814A6E7E170F84 -198083A219C0A283A219E0AA19C05FA31980A24D1300A24D5A804D5A6E4A5A6E4A5A6E49 -5B6E6C485B9126EFF01F5B02E7B548C7FC02E114F8DAE07F13C0DB0FFCC8FC92CAFCAFB6 -12C0A53B467CB044>I<9039FF801FC0B5EB7FF8913881FFFE02837FDA87E11380EC8F83 -0003D99F0713C06C139E14BC14B814F84A6C1380A26F13009138E0007C93C7FCA35CB3A8 -B612E0A52A317CB032>114 DI<14F8A613 -01A41303A21307A2130FA2131F133F137F13FF1203000F90B512F0B7FCA426007FF8C7FC -B3A6167CAA013F14F880131FED01F090380FFE03903907FF07E06DEBFFC06D1480903900 -7FFE00EC0FF826467EC430>III120 +F13FF819FF1803183FBBFCA262A3494A7CC951>69 D71 +DI76 +DII80 D82 +DI<003FBB12C0A5DA80019038F8001FD9 +F800160148487113E001C0183F49181F90C7170FA2007E1907A3007C1903A500FC1AF048 +1901A5C894C7FCB3B3A749B812F8A54C4A7CC955>II97 DI<913807FF80027F13F80103B512FE010FECFF804948C613C0D97FF0EB1FE04948EB3F +F04849137F4849EBFFF84890C7FCA2485A121F49EC7FF0123FEE3FE0EE0F80484891C7FC +A312FFAB127FA27FA2123FA2001F163E7F120F6D157C6C6D14FC6C16F86C6DEB01F06C01 +F013076D6CEB0FE06DB4EB7F80010F90B51200010314FCD9007F13F0020790C7FC2F337C +B137>II +IIII<13FC487E3807FF80A2487F487FA66C5B6C5BA2D801FEC7FC6C +5A90C8FCACEB7FC0B5FCA512037EB3B3B61280A5194D7BCC22>I +107 DII<903A7FC001FF80B5010F13F0033F13FC4B13FF9126C1FE077F9138C3F003 +00039026C7C0017F6C1480DACF008002DE7F02DC8114F8A25CA35CB3AAB6D8C07FEBFFE0 +A53B317BB044>I<913807FF80027F13F80103B6FC010F15C090261FFE017F903A7FF000 +3FF8D9FFC0EB0FFC48496D7E4890C76C7E4817804980000F17C048486E13E0A2003F17F0 +49157FA2007F17F8A400FF17FCAB007F17F8A36C6CEDFFF0A3001F17E06D5C000F17C06C +6C4A13806C17006C6D495A6C01E0EB1FFC6D6C495A903A3FFE01FFF0010FB612C0010392 +C7FCD9007F13F80207138036337DB13D>I<90397FC007FEB590383FFFE002C1B512F802 +C714FE913ACFF80FFF809126FFC0037F000391C713F06C01FC6E7E4A143F4A814A6E7E17 +0F84198083A219C0A283A219E0AA19C05FA31980A24D1300A24D5A804D5A6E4A5A6E4A5A +6E495B6E6C485B9126EFF01F5B02E7B548C7FC02E114F8DAE07F13C0DB0FFCC8FC92CAFC +AFB612C0A53B467CB044>I<9039FF801FC0B5EB7FF8913881FFFE02837FDA87E11380EC +8F830003D99F0713C06C139E14BC14B814F84A6C1380A26F13009138E0007C93C7FCA35C +B3A8B612E0A52A317CB032>114 DI<14F8 +A61301A41303A21307A2130FA2131F133F137F13FF1203000F90B512F0B7FCA426007FF8 +C7FCB3A6167CAA013F14F880131FED01F090380FFE03903907FF07E06DEBFFC06D148090 +39007FFE00EC0FF826467EC430>III120 D<007FB500C090387FFFE0A5C601F0C73803F8006E5D017F5E6E1407013F5E6E140F011F 5E6E141FA26D6D91C7FC5F6D153E6F137E6D157C6F13FC6D5DEDF0016D5DEDF803027F5C 15FC1607DA3FFE5B160F021F5CEDFF1F6E91C8FC16BF6E13BE16FE6E5BA36E5BA26E5BA2 @@ -626,20 +651,6 @@ AF41>I<001FB712FCA4DA000113F801F84913F001E04913E05B494913C04B138048C748 5B5D5B495B4990C712F85C137F495A48491301485BA248491303484913074849130F161F 4890C7EA7FF04848EB03FFB8FCA42E307DAF37>I E %EndDVIPSBitmapFont -%DVIPSBitmapFont: Fn cmmi10 10.95 3 -/Fn 3 80 df<121E123FEA7F80EAFFC0A4EA7F80EA3F00121E0A0A798919>58 -D<49B592B512F082A290C76D913807FE00DA01BFED01F0705D039F6F5AA29126031FF04A -5A150F82150702066D4AC7FC1503A26F7E020C16068281834A017F5CA2707EA24A6E5B16 -1F83160F4A6E5B1607A2834A01035C8316018349486D5CA21880177F49C8EBC180173F18 -E1171F010604E3C8FCEF0FF3A218FB49ED07FEA21703A2496F5AA3013815006001FC1678 -EA03FE267FFFF01538B56C15304A15104C3E7DBD49>78 DI E -%EndDVIPSBitmapFont %DVIPSBitmapFont: Fo cmbx12 17.28 42 /Fo 42 123 df<19F0F001F819FC1803A2180719F8180F19F0A2181F19E0183F19C0A218 7F198018FF1900A25F60170360A2170760170F60A2171F60173F60A2177F60A217FF95C7 @@ -1708,4136 +1719,4089 @@ TeXDict begin %%EndSetup %%Page: 1 1 -1 0 bop 0 1386 a Ft(CLN,)65 b(a)g(Class)h(Library)g(for)e(Num)-5 -b(b)5 b(ers)p 0 1486 3900 34 v 0 5068 a Fs(b)l(y)45 b(Bruno)f(Haible)p -0 5141 3900 17 v eop +1 0 bop -30 1318 a Ft(CLN,)65 b(a)g(Class)h(Library)g(for)e(Num)-5 +b(b)5 b(ers)p -30 1418 3961 34 v -30 5068 a Fs(b)l(y)45 +b(Bruno)f(Haible)p -30 5141 3961 17 v eop %%Page: 2 2 -2 1 bop 0 3355 a Fr(Cop)m(yrigh)m(t)452 3352 y(c)427 -3355 y Fq(\015)30 b Fr(Bruno)g(Haible)h(1995,)i(1996,)f(1997,)g(1998,)h -(1999,)f(2000.)0 3878 y(Published)19 b(b)m(y)h(Bruno)g(Haible,)j -Fp()14 b Fr(and)20 b(Ric)m(hard)g(Krec)m(k)m -(el,)k Fp()p Fr(.)0 4152 y(P)m(ermission)g(is)h(gran) -m(ted)g(to)h(mak)m(e)f(and)f(distribute)g(v)m(erbatim)h(copies)g(of)g -(this)g(man)m(ual)f(pro)m(vided)h(the)g(cop)m(yrigh)m(t)0 -4276 y(notice)32 b(and)d(this)i(p)s(ermission)d(notice)k(are)e(preserv) -m(ed)g(on)h(all)g(copies.)0 4550 y(P)m(ermission)c(is)h(gran)m(ted)h -(to)g(cop)m(y)f(and)g(distribute)f(mo)s(di\014ed)f(v)m(ersions)i(of)h -(this)e(man)m(ual)h(under)e(the)i(conditions)0 4675 y(for)d(v)m -(erbatim)f(cop)m(ying,)k(pro)m(vided)c(that)i(the)f(en)m(tire)h -(resulting)f(deriv)m(ed)g(w)m(ork)g(is)g(distributed)f(under)g(the)h -(terms)0 4799 y(of)31 b(a)f(p)s(ermission)f(notice)i(iden)m(tical)h(to) -g(this)e(one.)0 5073 y(P)m(ermission)38 b(is)h(gran)m(ted)h(to)g(cop)m -(y)g(and)f(distribute)f(translations)i(of)f(this)g(man)m(ual)g(in)m(to) -h(another)f(language,)0 5198 y(under)27 b(the)h(ab)s(o)m(v)m(e)h -(conditions)g(for)f(mo)s(di\014ed)e(v)m(ersions,)j(except)g(that)f -(this)g(p)s(ermission)e(notice)k(ma)m(y)e(b)s(e)f(stated)0 -5322 y(in)j(a)h(translation)g(appro)m(v)m(ed)g(b)m(y)f(the)h(author.)p -eop +2 1 bop -30 4017 a Fr(Cop)m(yrigh)m(t)422 4014 y(c)397 +4017 y Fq(\015)30 b Fr(Bruno)g(Haible)h(1995,)i(1996,)f(1997,)g(1998,)h +(1999,)f(2000.)-30 4371 y(Published)21 b(b)m(y)i(Bruno)f(Haible,)k +Fp()16 b Fr(and)23 b(Ric)m(hard)f(Krec)m(k)m +(el,)27 b Fp()p Fr(.)-30 4505 y(P)m(ermission)h(is)h +(gran)m(ted)h(to)g(mak)m(e)f(and)g(distribute)f(v)m(erbatim)h(copies)h +(of)f(this)g(man)m(ual)g(pro)m(vided)f(the)i(cop)m(yrigh)m(t)-30 +4615 y(notice)i(and)d(this)i(p)s(ermission)d(notice)k(are)e(preserv)m +(ed)g(on)h(all)g(copies.)-30 4749 y(P)m(ermission)g(is)i(gran)m(ted)g +(to)g(cop)m(y)g(and)e(distribute)h(mo)s(di\014ed)e(v)m(ersions)j(of)f +(this)h(man)m(ual)e(under)g(the)h(conditions)-30 4859 +y(for)d(v)m(erbatim)g(cop)m(ying,)i(pro)m(vided)e(that)h(the)f(en)m +(tire)i(resulting)e(deriv)m(ed)g(w)m(ork)h(is)f(distributed)g(under)e +(the)j(terms)-30 4969 y(of)h(a)f(p)s(ermission)f(notice)i(iden)m(tical) +h(to)g(this)e(one.)-30 5103 y(P)m(ermission)23 b(is)i(gran)m(ted)g(to)g +(cop)m(y)g(and)e(distribute)h(translations)h(of)g(this)f(man)m(ual)g +(in)m(to)h(another)f(language,)j(under)-30 5213 y(the)37 +b(ab)s(o)m(v)m(e)i(conditions)f(for)f(mo)s(di\014ed)e(v)m(ersions,)k +(except)f(that)g(this)f(p)s(ermission)f(notice)i(ma)m(y)f(b)s(e)g +(stated)h(in)f(a)-30 5322 y(translation)31 b(appro)m(v)m(ed)g(b)m(y)f +(the)h(author.)p eop %%Page: 1 3 -1 2 bop 0 -116 a Fr(Chapter)30 b(1:)41 b(In)m(tro)s(duction)2892 -b(1)0 366 y Fo(1)80 b(In)l(tro)t(duction)0 719 y Fr(CLN)30 -b(is)g(a)h(library)f(for)g(computations)g(with)g(all)i(kinds)d(of)i(n)m -(um)m(b)s(ers.)38 b(It)30 b(has)h(a)f(ric)m(h)h(set)g(of)f(n)m(um)m(b)s -(er)e(classes:)75 993 y Fq(\017)60 b Fr(In)m(tegers)31 -b(\(with)g(unlimited)e(precision\),)75 1137 y Fq(\017)60 -b Fr(Rational)32 b(n)m(um)m(b)s(ers,)75 1281 y Fq(\017)60 -b Fr(Floating-p)s(oin)m(t)33 b(n)m(um)m(b)s(ers:)229 -1425 y Fq(\000)60 b Fr(Short)30 b(\015oat,)229 1569 y -Fq(\000)60 b Fr(Single)31 b(\015oat,)229 1713 y Fq(\000)60 -b Fr(Double)31 b(\015oat,)229 1857 y Fq(\000)60 b Fr(Long)31 -b(\015oat)g(\(with)f(unlimited)f(precision\),)75 2001 -y Fq(\017)60 b Fr(Complex)29 b(n)m(um)m(b)s(ers,)75 2145 +1 2 bop -30 -116 a Fr(Chapter)30 b(1:)41 b(In)m(tro)s(duction)2952 +b(1)-30 299 y Fo(1)80 b(In)l(tro)t(duction)-30 524 y +Fr(CLN)30 b(is)g(a)h(library)f(for)g(computations)g(with)g(all)i(kinds) +d(of)i(n)m(um)m(b)s(ers.)38 b(It)30 b(has)h(a)f(ric)m(h)h(set)g(of)f(n) +m(um)m(b)s(er)e(classes:)45 656 y Fq(\017)60 b Fr(In)m(tegers)31 +b(\(with)g(unlimited)e(precision\),)45 789 y Fq(\017)60 +b Fr(Rational)32 b(n)m(um)m(b)s(ers,)45 922 y Fq(\017)60 +b Fr(Floating-p)s(oin)m(t)33 b(n)m(um)m(b)s(ers:)199 +1054 y Fq(\000)60 b Fr(Short)30 b(\015oat,)199 1187 y +Fq(\000)60 b Fr(Single)31 b(\015oat,)199 1320 y Fq(\000)60 +b Fr(Double)31 b(\015oat,)199 1452 y Fq(\000)60 b Fr(Long)31 +b(\015oat)g(\(with)f(unlimited)f(precision\),)45 1585 +y Fq(\017)60 b Fr(Complex)29 b(n)m(um)m(b)s(ers,)45 1718 y Fq(\017)60 b Fr(Mo)s(dular)30 b(in)m(tegers)i(\(in)m(tegers)g(mo)s -(dulo)c(a)j(\014xed)f(in)m(teger\),)75 2289 y Fq(\017)60 -b Fr(Univ)-5 b(ariate)32 b(p)s(olynomials.)0 2583 y(The)38 -b(subt)m(yp)s(es)g(of)h(the)g(complex)f(n)m(um)m(b)s(ers)f(among)h -(these)h(are)g(exactly)i(the)e(t)m(yp)s(es)g(of)g(n)m(um)m(b)s(ers)d -(kno)m(wn)i(to)0 2707 y(the)29 b(Common)d(Lisp)j(language.)41 -b(Therefore)29 b Fp(CLN)f Fr(can)h(b)s(e)f(used)g(for)h(Common)d(Lisp)i -(implemen)m(tations,)h(giving)0 2832 y(`)p Fp(CLN)p Fr(')h(another)h -(meaning:)40 b(it)30 b(b)s(ecomes)g(an)g(abbreviation)h(of)g(\\Common)d -(Lisp)i(Num)m(b)s(ers".)0 3106 y(The)g(CLN)g(pac)m(k)-5 -b(age)32 b(implemen)m(ts)75 3380 y Fq(\017)60 b Fr(Elemen)m(tary)30 +(dulo)c(a)j(\014xed)f(in)m(teger\),)45 1850 y Fq(\017)60 +b Fr(Univ)-5 b(ariate)32 b(p)s(olynomials.)-30 2006 y(The)g(subt)m(yp)s +(es)f(of)h(the)h(complex)f(n)m(um)m(b)s(ers)d(among)j(these)h(are)f +(exactly)i(the)f(t)m(yp)s(es)f(of)g(n)m(um)m(b)s(ers)e(kno)m(wn)i(to)h +(the)-30 2116 y(Common)26 b(Lisp)h(language.)42 b(Therefore)28 +b Fp(CLN)f Fr(can)i(b)s(e)e(used)h(for)g(Common)d(Lisp)j(implemen)m +(tations,)g(giving)h(`)p Fp(CLN)p Fr(')-30 2225 y(another)i(meaning:)40 +b(it)30 b(b)s(ecomes)g(an)g(abbreviation)h(of)g(\\Common)d(Lisp)i(Num)m +(b)s(ers".)-30 2358 y(The)g(CLN)g(pac)m(k)-5 b(age)32 +b(implemen)m(ts)45 2491 y Fq(\017)60 b Fr(Elemen)m(tary)30 b(functions)g(\()p Fp(+)p Fr(,)h Fp(-)p Fr(,)f Fp(*)p -Fr(,)g Fp(/)p Fr(,)h Fp(sqrt)p Fr(,)e(comparisons,)h -Fn(:)15 b(:)g(:)q Fr(\),)75 3524 y Fq(\017)60 b Fr(Logical)32 +Fr(,)g Fp(/)p Fr(,)h Fp(sqrt)p Fr(,)e(comparisons,)35 +b(.)23 b(.)f(.)11 b(\),)45 2623 y Fq(\017)60 b Fr(Logical)32 b(functions)e(\(logical)j Fp(and)p Fr(,)d Fp(or)p Fr(,)g -Fp(not)p Fr(,)g Fn(:)15 b(:)g(:)q Fr(\),)75 3668 y Fq(\017)60 -b Fr(T)-8 b(ranscenden)m(tal)40 b(functions)f(\(exp)s(onen)m(tial,)k -(logarithmic,)f(trigonometric,)g(h)m(yp)s(erb)s(olic)d(functions)g(and) -180 3792 y(their)30 b(in)m(v)m(erse)i(functions\).)0 -4086 y(CLN)e(is)g(a)h(C)p Fp(++)f Fr(library)-8 b(.)40 +Fp(not)p Fr(,)35 b(.)23 b(.)f(.)11 b(\),)45 2756 y Fq(\017)60 +b Fr(T)-8 b(ranscenden)m(tal)48 b(functions)e(\(exp)s(onen)m(tial,)53 +b(logarithmic,)f(trigonometric,)g(h)m(yp)s(erb)s(olic)46 +b(functions)h(and)150 2866 y(their)30 b(in)m(v)m(erse)i(functions\).) +-30 3021 y(CLN)e(is)g(a)h(C)p Fp(++)f Fr(library)-8 b(.)40 b(Using)31 b(C)p Fp(++)e Fr(as)i(an)f(implemen)m(tation)g(language)i -(pro)m(vides)75 4360 y Fq(\017)60 b Fr(e\016ciency:)42 -b(it)31 b(compiles)f(to)h(mac)m(hine)f(co)s(de,)75 4504 -y Fq(\017)60 b Fr(t)m(yp)s(e)33 b(safet)m(y:)48 b(the)33 -b(C)p Fp(++)f Fr(compiler)h(kno)m(ws)f(ab)s(out)h(the)g(n)m(um)m(b)s -(er)e(t)m(yp)s(es)i(and)g(complains)f(if,)i(for)f(example,)180 -4628 y(y)m(ou)e(try)f(to)h(assign)g(a)g(\015oat)g(to)g(an)f(in)m(teger) -i(v)-5 b(ariable.)75 4773 y Fq(\017)60 b Fr(algebraic)32 +(pro)m(vides)45 3154 y Fq(\017)60 b Fr(e\016ciency:)42 +b(it)31 b(compiles)f(to)h(mac)m(hine)f(co)s(de,)45 3287 +y Fq(\017)60 b Fr(t)m(yp)s(e)37 b(safet)m(y:)55 b(the)38 +b(C)p Fp(++)e Fr(compiler)g(kno)m(ws)h(ab)s(out)g(the)g(n)m(um)m(b)s +(er)e(t)m(yp)s(es)i(and)f(complains)g(if,)j(for)e(example,)150 +3396 y(y)m(ou)31 b(try)f(to)h(assign)g(a)g(\015oat)g(to)g(an)f(in)m +(teger)i(v)-5 b(ariable.)45 3529 y Fq(\017)60 b Fr(algebraic)32 b(syn)m(tax:)41 b(Y)-8 b(ou)31 b(can)g(use)f(the)h Fp(+)p Fr(,)f Fp(-)p Fr(,)g Fp(*)p Fr(,)g Fp(=)p Fr(,)h Fp(==)p -Fr(,)f Fn(:)15 b(:)g(:)31 b Fr(op)s(erators)g(as)f(in)g(C)g(or)h(C)p -Fp(++)p Fr(.)0 5066 y(CLN)f(is)g(memory)f(e\016cien)m(t:)75 -5340 y Fq(\017)60 b Fr(Small)30 b(in)m(tegers)h(and)f(short)g(\015oats) -h(are)g(immediate,)e(not)i(heap)f(allo)s(cated.)p eop +Fr(,)k(.)22 b(.)h(.)41 b(op)s(erators)31 b(as)f(in)h(C)e(or)i(C)p +Fp(++)p Fr(.)-30 3685 y(CLN)f(is)g(memory)f(e\016cien)m(t:)45 +3817 y Fq(\017)60 b Fr(Small)30 b(in)m(tegers)h(and)f(short)g(\015oats) +h(are)g(immediate,)e(not)i(heap)f(allo)s(cated.)45 3950 +y Fq(\017)60 b Fr(Heap-allo)s(cated)30 b(memory)25 b(is)i(reclaimed)g +(through)f(an)h(automatic,)h(non-in)m(terruptiv)m(e)g(garbage)g +(collection.)-30 4106 y(CLN)i(is)g(sp)s(eed)g(e\016cien)m(t:)45 +4238 y Fq(\017)60 b Fr(The)31 b(k)m(ernel)h(of)f(CLN)g(has)g(b)s(een)g +(written)g(in)g(assem)m(bly)g(language)i(for)e(some)g(CPUs)f(\()p +Fp(i386)p Fr(,)h Fp(m68k)p Fr(,)g Fp(sparc)p Fr(,)150 +4348 y Fp(mips)p Fr(,)e Fp(arm)p Fr(\).)45 4481 y Fq(\017)60 +b Fr(On)38 b(all)h(CPUs,)h(CLN)e(ma)m(y)g(b)s(e)g(con\014gured)g(to)h +(use)f(the)g(sup)s(ere\016cien)m(t)h(lo)m(w-lev)m(el)i(routines)d(from) +f(GNU)150 4590 y(GMP)31 b(v)m(ersion)g(3.)45 4723 y Fq(\017)60 +b Fr(It)21 b(uses)g(Karatsuba)g(m)m(ultiplication,)j(whic)m(h)c(is)i +(signi\014can)m(tly)g(faster)f(for)g(large)h(n)m(um)m(b)s(ers)d(than)i +(the)g(standard)150 4832 y(m)m(ultiplication)31 b(algorithm.)45 +4965 y Fq(\017)60 b Fr(F)-8 b(or)61 b(v)m(ery)f(large)h(n)m(um)m(b)s +(ers)d(\(more)h(than)h(12000)i(decimal)e(digits\),)69 +b(it)60 b(uses)g(Sc)m(h\177)-45 b(onhage-Strassen)150 +5075 y(m)m(ultiplication,)33 b(whic)m(h)e(is)g(an)g(asymptotically)i +(optimal)e(m)m(ultiplication)h(algorithm,)g(for)f(m)m(ultiplication,) +150 5184 y(division)f(and)g(radix)g(con)m(v)m(ersion.)-30 +5340 y(CLN)g(aims)g(at)h(b)s(eing)f(easily)h(in)m(tegrated)h(in)m(to)g +(larger)f(soft)m(w)m(are)g(pac)m(k)-5 b(ages:)p eop %%Page: 2 4 -2 3 bop 0 -116 a Fr(Chapter)30 b(1:)41 b(In)m(tro)s(duction)2892 -b(2)75 366 y Fq(\017)60 b Fr(Heap-allo)s(cated)40 b(memory)35 -b(is)i(reclaimed)g(through)f(an)h(automatic,)j(non-in)m(terruptiv)m(e)d -(garbage)i(collec-)180 491 y(tion.)0 790 y(CLN)30 b(is)g(sp)s(eed)g -(e\016cien)m(t:)75 1064 y Fq(\017)60 b Fr(The)27 b(k)m(ernel)h(of)f -(CLN)g(has)g(b)s(een)g(written)g(in)g(assem)m(bly)g(language)h(for)f -(some)g(CPUs)g(\()p Fp(i386)p Fr(,)g Fp(m68k)p Fr(,)g -Fp(sparc)p Fr(,)180 1188 y Fp(mips)p Fr(,)i Fp(arm)p -Fr(\).)75 1338 y Fq(\017)60 b Fr(On)33 b(all)i(CPUs,)g(CLN)f(ma)m(y)g -(b)s(e)g(con\014gured)f(to)i(use)f(the)g(sup)s(ere\016cien)m(t)g(lo)m -(w-lev)m(el)j(routines)e(from)d(GNU)180 1462 y(GMP)f(v)m(ersion)g(3.)75 -1612 y Fq(\017)60 b Fr(It)28 b(uses)g(Karatsuba)g(m)m(ultiplication,)i -(whic)m(h)e(is)g(signi\014can)m(tly)i(faster)e(for)g(large)h(n)m(um)m -(b)s(ers)d(than)i(the)h(stan-)180 1736 y(dard)g(m)m(ultiplication)j -(algorithm.)75 1886 y Fq(\017)60 b Fr(F)-8 b(or)56 b(v)m(ery)f(large)h -(n)m(um)m(b)s(ers)d(\(more)i(than)f(12000)k(decimal)d(digits\),)62 -b(it)56 b(uses)e(Sc)m(h\177)-45 b(onhage-Strassen)180 -2010 y(m)m(ultiplication,)27 b(whic)m(h)d(is)g(an)h(asymptotically)g -(optimal)f(m)m(ultiplication)i(algorithm,)g(for)e(m)m(ultiplication,) -180 2135 y(division)30 b(and)g(radix)g(con)m(v)m(ersion.)0 -2434 y(CLN)g(aims)g(at)h(b)s(eing)f(easily)h(in)m(tegrated)h(in)m(to)g -(larger)f(soft)m(w)m(are)g(pac)m(k)-5 b(ages:)75 2708 -y Fq(\017)60 b Fr(The)30 b(garbage)i(collection)h(imp)s(oses)28 -b(no)j(burden)d(on)i(the)h(main)e(application.)75 2857 -y Fq(\017)60 b Fr(The)30 b(library)g(pro)m(vides)g(ho)s(oks)g(for)g +2 3 bop -30 -116 a Fr(Chapter)30 b(1:)41 b(In)m(tro)s(duction)2952 +b(2)45 299 y Fq(\017)60 b Fr(The)30 b(garbage)i(collection)h(imp)s +(oses)28 b(no)j(burden)d(on)i(the)h(main)e(application.)45 +433 y Fq(\017)60 b Fr(The)30 b(library)g(pro)m(vides)g(ho)s(oks)g(for)g (memory)f(allo)s(cation)j(and)e(exceptions.)p eop %%Page: 3 5 -3 4 bop 0 -116 a Fr(Chapter)30 b(2:)41 b(Installation)2939 -b(3)0 366 y Fo(2)80 b(Installation)0 808 y Fr(This)30 +3 4 bop -30 -116 a Fr(Chapter)30 b(2:)41 b(Installation)2999 +b(3)-30 299 y Fo(2)80 b(Installation)-30 526 y Fr(This)30 b(section)h(describ)s(es)f(ho)m(w)g(to)h(install)g(the)g(CLN)f(pac)m(k) --5 b(age)32 b(on)f(y)m(our)f(system.)0 1379 y Fs(2.1)68 -b(Prerequisites)0 1917 y Fm(2.1.1)63 b(C)p Fl(++)30 b -Fm(compiler)0 2204 y Fr(T)-8 b(o)27 b(build)f(CLN,)g(y)m(ou)h(need)f(a) -h(C)p Fp(++)f Fr(compiler.)39 b(Actually)-8 b(,)29 b(y)m(ou)e(need)g -(GNU)g Fp(g++)i(2.7.0)c Fr(or)i(new)m(er.)39 b(On)26 -b(HPP)-8 b(A,)0 2329 y(y)m(ou)31 b(need)f(GNU)h Fp(g++)e(2.8.0)g -Fr(or)i(new)m(er.)40 b(I)30 b(recommend)f(GNU)i Fp(g++)e(2.95)g -Fr(or)i(new)m(er.)0 2616 y(The)44 b(follo)m(wing)j(C)p -Fp(++)d Fr(features)h(are)g(used:)69 b(classes,)50 b(mem)m(b)s(er)42 -b(functions,)49 b(o)m(v)m(erloading)e(of)e(functions)g(and)0 -2741 y(op)s(erators,)31 b(constructors)f(and)g(destructors,)h(inline,)f -(const,)i(m)m(ultiple)e(inheritance,)h(templates.)0 3028 -y(The)f(follo)m(wing)i(C)p Fp(++)d Fr(features)i(are)g(not)f(used:)40 -b Fp(new)p Fr(,)30 b Fp(delete)p Fr(,)f(virtual)h(inheritance,)i -(exceptions.)0 3316 y(CLN)38 b(relies)h(on)f(semi-automatic)h(ordering) -f(of)g(initializations)j(of)e(static)g(and)f(global)i(v)-5 -b(ariables,)41 b(a)d(feature)0 3441 y(whic)m(h)30 b(I)g(could)h -(implemen)m(t)e(for)h(GNU)h(g)p Fp(++)f Fr(only)-8 b(.)0 -3978 y Fm(2.1.2)63 b(Mak)m(e)29 b(utilit)m(y)0 4266 y -Fr(T)-8 b(o)31 b(build)e(CLN,)h(y)m(ou)h(also)g(need)g(to)g(ha)m(v)m(e) -g(GNU)g Fp(make)e Fr(installed.)0 4803 y Fm(2.1.3)63 -b(Sed)30 b(utilit)m(y)0 5091 y Fr(T)-8 b(o)36 b(build)e(CLN)g(on)h -(HP-UX,)h(y)m(ou)g(also)g(need)f(to)g(ha)m(v)m(e)i(GNU)e -Fp(sed)g Fr(installed.)55 b(This)34 b(is)i(b)s(ecause)f(the)g(libto)s -(ol)0 5215 y(script,)c(whic)m(h)f(creates)i(the)f(CLN)f(library)-8 -b(,)31 b(relies)g(on)g Fp(sed)p Fr(,)f(and)g(the)g(v)m(endor's)h -Fp(sed)f Fr(utilit)m(y)h(on)g(these)g(systems)0 5340 -y(is)f(to)s(o)i(limited.)p eop +-5 b(age)32 b(on)f(y)m(our)f(system.)-30 779 y Fs(2.1)68 +b(Prerequisites)-30 1057 y Fn(2.1.1)63 b(C)p Fm(++)40 +b Fn(compiler)-30 1248 y Fr(T)-8 b(o)31 b(build)f(CLN,)g(y)m(ou)h(need) +g(a)g(C)p Fp(++)e Fr(compiler.)41 b(Actually)-8 b(,)33 +b(y)m(ou)e(need)f(GNU)i Fp(g++)d(2.7.0)g Fr(or)i(new)m(er.)41 +b(On)30 b(HPP)-8 b(A,)-30 1358 y(y)m(ou)31 b(need)f(GNU)h +Fp(g++)e(2.8.0)g Fr(or)i(new)m(er.)40 b(I)30 b(recommend)f(GNU)i +Fp(g++)e(2.95)g Fr(or)i(new)m(er.)-30 1491 y(The)g(follo)m(wing)j(C)p +Fp(++)d Fr(features)h(are)g(used:)43 b(classes,)33 b(mem)m(b)s(er)c +(functions,)k(o)m(v)m(erloading)h(of)e(functions)f(and)g(op)s(er-)-30 +1600 y(ators,)g(constructors)g(and)f(destructors,)g(inline,)h(const,)g +(m)m(ultiple)f(inheritance,)h(templates.)-30 1733 y(The)f(follo)m(wing) +i(C)p Fp(++)d Fr(features)i(are)g(not)f(used:)40 b Fp(new)p +Fr(,)30 b Fp(delete)p Fr(,)f(virtual)h(inheritance,)i(exceptions.)-30 +1866 y(CLN)23 b(relies)h(on)g(semi-automatic)f(ordering)h(of)f +(initializations)j(of)e(static)h(and)e(global)i(v)-5 +b(ariables,)25 b(a)f(feature)g(whic)m(h)-30 1976 y(I)30 +b(could)h(implemen)m(t)e(for)h(GNU)h(g)p Fp(++)f Fr(only)-8 +b(.)-30 2196 y Fn(2.1.2)63 b(Mak)m(e)40 b(utilit)m(y)-30 +2387 y Fr(T)-8 b(o)31 b(build)e(CLN,)h(y)m(ou)h(also)g(need)g(to)g(ha)m +(v)m(e)g(GNU)g Fp(make)e Fr(installed.)-30 2607 y Fn(2.1.3)63 +b(Sed)41 b(utilit)m(y)-30 2798 y Fr(T)-8 b(o)39 b(build)e(CLN)h(on)g +(HP-UX,)h(y)m(ou)g(also)g(need)f(to)h(ha)m(v)m(e)g(GNU)g +Fp(sed)e Fr(installed.)66 b(This)37 b(is)h(b)s(ecause)h(the)f(libto)s +(ol)-30 2907 y(script,)29 b(whic)m(h)g(creates)h(the)e(CLN)h(library)-8 +b(,)29 b(relies)g(on)g Fp(sed)p Fr(,)f(and)g(the)h(v)m(endor's)g +Fp(sed)f Fr(utilit)m(y)i(on)e(these)h(systems)f(is)-30 +3017 y(to)s(o)j(limited.)-30 3270 y Fs(2.2)68 b(Building)45 +b(the)g(library)-30 3461 y Fr(As)30 b(with)g(an)m(y)h(auto)s +(con\014guring)f(GNU)h(soft)m(w)m(are,)h(installation)h(is)d(as)h(easy) +g(as)f(this:)210 3589 y Fp($)47 b(./configure)210 3692 +y($)g(make)210 3796 y($)g(make)g(check)-30 3929 y Fr(If)30 +b(on)g(y)m(our)g(system,)g(`)p Fp(make)p Fr(')g(is)g(not)h(GNU)g +Fp(make)p Fr(,)e(y)m(ou)i(ha)m(v)m(e)h(to)f(use)f(`)p +Fp(gmake)p Fr(')f(instead)i(of)g(`)p Fp(make)p Fr(')e(ab)s(o)m(v)m(e.) +-30 4062 y(The)39 b Fp(configure)d Fr(command)h(c)m(hec)m(ks)k(out)e +(some)g(features)g(of)h(y)m(our)f(system)f(and)h(C)p +Fp(++)f Fr(compiler)h(and)f(builds)-30 4172 y(the)i Fp(Makefile)p +Fr(s.)66 b(The)39 b Fp(make)f Fr(command)g(builds)g(the)i(library)-8 +b(.)68 b(This)39 b(step)h(ma)m(y)f(tak)m(e)i(4)f(hours)e(on)i(an)f(a)m +(v)m(er-)-30 4281 y(age)d(w)m(orkstation.)57 b(The)35 +b Fp(make)29 b(check)34 b Fr(runs)f(some)i(test)h(to)g(c)m(hec)m(k)g +(that)g(no)f(imp)s(ortan)m(t)g(subroutine)f(has)h(b)s(een)-30 +4391 y(miscompiled.)-30 4524 y(The)30 b Fp(configure)e +Fr(command)g(accepts)k(options.)41 b(T)-8 b(o)30 b(get)i(a)f(summary)c +(of)j(them,)g(try)210 4651 y Fp($)47 b(./configure)e(--help)-30 +4784 y Fr(Some)29 b(of)i(the)g(options)f(are)h(explained)g(in)f(detail) +h(in)f(the)h(`)p Fp(INSTALL.generic)p Fr(')26 b(\014le.)-30 +4917 y(Y)-8 b(ou)21 b(can)g(sp)s(ecify)f(the)g(C)g(compiler,)i(the)f(C) +p Fp(++)e Fr(compiler)h(and)g(their)g(options)h(through)f(the)g(follo)m +(wing)i(en)m(vironmen)m(t)-30 5027 y(v)-5 b(ariables)31 +b(when)e(running)g Fp(configure)p Fr(:)-30 5183 y Fp(CC)384 +b Fr(Sp)s(eci\014es)30 b(the)g(C)g(compiler.)-30 5340 +y Fp(CFLAGS)192 b Fr(Flags)32 b(to)f(b)s(e)f(giv)m(en)h(to)g(the)g(C)f +(compiler)f(when)h(compiling)g(programs)f(\(not)i(when)e(linking\).)p +eop %%Page: 4 6 -4 5 bop 0 -116 a Fr(Chapter)30 b(2:)41 b(Installation)2939 -b(4)0 366 y Fs(2.2)68 b(Building)31 b(the)f(library)0 -647 y Fr(As)g(with)g(an)m(y)h(auto)s(con\014guring)f(GNU)h(soft)m(w)m -(are,)h(installation)h(is)d(as)h(easy)g(as)f(this:)240 -906 y Fp($)47 b(./configure)240 1010 y($)g(make)240 1114 -y($)g(make)g(check)0 1394 y Fr(If)30 b(on)g(y)m(our)g(system,)g(`)p -Fp(make)p Fr(')g(is)g(not)h(GNU)g Fp(make)p Fr(,)e(y)m(ou)i(ha)m(v)m(e) -h(to)f(use)f(`)p Fp(gmake)p Fr(')f(instead)i(of)g(`)p -Fp(make)p Fr(')e(ab)s(o)m(v)m(e.)0 1675 y(The)34 b Fp(configure)f -Fr(command)f(c)m(hec)m(ks)37 b(out)e(some)f(features)h(of)g(y)m(our)g -(system)f(and)g(C)p Fp(++)g Fr(compiler)h(and)f(builds)0 -1799 y(the)e Fp(Makefile)p Fr(s.)42 b(The)31 b Fp(make)f -Fr(command)f(builds)i(the)g(library)-8 b(.)45 b(This)30 -b(step)i(ma)m(y)f(tak)m(e)i(4)f(hours)e(on)i(an)f(a)m(v)m(erage)0 -1924 y(w)m(orkstation.)78 b(The)42 b Fp(make)29 b(check)41 -b Fr(runs)f(some)i(test)h(to)g(c)m(hec)m(k)h(that)f(no)f(imp)s(ortan)m -(t)f(subroutine)h(has)g(b)s(een)0 2048 y(miscompiled.)0 -2329 y(The)30 b Fp(configure)e Fr(command)g(accepts)k(options.)41 -b(T)-8 b(o)30 b(get)i(a)f(summary)c(of)j(them,)g(try)240 -2588 y Fp($)47 b(./configure)e(--help)0 2868 y Fr(Some)29 -b(of)i(the)g(options)f(are)h(explained)g(in)f(detail)h(in)f(the)h(`)p -Fp(INSTALL.generic)p Fr(')26 b(\014le.)0 3149 y(Y)-8 -b(ou)28 b(can)g(sp)s(ecify)g(the)g(C)f(compiler,)h(the)g(C)p -Fp(++)f Fr(compiler)g(and)g(their)h(options)g(through)f(the)h(follo)m -(wing)i(en)m(viron-)0 3273 y(men)m(t)g(v)-5 b(ariables)31 -b(when)e(running)g Fp(configure)p Fr(:)0 3585 y Fp(CC)384 -b Fr(Sp)s(eci\014es)30 b(the)g(C)g(compiler.)0 3772 y -Fp(CFLAGS)192 b Fr(Flags)32 b(to)f(b)s(e)f(giv)m(en)h(to)g(the)g(C)f -(compiler)f(when)h(compiling)g(programs)f(\(not)i(when)e(linking\).)0 -3959 y Fp(CXX)336 b Fr(Sp)s(eci\014es)30 b(the)g(C)p -Fp(++)g Fr(compiler.)0 4146 y Fp(CXXFLAGS)96 b Fr(Flags)32 +4 5 bop -30 -116 a Fr(Chapter)30 b(2:)41 b(Installation)2999 +b(4)-30 299 y Fp(CXX)336 b Fr(Sp)s(eci\014es)30 b(the)g(C)p +Fp(++)g Fr(compiler.)-30 466 y Fp(CXXFLAGS)96 b Fr(Flags)32 b(to)f(b)s(e)f(giv)m(en)h(to)g(the)g(C)p Fp(++)e Fr(compiler)h(when)f -(compiling)h(programs)f(\(not)i(when)f(linking\).)0 4458 -y(Examples:)240 4717 y Fp($)47 b(CC="gcc")f(CFLAGS="-O")f(CXX="g++")g -(CXXFLAGS="-O")f(./configure)240 4821 y($)j(CC="gcc)f(-V)h(2.7.2")g -(CFLAGS="-O)e(-g")h(\\)335 4925 y(CXX="g++)g(-V)h(2.7.2")f -(CXXFLAGS="-O)f(-g")i(./configure)240 5029 y($)g(CC="gcc)f(-V)h(2.8.1") -g(CFLAGS="-O)e(-fno-exceptions")e(\\)335 5132 y(CXX="g++)j(-V)h(2.8.1") -f(CXXFLAGS="-O)f(-fno-exceptions")e(./configure)240 5236 +(compiling)h(programs)f(\(not)i(when)f(linking\).)-30 +638 y(Examples:)210 774 y Fp($)47 b(CC="gcc")f(CFLAGS="-O")f(CXX="g++") +g(CXXFLAGS="-O")f(./configure)210 878 y($)j(CC="gcc)f(-V)h(2.7.2")g +(CFLAGS="-O)e(-g")h(\\)305 982 y(CXX="g++)g(-V)h(2.7.2")f(CXXFLAGS="-O) +f(-g")i(./configure)210 1086 y($)g(CC="gcc)f(-V)h(2.8.1")g(CFLAGS="-O)e +(-fno-exceptions")e(\\)305 1189 y(CXX="g++)j(-V)h(2.8.1")f +(CXXFLAGS="-O)f(-fno-exceptions")e(./configure)210 1293 y($)k(CC="gcc)f(-V)h(egcs-2.91.60")e(CFLAGS="-O2)f(-fno-exceptions")g -(\\)335 5340 y(CXX="g++)i(-V)h(egcs-2.91.60")d(CFLAGS="-O2)h -(-fno-exceptions")e(./configure)p eop -%%Page: 5 7 -5 6 bop 0 -116 a Fr(Chapter)30 b(2:)41 b(Installation)2939 -b(5)0 366 y(Note)28 b(that)g(for)f(these)h(en)m(vironmen)m(t)e(v)-5 -b(ariables)28 b(to)g(tak)m(e)h(e\013ect,)g(y)m(ou)e(ha)m(v)m(e)i(to)f -(set)f(them)f(\(assuming)g(a)i(Bourne-)0 491 y(compatible)i(shell\))f -(on)g(the)h(same)f(line)g(as)h(the)f Fp(configure)e Fr(command.)38 -b(If)29 b(y)m(ou)g(made)f(the)i(settings)g(in)f(earlier)0 -616 y(shell)f(commands,)e(y)m(ou)i(ha)m(v)m(e)g(to)h -Fp(export)d Fr(the)h(en)m(vironmen)m(t)g(v)-5 b(ariables)29 -b(b)s(efore)e(calling)i Fp(configure)p Fr(.)37 b(In)27 -b(a)h Fp(csh)0 740 y Fr(shell,)j(y)m(ou)g(ha)m(v)m(e)g(to)g(use)f(the)h -(`)p Fp(setenv)p Fr(')e(command)f(for)i(setting)i(eac)m(h)f(of)g(the)f -(en)m(vironmen)m(t)g(v)-5 b(ariables.)0 1040 y(On)34 -b(Lin)m(ux,)i Fp(g++)e Fr(needs)g(15)i(MB)f(to)h(compile)f(the)g -(tests.)55 b(So)34 b(y)m(ou)i(should)d(b)s(etter)i(ha)m(v)m(e)h(17)g -(MB)g(sw)m(ap)e(space)0 1164 y(and)c(1)h(MB)g(ro)s(om)e(in)h($TMPDIR.)0 -1464 y(If)d(y)m(ou)h(use)g Fp(g++)e Fr(v)m(ersion)i(2.7.x,)i(don't)e -(add)f(`)p Fp(-O2)p Fr(')g(to)i(the)f(CXXFLA)m(GS,)g(b)s(ecause)g(`)p -Fp(g++)h(-O)p Fr(')f(generates)h(b)s(etter)0 1588 y(co)s(de)i(for)f -(CLN)g(than)g(`)p Fp(g++)g(-O2)p Fr('.)0 1888 y(If)40 -b(y)m(ou)i(use)e Fp(g++)g Fr(v)m(ersion)h(2.8.x)i(or)e(egcs-2.91.x)j -(\(a.k.a.)73 b(egcs-1.1\))44 b(or)d(gcc-2.95.x,)47 b(I)41 -b(recommend)d(adding)0 2012 y(`)p Fp(-fno-exceptions)p +(\\)305 1397 y(CXX="g++)i(-V)h(egcs-2.91.60")d(CFLAGS="-O2)h +(-fno-exceptions")e(./configure)-30 1540 y Fr(Note)32 +b(that)g(for)e(these)i(en)m(vironmen)m(t)e(v)-5 b(ariables)32 +b(to)f(tak)m(e)i(e\013ect,)g(y)m(ou)e(ha)m(v)m(e)h(to)f(set)h(them)e +(\(assuming)g(a)h(Bourne-)-30 1649 y(compatible)i(shell\))g(on)g(the)g +(same)f(line)h(as)g(the)g Fp(configure)d Fr(command.)46 +b(If)32 b(y)m(ou)h(made)f(the)h(settings)h(in)e(earlier)-30 +1759 y(shell)g(commands,)e(y)m(ou)i(ha)m(v)m(e)h(to)g +Fp(export)d Fr(the)i(en)m(vironmen)m(t)f(v)-5 b(ariables)33 +b(b)s(efore)e(calling)i Fp(configure)p Fr(.)43 b(In)31 +b(a)h Fp(csh)-30 1868 y Fr(shell,)f(y)m(ou)g(ha)m(v)m(e)g(to)g(use)f +(the)h(`)p Fp(setenv)p Fr(')e(command)f(for)i(setting)i(eac)m(h)f(of)g +(the)f(en)m(vironmen)m(t)g(v)-5 b(ariables.)-30 2011 +y(On)28 b(Lin)m(ux,)h Fp(g++)f Fr(needs)h(15)g(MB)h(to)g(compile)f(the) +g(tests.)41 b(So)28 b(y)m(ou)i(should)e(b)s(etter)h(ha)m(v)m(e)h(17)g +(MB)f(sw)m(ap)g(space)h(and)-30 2120 y(1)h(MB)g(ro)s(om)e(in)h +($TMPDIR.)-30 2263 y(If)h(y)m(ou)h(use)g Fp(g++)e Fr(v)m(ersion)j +(2.7.x,)g(don't)f(add)f(`)p Fp(-O2)p Fr(')g(to)i(the)f(CXXFLA)m(GS,)g +(b)s(ecause)g(`)p Fp(g++)d(-O)p Fr(')j(generates)h(b)s(etter)-30 +2372 y(co)s(de)e(for)f(CLN)g(than)g(`)p Fp(g++)g(-O2)p +Fr('.)-30 2515 y(If)44 b(y)m(ou)h(use)f Fp(g++)g Fr(v)m(ersion)h(2.8.x) +h(or)e(egcs-2.91.x)k(\(a.k.a.)85 b(egcs-1.1\))47 b(or)e(gcc-2.95.x,)52 +b(I)44 b(recommend)e(adding)-30 2625 y(`)p Fp(-fno-exceptions)p Fr(')27 b(to)k(the)f(CXXFLA)m(GS.)i(This)d(will)i(lik)m(ely)h(generate) -g(b)s(etter)e(co)s(de.)0 2312 y(If)50 b(y)m(ou)g(use)g -Fp(g++)g Fr(v)m(ersion)g(egcs-2.91.x)k(\(egcs-1.1\))f(or)d(gcc-2.95.x)k -(on)c(Sparc,)55 b(add)50 b(either)g(`)p Fp(-O)p Fr(')g(or)h(`)p -Fp(-O2)0 2437 y(-fno-schedule-insns)p Fr(')21 b(to)26 -b(the)g(CXXFLA)m(GS.)g(With)g(full)g(`)p Fp(-O2)p Fr(',)g -Fp(g++)f Fr(miscompiles)f(the)i(division)g(routines.)0 -2561 y(Also,)31 b(for)f({enable-shared)h(to)g(w)m(ork,)g(y)m(ou)g(need) -f(egcs-1.1.2)k(or)c(new)m(er.)0 2861 y(By)36 b(default,)i(only)e(a)h -(static)h(library)d(is)h(built.)58 b(Y)-8 b(ou)36 b(can)h(build)e(CLN)g -(as)i(a)f(shared)f(library)h(to)s(o,)i(b)m(y)e(calling)0 -2985 y Fp(configure)43 b Fr(with)i(the)g(option)h(`)p -Fp(--enable-shared)p Fr('.)82 b(T)-8 b(o)46 b(get)g(it)g(built)f(as)h -(a)f(shared)g(library)g(only)-8 b(,)50 b(call)0 3110 +g(b)s(etter)e(co)s(de.)-30 2767 y(If)54 b(y)m(ou)g(use)g +Fp(g++)f Fr(v)m(ersion)i(egcs-2.91.x)i(\(egcs-1.1\))h(or)c(gcc-2.95.x)j +(on)d(Sparc,)60 b(add)54 b(either)g(`)p Fp(-O)p Fr(')g(or)h(`)p +Fp(-O2)-30 2877 y(-fno-schedule-insns)p Fr(')26 b(to)32 +b(the)f(CXXFLA)m(GS.)h(With)g(full)f(`)p Fp(-O2)p Fr(',)g +Fp(g++)f Fr(miscompiles)g(the)i(division)f(routines.)-30 +2986 y(Also,)g(for)f({enable-shared)h(to)g(w)m(ork,)g(y)m(ou)g(need)f +(egcs-1.1.2)k(or)c(new)m(er.)-30 3129 y(By)44 b(default,)j(only)c(a)h +(static)h(library)e(is)h(built.)79 b(Y)-8 b(ou)44 b(can)g(build)e(CLN)h +(as)h(a)g(shared)e(library)h(to)s(o,)48 b(b)m(y)43 b(call-)-30 +3238 y(ing)c Fp(configure)e Fr(with)i(the)g(option)h(`)p +Fp(--enable-shared)p Fr('.)63 b(T)-8 b(o)40 b(get)g(it)g(built)e(as)i +(a)f(shared)g(library)g(only)-8 b(,)42 b(call)-30 3348 y Fp(configure)28 b Fr(with)i(the)g(options)h(`)p Fp(--enable-shared)c -(--disable-static)p Fr('.)0 3409 y(If)j(y)m(ou)g(use)g -Fp(g++)f Fr(v)m(ersion)i(egcs-2.91.x)i(\(egcs-1.1\))h(on)c(Sparc,)f(y)m -(ou)i(cannot)g(use)e(`)p Fp(--enable-shared)p Fr(')e(b)s(ecause)0 -3534 y Fp(g++)i Fr(w)m(ould)i(miscompile)e(parts)h(of)g(the)h(library) --8 b(.)0 4213 y Fs(2.3)68 b(Installing)32 b(the)f(library)0 -4512 y Fr(As)f(with)g(an)m(y)h(auto)s(con\014guring)f(GNU)h(soft)m(w)m -(are,)h(installation)h(is)d(as)h(easy)g(as)f(this:)240 -4791 y Fp($)47 b(make)g(install)0 5091 y Fr(The)20 b(`)p -Fp(make)29 b(install)p Fr(')19 b(command)f(installs)j(the)f(library)g -(and)g(the)g(include)g(\014les)h(in)m(to)g(public)e(places)i(\(`)p -Fp(/usr/local/lib/)p Fr(')0 5215 y(and)28 b(`)p Fp(/usr/local/include/) -p Fr(',)d(if)k(y)m(ou)h(ha)m(v)m(en't)g(sp)s(eci\014ed)f(a)g -Fp(--prefix)e Fr(option)j(to)f Fp(configure)p Fr(\).)39 -b(This)28 b(step)0 5340 y(ma)m(y)i(require)g(sup)s(eruser)e -(privileges.)p eop -%%Page: 6 8 -6 7 bop 0 -116 a Fr(Chapter)30 b(2:)41 b(Installation)2939 -b(6)0 366 y(If)40 b(y)m(ou)i(ha)m(v)m(e)g(already)f(built)g(the)g -(library)f(and)g(wish)g(to)i(install)g(it,)i(but)c(didn't)g(sp)s(ecify) -h Fp(--prefix=)p Fn(:)15 b(:)g(:)39 b Fr(at)0 491 y(con\014gure)g -(time,)i(just)d(re-run)g Fp(configure)p Fr(,)h(giving)h(it)f(the)g -(same)g(options)g(as)g(the)g(\014rst)f(time,)j(plus)d(the)i -Fp(--)0 616 y(prefix=)p Fn(:)15 b(:)g(:)29 b Fr(option.)0 -1064 y Fs(2.4)68 b(Cleaning)32 b(up)0 1338 y Fr(Y)-8 +(--disable-static)p Fr('.)-30 3490 y(If)34 b(y)m(ou)h(use)g +Fp(g++)e Fr(v)m(ersion)j(egcs-2.91.x)h(\(egcs-1.1\))h(on)d(Sparc,)g(y)m +(ou)g(cannot)h(use)e(`)p Fp(--enable-shared)p Fr(')d(b)s(ecause)-30 +3600 y Fp(g++)e Fr(w)m(ould)i(miscompile)e(parts)h(of)g(the)h(library) +-8 b(.)-30 3840 y Fn(2.2.1)63 b(Using)42 b(the)f(GNU)g(MP)h(Library)-30 +4041 y Fr(Starting)27 b(with)g(v)m(ersion)g(1.0.4,)i(CLN)e(ma)m(y)f(b)s +(e)g(con\014gured)g(to)h(mak)m(e)g(use)f(of)h(a)g(preinstalled)g +Fp(gmp)f Fr(library)-8 b(.)40 b(Please)-30 4150 y(mak)m(e)g(sure)f +(that)h(y)m(ou)g(ha)m(v)m(e)h(at)f(least)h Fp(gmp)e Fr(v)m(ersion)h +(3.0)h(installed)f(since)g(earlier)h(v)m(ersions)f(are)g(unsupp)s +(orted)-30 4260 y(and)30 b(lik)m(ely)i(not)f(to)h(w)m(ork.)41 +b(Enabling)31 b(this)f(feature)h(b)m(y)g(calling)h Fp(configure)c +Fr(with)j(the)f(option)i(`)p Fp(--with-gmp)p Fr(')c(is)-30 +4369 y(kno)m(wn)i(to)h(b)s(e)f(quite)h(a)f(b)s(o)s(ost)g(for)g(CLN's)g +(p)s(erformance.)-30 4512 y(If)35 b(y)m(ou)g(ha)m(v)m(e)i(installed)f +(the)f Fp(gmp)f Fr(library)h(and)f(its)i(header)f(\014le)g(in)g(some)g +(place)h(where)e(y)m(our)i(compiler)e(cannot)-30 4622 +y(\014nd)27 b(it)j(b)m(y)f(default,)h(y)m(ou)f(m)m(ust)f(help)h +Fp(configure)d Fr(b)m(y)j(setting)h Fp(CPPFLAGS)d Fr(and)h +Fp(LDFLAGS)p Fr(.)38 b(Here)30 b(is)f(an)g(example:)210 +4758 y Fp($)47 b(CC="gcc")f(CFLAGS="-O2")e(CXX="g++")i(CXXFLAGS="-O2)e +(-fno-exceptions")f(\\)305 4862 y(CPPFLAGS="-I/opt/gmp/inclu)o(de")e +(LDFLAGS="-L/opt/gmp/lib")g(./configure)k(--with-gmp)-30 +5139 y Fs(2.3)68 b(Installing)47 b(the)e(library)-30 +5340 y Fr(As)30 b(with)g(an)m(y)h(auto)s(con\014guring)f(GNU)h(soft)m +(w)m(are,)h(installation)h(is)d(as)h(easy)g(as)f(this:)p +eop +%%Page: 5 7 +5 6 bop -30 -116 a Fr(Chapter)30 b(2:)41 b(Installation)2999 +b(5)210 299 y Fp($)47 b(make)g(install)-30 433 y Fr(The)66 +b(`)p Fp(make)30 b(install)p Fr(')65 b(command)f(installs)k(the)f +(library)f(and)h(the)g(include)f(\014les)h(in)m(to)h(public)e(places) +-30 543 y(\(`)p Fp(/usr/local/lib/)p Fr(')41 b(and)j(`)p +Fp(/usr/local/include/)p Fr(',)f(if)i(y)m(ou)g(ha)m(v)m(en't)g(sp)s +(eci\014ed)f(a)h Fp(--prefix)d Fr(option)j(to)-30 653 +y Fp(configure)p Fr(\).)39 b(This)29 b(step)i(ma)m(y)f(require)g(sup)s +(eruser)e(privileges.)-30 787 y(If)42 b(y)m(ou)g(ha)m(v)m(e)i(already)f +(built)f(the)g(library)g(and)g(wish)f(to)i(install)g(it,)j(but)c +(didn't)f(sp)s(ecify)h Fp(--prefix=...)d Fr(at)-30 897 +y(con\014gure)j(time,)k(just)c(re-run)f Fp(configure)p +Fr(,)i(giving)h(it)f(the)g(same)f(options)g(as)h(the)g(\014rst)f(time,) +j(plus)d(the)h Fp(--)-30 1006 y(prefix=...)28 b Fr(option.)-30 +1264 y Fs(2.4)68 b(Cleaning)46 b(up)-30 1456 y Fr(Y)-8 b(ou)31 b(can)g(remo)m(v)m(e)f(system-dep)s(enden)m(t)f(\014les)i -(generated)g(b)m(y)f Fp(make)f Fr(through)240 1591 y -Fp($)47 b(make)g(clean)0 1865 y Fr(Y)-8 b(ou)28 b(can)f(remo)m(v)m(e)h -(all)g(\014les)f(generated)h(b)m(y)f Fp(make)p Fr(,)g(th)m(us)g(rev)m -(erting)h(to)g(a)g(virgin)f(distribution)f(of)i(CLN,)f(through)240 -2118 y Fp($)47 b(make)g(distclean)p eop +(generated)g(b)m(y)f Fp(make)f Fr(through)210 1585 y +Fp($)47 b(make)g(clean)-30 1719 y Fr(Y)-8 b(ou)31 b(can)g(remo)m(v)m(e) +f(all)i(\014les)e(generated)h(b)m(y)g Fp(make)p Fr(,)e(th)m(us)h(rev)m +(erting)h(to)h(a)e(virgin)h(distribution)e(of)i(CLN,)f(through)210 +1848 y Fp($)47 b(make)g(distclean)p eop +%%Page: 6 8 +6 7 bop -30 -116 a Fr(Chapter)30 b(3:)41 b(Ordinary)29 +b(n)m(um)m(b)s(er)f(t)m(yp)s(es)2517 b(6)-30 299 y Fo(3)80 +b(Ordinary)55 b(n)l(um)l(b)t(er)c(t)l(yp)t(es)-30 539 +y Fr(CLN)30 b(implemen)m(ts)f(the)h(follo)m(wing)i(class)f(hierarc)m(h) +m(y:)1355 670 y Fp(Number)1308 773 y(cl_number)1212 877 +y()1451 981 y(|)1451 1085 y(|)1021 1189 +y(Real)47 b(or)g(complex)f(number)1355 1292 y(cl_N)1212 +1396 y()1451 1500 y(|)1451 1604 y(|)1212 +1707 y(Real)h(number)1355 1811 y(cl_R)1260 1915 y()1451 +2019 y(|)496 2123 y(+-------------------+-----)o(---)o(----)o(----)o +(---)o(+)496 2226 y(|)1861 b(|)210 2330 y(Rational)46 +b(number)1000 b(Floating-point)44 b(number)401 2434 y(cl_RA)1669 +b(cl_F)210 2538 y()1237 b()496 +2641 y(|)1861 b(|)496 2745 y(|)859 b(+-------------+----------)o(---+)o +(---)o(----)o(----)o(--+)353 2849 y(Integer)714 b(|)620 +b(|)h(|)f(|)401 2953 y(cl_I)572 b(Short-Float)140 b(Single-Float)92 +b(Double-Float)140 b(Long-Float)258 3057 y()378 +b(cl_SF)428 b(cl_FF)g(cl_DF)g(cl_LF)1117 3160 y()44 +b()g()g()-30 3297 +y Fr(The)28 b(base)h(class)h Fp(cl_number)c Fr(is)j(an)g(abstract)g +(base)g(class.)41 b(It)29 b(is)g(not)g(useful)f(to)i(declare)f(a)h(v)-5 +b(ariable)29 b(of)g(this)g(t)m(yp)s(e)-30 3406 y(except)g(if)f(y)m(ou)g +(w)m(an)m(t)h(to)g(completely)f(disable)g(compile-time)g(t)m(yp)s(e)h +(c)m(hec)m(king)g(and)f(use)f(run-time)g(t)m(yp)s(e)h(c)m(hec)m(king) +-30 3516 y(instead.)-30 3653 y(The)h(class)i Fp(cl_N)d +Fr(comprises)h(real)h(and)f(complex)g(n)m(um)m(b)s(ers.)39 +b(There)29 b(is)g(no)h(sp)s(ecial)g(class)h(for)e(complex)g(n)m(um)m(b) +s(ers)-30 3762 y(since)i(complex)f(n)m(um)m(b)s(ers)e(with)i(imaginary) +g(part)g Fp(0)g Fr(are)h(automatically)h(con)m(v)m(erted)g(to)f(real)g +(n)m(um)m(b)s(ers.)-30 3899 y(The)f(class)h Fp(cl_R)e +Fr(comprises)h(real)h(n)m(um)m(b)s(ers)d(of)i(di\013eren)m(t)h(kinds.) +40 b(It)30 b(is)h(an)f(abstract)h(class.)-30 4035 y(The)37 +b(class)g Fp(cl_RA)f Fr(comprises)g(exact)j(real)f(n)m(um)m(b)s(ers:)51 +b(rational)39 b(n)m(um)m(b)s(ers,)d(including)h(in)m(tegers.)62 +b(There)37 b(is)g(no)-30 4145 y(sp)s(ecial)31 b(class)f(for)g(non-in)m +(tegral)i(rational)f(n)m(um)m(b)s(ers)d(since)i(rational)h(n)m(um)m(b)s +(ers)d(with)i(denominator)f Fp(1)h Fr(are)g(auto-)-30 +4254 y(matically)h(con)m(v)m(erted)h(to)f(in)m(tegers.)-30 +4391 y(The)f(class)h Fp(cl_F)e Fr(implemen)m(ts)g(\015oating-p)s(oin)m +(t)j(appro)m(ximations)e(to)h(real)g(n)m(um)m(b)s(ers.)38 +b(It)31 b(is)f(an)g(abstract)i(class.)-30 4653 y Fs(3.1)68 +b(Exact)46 b(n)l(um)l(b)t(ers)-30 4848 y Fr(Some)24 b(n)m(um)m(b)s(ers) +f(are)j(represen)m(ted)g(as)f(exact)i(n)m(um)m(b)s(ers:)36 +b(there)26 b(is)f(no)h(loss)f(of)h(information)f(when)f(suc)m(h)h(a)h +(n)m(um)m(b)s(er)-30 4957 y(is)43 b(con)m(v)m(erted)i(from)d(its)h +(mathematical)h(v)-5 b(alue)44 b(to)g(its)f(in)m(ternal)h(represen)m +(tation.)80 b(On)43 b(exact)i(n)m(um)m(b)s(ers,)f(the)-30 +5067 y(elemen)m(tary)31 b(op)s(erations)g(\()p Fp(+)p +Fr(,)f Fp(-)p Fr(,)g Fp(*)p Fr(,)h Fp(/)p Fr(,)f(comparisons,)35 +b(.)23 b(.)f(.)11 b(\))31 b(compute)e(the)i(completely)g(correct)h +(result.)-30 5203 y(In)e(CLN,)g(the)g(exact)i(n)m(um)m(b)s(ers)c(are:) +45 5340 y Fq(\017)60 b Fr(rational)32 b(n)m(um)m(b)s(ers)c(\(including) +i(in)m(tegers\),)p eop %%Page: 7 9 -7 8 bop 0 -116 a Fr(Chapter)30 b(3:)41 b(Ordinary)29 -b(n)m(um)m(b)s(er)f(t)m(yp)s(es)2457 b(7)0 366 y Fo(3)80 -b(Ordinary)32 b(n)l(um)l(b)t(er)27 b(t)l(yp)t(es)0 809 -y Fr(CLN)j(implemen)m(ts)f(the)h(follo)m(wing)i(class)f(hierarc)m(h)m -(y:)1385 1076 y Fp(Number)1338 1180 y(cl_number)1242 -1283 y()1481 1387 y(|)1481 1491 y(|)1051 -1595 y(Real)47 b(or)g(complex)f(number)1385 1698 y(cl_N)1242 -1802 y()1481 1906 y(|)1481 2010 y(|)1242 -2114 y(Real)h(number)1385 2217 y(cl_R)1290 2321 y()1481 -2425 y(|)526 2529 y(+-------------------+-----)o(---)o(----)o(----)o -(---)o(+)526 2632 y(|)1861 b(|)240 2736 y(Rational)46 -b(number)1000 b(Floating-point)44 b(number)431 2840 y(cl_RA)1669 -b(cl_F)240 2944 y()1237 b()526 -3048 y(|)1861 b(|)526 3151 y(|)859 b(+-------------+----------)o(---+)o -(---)o(----)o(----)o(--+)383 3255 y(Integer)714 b(|)620 -b(|)h(|)f(|)431 3359 y(cl_I)572 b(Short-Float)140 b(Single-Float)92 -b(Double-Float)140 b(Long-Float)288 3463 y()378 -b(cl_SF)428 b(cl_FF)g(cl_DF)g(cl_LF)1147 3566 y()44 -b()g()g()0 3854 -y Fr(The)36 b(base)g(class)h Fp(cl_number)d Fr(is)i(an)g(abstract)h -(base)f(class.)59 b(It)36 b(is)g(not)h(useful)e(to)i(declare)g(a)g(v)-5 -b(ariable)37 b(of)f(this)0 3979 y(t)m(yp)s(e)f(except)i(if)e(y)m(ou)g -(w)m(an)m(t)h(to)g(completely)g(disable)g(compile-time)f(t)m(yp)s(e)g -(c)m(hec)m(king)i(and)e(use)g(run-time)f(t)m(yp)s(e)0 -4103 y(c)m(hec)m(king)e(instead.)0 4391 y(The)25 b(class)h -Fp(cl_N)f Fr(comprises)f(real)i(and)f(complex)g(n)m(um)m(b)s(ers.)37 -b(There)25 b(is)g(no)h(sp)s(ecial)g(class)g(for)f(complex)g(n)m(um)m(b) -s(ers)0 4515 y(since)31 b(complex)f(n)m(um)m(b)s(ers)e(with)i -(imaginary)g(part)g Fp(0)g Fr(are)h(automatically)h(con)m(v)m(erted)g -(to)f(real)g(n)m(um)m(b)s(ers.)0 4803 y(The)f(class)h -Fp(cl_R)e Fr(comprises)h(real)h(n)m(um)m(b)s(ers)d(of)i(di\013eren)m(t) -h(kinds.)40 b(It)30 b(is)h(an)f(abstract)h(class.)0 5091 -y(The)41 b(class)i Fp(cl_RA)e Fr(comprises)f(exact)k(real)e(n)m(um)m(b) -s(ers:)62 b(rational)43 b(n)m(um)m(b)s(ers,)f(including)g(in)m(tegers.) -76 b(There)42 b(is)0 5215 y(no)34 b(sp)s(ecial)g(class)h(for)f(non-in)m -(tegral)h(rational)h(n)m(um)m(b)s(ers)31 b(since)j(rational)i(n)m(um)m -(b)s(ers)31 b(with)j(denominator)f Fp(1)h Fr(are)0 5340 -y(automatically)e(con)m(v)m(erted)g(to)f(in)m(tegers.)p -eop -%%Page: 8 10 -8 9 bop 0 -116 a Fr(Chapter)30 b(3:)41 b(Ordinary)29 -b(n)m(um)m(b)s(er)f(t)m(yp)s(es)2457 b(8)0 366 y(The)30 -b(class)h Fp(cl_F)e Fr(implemen)m(ts)g(\015oating-p)s(oin)m(t)j(appro)m -(ximations)e(to)h(real)g(n)m(um)m(b)s(ers.)38 b(It)31 -b(is)f(an)g(abstract)i(class.)0 802 y Fs(3.1)68 b(Exact)31 -b(n)l(um)l(b)t(ers)0 1076 y Fr(Some)42 b(n)m(um)m(b)s(ers)e(are)j -(represen)m(ted)f(as)h(exact)h(n)m(um)m(b)s(ers:)63 b(there)42 -b(is)h(no)f(loss)h(of)g(information)f(when)f(suc)m(h)i(a)0 -1200 y(n)m(um)m(b)s(er)25 b(is)i(con)m(v)m(erted)i(from)d(its)h -(mathematical)h(v)-5 b(alue)28 b(to)g(its)f(in)m(ternal)h(represen)m -(tation.)41 b(On)26 b(exact)j(n)m(um)m(b)s(ers,)0 1325 -y(the)i(elemen)m(tary)f(op)s(erations)h(\()p Fp(+)p Fr(,)g -Fp(-)p Fr(,)f Fp(*)p Fr(,)g Fp(/)p Fr(,)h(comparisons,)e -Fn(:)15 b(:)g(:)q Fr(\))31 b(compute)f(the)g(completely)h(correct)h -(result.)0 1599 y(In)e(CLN,)g(the)g(exact)i(n)m(um)m(b)s(ers)c(are:)75 -1873 y Fq(\017)60 b Fr(rational)32 b(n)m(um)m(b)s(ers)c(\(including)i -(in)m(tegers\),)75 2019 y Fq(\017)60 b Fr(complex)30 -b(n)m(um)m(b)s(ers)e(whose)i(real)h(and)f(imaginary)g(parts)g(are)h(b)s -(oth)e(rational)j(n)m(um)m(b)s(ers.)0 2314 y(Rational)26 -b(n)m(um)m(b)s(ers)d(are)i(alw)m(a)m(ys)h(normalized)e(to)i(the)f(form) -e Fk(n)m(umerator)7 b Fp(/)p Fk(denominator)29 b Fr(where)24 -b(the)h(n)m(umerator)0 2439 y(and)e(denominator)f(are)i(coprime)e(in)m -(tegers)i(and)f(the)g(denominator)g(is)g(p)s(ositiv)m(e.)39 -b(If)23 b(the)g(resulting)h(denominator)0 2564 y(is)30 -b Fp(1)p Fr(,)h(the)f(rational)i(n)m(um)m(b)s(er)c(is)i(con)m(v)m -(erted)i(to)f(an)g(in)m(teger.)0 2838 y(Small)d(in)m(tegers)j(\(t)m -(ypically)g(in)e(the)g(range)h Fp(-2^30)p Fn(:)15 b(:)g(:)p -Fp(2^30-1)p Fr(,)28 b(for)h(32-bit)h(mac)m(hines\))f(are)h(esp)s -(ecially)g(e\016cien)m(t,)0 2962 y(b)s(ecause)c(they)g(consume)f(no)h -(heap)g(allo)s(cation.)41 b(Otherwise)26 b(the)g(distinction)h(b)s(et)m -(w)m(een)f(these)h(immediate)e(in)m(te-)0 3087 y(gers)31 -b(\(called)h(\\\014xn)m(ums"\))d(and)g(heap)i(allo)s(cated)h(in)m -(tegers)g(\(called)g(\\bign)m(ums"\))d(is)i(completely)g(transparen)m -(t.)0 3522 y Fs(3.2)68 b(Floating-p)t(oin)l(t)32 b(n)l(um)l(b)t(ers)0 -3796 y Fr(Not)37 b(all)g(real)g(n)m(um)m(b)s(ers)d(can)j(b)s(e)e -(represen)m(ted)i(exactly)-8 b(.)60 b(\(There)36 b(is)h(an)f(easy)h -(mathematical)f(pro)s(of)g(for)g(this:)0 3920 y(Only)31 -b(a)h(coun)m(table)h(set)f(of)g(n)m(um)m(b)s(ers)d(can)j(b)s(e)f -(stored)g(exactly)j(in)d(a)h(computer,)f(ev)m(en)h(if)g(one)g(assumes)e -(that)i(it)0 4045 y(has)f(unlimited)e(storage.)45 b(But)31 -b(there)g(are)g(uncoun)m(tably)g(man)m(y)f(real)i(n)m(um)m(b)s(ers.\)) -41 b(So)31 b(some)f(appro)m(ximation)h(is)0 4169 y(needed.)40 +7 8 bop -30 -116 a Fr(Chapter)30 b(3:)41 b(Ordinary)29 +b(n)m(um)m(b)s(er)f(t)m(yp)s(es)2517 b(7)45 299 y Fq(\017)60 +b Fr(complex)30 b(n)m(um)m(b)s(ers)e(whose)i(real)h(and)f(imaginary)g +(parts)g(are)h(b)s(oth)e(rational)j(n)m(um)m(b)s(ers.)-30 +463 y(Rational)g(n)m(um)m(b)s(ers)27 b(are)k(alw)m(a)m(ys)h(normalized) +e(to)g(the)h(form)e Fl(n)m(umerator)7 b Fp(/)p Fl(denominator)34 +b Fr(where)29 b(the)i(n)m(umerator)-30 573 y(and)c(denominator)h(are)g +(coprime)f(in)m(tegers)j(and)d(the)h(denominator)g(is)g(p)s(ositiv)m +(e.)41 b(If)27 b(the)i(resulting)f(denominator)-30 682 +y(is)i Fp(1)p Fr(,)h(the)f(rational)i(n)m(um)m(b)s(er)c(is)i(con)m(v)m +(erted)i(to)f(an)g(in)m(teger.)-30 820 y(Small)g(in)m(tegers)i(\(t)m +(ypically)h(in)d(the)h(range)g Fp(-2^30)6 b Fr(.)20 b(.)j(.)11 +b Fp(2^30-1)p Fr(,)30 b(for)i(32-bit)h(mac)m(hines\))e(are)h(esp)s +(ecially)h(e\016cien)m(t,)-30 930 y(b)s(ecause)e(they)g(consume)f(no)h +(heap)g(allo)s(cation.)45 b(Otherwise)31 b(the)g(distinction)h(b)s(et)m +(w)m(een)g(these)g(immediate)e(in)m(te-)-30 1039 y(gers)h(\(called)h +(\\\014xn)m(ums"\))d(and)g(heap)i(allo)s(cated)h(in)m(tegers)g +(\(called)g(\\bign)m(ums"\))d(is)i(completely)g(transparen)m(t.)-30 +1305 y Fs(3.2)68 b(Floating-p)t(oin)l(t)46 b(n)l(um)l(b)t(ers)-30 +1501 y Fr(Not)41 b(all)f(real)h(n)m(um)m(b)s(ers)c(can)j(b)s(e)f +(represen)m(ted)h(exactly)-8 b(.)71 b(\(There)40 b(is)g(an)g(easy)g +(mathematical)g(pro)s(of)f(for)h(this:)-30 1611 y(Only)34 +b(a)i(coun)m(table)g(set)f(of)g(n)m(um)m(b)s(ers)e(can)i(b)s(e)f +(stored)h(exactly)i(in)d(a)i(computer,)f(ev)m(en)g(if)g(one)g(assumes)f +(that)h(it)-30 1720 y(has)f(unlimited)g(storage.)54 b(But)35 +b(there)g(are)g(uncoun)m(tably)f(man)m(y)g(real)h(n)m(um)m(b)s(ers.\)) +51 b(So)34 b(some)g(appro)m(ximation)h(is)-30 1830 y(needed.)40 b(CLN)30 b(implemen)m(ts)f(ordinary)h(\015oating-p)s(oin)m(t)h(n)m(um)m -(b)s(ers,)e(with)h(man)m(tissa)g(and)g(exp)s(onen)m(t.)0 -4443 y(The)c(elemen)m(tary)i(op)s(erations)f(\()p Fp(+)p -Fr(,)g Fp(-)p Fr(,)h Fp(*)p Fr(,)f Fp(/)p Fr(,)h Fn(:)15 -b(:)g(:)q Fr(\))27 b(only)g(return)e(appro)m(ximate)i(results.)40 -b(F)-8 b(or)27 b(example,)g(the)g(v)-5 b(alue)0 4568 -y(of)31 b(the)h(expression)f Fp(\(cl_F\))d(0.3)i(+)g(\(cl_F\))f(0.4)h -Fr(prin)m(ts)h(as)g(`)p Fp(0.70000005)p Fr(',)e(not)j(as)f(`)p -Fp(0.7)p Fr('.)43 b(Rounding)30 b(errors)0 4692 y(lik)m(e)i(this)e(one) -h(are)f(inevitable)i(when)d(computing)h(with)g(\015oating-p)s(oin)m(t)i -(n)m(um)m(b)s(ers.)0 4966 y(Nev)m(ertheless,)41 b(CLN)36 -b(rounds)g(the)h(\015oating-p)s(oin)m(t)i(results)e(of)g(the)g(op)s -(erations)h Fp(+)p Fr(,)h Fp(-)p Fr(,)f Fp(*)p Fr(,)h -Fp(/)p Fr(,)g Fp(sqrt)d Fr(according)0 5091 y(to)c(the)f(\\round-to-ev) -m(en")h(rule:)42 b(It)31 b(\014rst)f(computes)g(the)h(exact)h -(mathematical)f(result)g(and)g(then)f(returns)g(the)0 -5215 y(\015oating-p)s(oin)m(t)37 b(n)m(um)m(b)s(er)c(whic)m(h)i(is)h -(nearest)g(to)h(this.)56 b(If)35 b(t)m(w)m(o)i(\015oating-p)s(oin)m(t)g -(n)m(um)m(b)s(ers)c(are)j(equally)g(distan)m(t)0 5340 -y(from)29 b(the)h(ideal)i(result,)e(the)h(one)f(with)g(a)h -Fp(0)f Fr(in)g(its)h(least)h(signi\014can)m(t)f(man)m(tissa)f(bit)h(is) -f(c)m(hosen.)p eop -%%Page: 9 11 -9 10 bop 0 -116 a Fr(Chapter)30 b(3:)41 b(Ordinary)29 -b(n)m(um)m(b)s(er)f(t)m(yp)s(es)2457 b(9)0 366 y(Similarly)-8 -b(,)48 b(testing)d(\015oating)g(p)s(oin)m(t)f(n)m(um)m(b)s(ers)e(for)i -(equalit)m(y)i(`)p Fp(x)30 b(==)g(y)p Fr(')44 b(is)h(gam)m(bling)f -(with)g(random)e(errors.)0 491 y(Better)32 b(c)m(hec)m(k)g(for)e(`)p -Fp(abs\(x)f(-)h(y\))g(<)g(epsilon)p Fr(')f(for)h(some)f(w)m(ell-c)m -(hosen)k Fp(epsilon)p Fr(.)0 850 y(Floating)f(p)s(oin)m(t)f(n)m(um)m(b) -s(ers)d(come)i(in)g(four)g(\015a)m(v)m(ors:)75 1209 y -Fq(\017)60 b Fr(Short)24 b(\015oats,)j(t)m(yp)s(e)d Fp(cl_SF)p -Fr(.)38 b(They)24 b(ha)m(v)m(e)i(1)f(sign)g(bit,)h(8)f(exp)s(onen)m(t)f -(bits)h(\(including)g(the)g(exp)s(onen)m(t's)f(sign\),)180 -1333 y(and)30 b(17)h(man)m(tissa)f(bits)h(\(including)f(the)g -(\\hidden")g(bit\).)41 b(They)30 b(don't)h(consume)e(heap)h(allo)s -(cation.)75 1568 y Fq(\017)60 b Fr(Single)40 b(\015oats,)i(t)m(yp)s(e)e -Fp(cl_FF)p Fr(.)66 b(They)39 b(ha)m(v)m(e)h(1)g(sign)g(bit,)h(8)f(exp)s -(onen)m(t)g(bits)f(\(including)g(the)h(exp)s(onen)m(t's)180 -1692 y(sign\),)j(and)c(24)h(man)m(tissa)g(bits)g(\(including)f(the)h -(\\hidden")f(bit\).)69 b(In)39 b(CLN,)h(they)g(are)g(represen)m(ted)g -(as)180 1817 y(IEEE)g(single-precision)h(\015oating)g(p)s(oin)m(t)g(n)m -(um)m(b)s(ers.)68 b(This)39 b(corresp)s(onds)g(closely)j(to)f(the)f -(C/C)p Fp(++)g Fr(t)m(yp)s(e)180 1941 y(`)p Fp(float)p -Fr('.)75 2176 y Fq(\017)60 b Fr(Double)34 b(\015oats,)i(t)m(yp)s(e)e -Fp(cl_DF)p Fr(.)50 b(They)34 b(ha)m(v)m(e)h(1)f(sign)g(bit,)h(11)g(exp) -s(onen)m(t)f(bits)g(\(including)g(the)g(exp)s(onen)m(t's)180 -2300 y(sign\),)43 b(and)c(53)h(man)m(tissa)g(bits)g(\(including)f(the)h -(\\hidden")f(bit\).)69 b(In)39 b(CLN,)h(they)g(are)g(represen)m(ted)g -(as)180 2425 y(IEEE)d(double-precision)g(\015oating)h(p)s(oin)m(t)f(n)m -(um)m(b)s(ers.)59 b(This)36 b(corresp)s(onds)g(closely)j(to)f(the)f -(C/C)p Fp(++)g Fr(t)m(yp)s(e)180 2549 y(`)p Fp(double)p -Fr('.)75 2784 y Fq(\017)60 b Fr(Long)23 b(\015oats,)i(t)m(yp)s(e)e -Fp(cl_LF)p Fr(.)37 b(They)22 b(ha)m(v)m(e)i(1)f(sign)g(bit,)i(32)e(exp) -s(onen)m(t)g(bits)g(\(including)f(the)h(exp)s(onen)m(t's)g(sign\),)180 -2908 y(and)k(n)h(man)m(tissa)g(bits)g(\(including)g(the)g(\\hidden")g -(bit\),)h(where)e(n)h Fp(>)p Fr(=)f(64.)41 b(The)28 b(precision)g(of)g -(a)h(long)f(\015oat)180 3033 y(is)i(unlimited,)g(but)f(once)i(created,) +(b)s(ers,)e(with)h(man)m(tissa)g(and)g(exp)s(onen)m(t.)-30 +1968 y(The)e(elemen)m(tary)i(op)s(erations)f(\()p Fp(+)p +Fr(,)h Fp(-)p Fr(,)f Fp(*)p Fr(,)g Fp(/)p Fr(,)35 b(.)22 +b(.)h(.)11 b(\))29 b(only)g(return)f(appro)m(ximate)h(results.)40 +b(F)-8 b(or)30 b(example,)f(the)g(v)-5 b(alue)-30 2077 +y(of)36 b(the)g(expression)f Fp(\(cl_F\))29 b(0.3)g(+)i(\(cl_F\))d(0.4) +35 b Fr(prin)m(ts)g(as)h(`)p Fp(0.70000005)p Fr(',)f(not)h(as)g(`)p +Fp(0.7)p Fr('.)57 b(Rounding)34 b(errors)-30 2187 y(lik)m(e)e(this)e +(one)h(are)f(inevitable)i(when)d(computing)h(with)g(\015oating-p)s(oin) +m(t)i(n)m(um)m(b)s(ers.)-30 2325 y(Nev)m(ertheless,)46 +b(CLN)40 b(rounds)g(the)h(\015oating-p)s(oin)m(t)h(results)f(of)h(the)f +(op)s(erations)g Fp(+)p Fr(,)j Fp(-)p Fr(,)g Fp(*)p Fr(,)f +Fp(/)p Fr(,)h Fp(sqrt)c Fr(according)-30 2434 y(to)c(the)f +(\\round-to-ev)m(en")h(rule:)50 b(It)35 b(\014rst)f(computes)g(the)h +(exact)h(mathematical)f(result)g(and)g(then)f(returns)g(the)-30 +2544 y(\015oating-p)s(oin)m(t)26 b(n)m(um)m(b)s(er)c(whic)m(h)j(is)f +(nearest)h(to)h(this.)38 b(If)25 b(t)m(w)m(o)h(\015oating-p)s(oin)m(t)g +(n)m(um)m(b)s(ers)c(are)j(equally)g(distan)m(t)g(from)-30 +2653 y(the)31 b(ideal)g(result,)f(the)h(one)g(with)f(a)g +Fp(0)g Fr(in)g(its)h(least)h(signi\014can)m(t)f(man)m(tissa)f(bit)h(is) +f(c)m(hosen.)-30 2791 y(Similarly)-8 b(,)26 b(testing)h(\015oating)f(p) +s(oin)m(t)f(n)m(um)m(b)s(ers)e(for)i(equalit)m(y)i(`)p +Fp(x)j(==)g(y)p Fr(')25 b(is)g(gam)m(bling)h(with)f(random)e(errors.)38 +b(Better)-30 2901 y(c)m(hec)m(k)32 b(for)e(`)p Fp(abs\(x)f(-)h(y\))g(<) +g(epsilon)p Fr(')f(for)h(some)g(w)m(ell-c)m(hosen)i Fp(epsilon)p +Fr(.)-30 3039 y(Floating)g(p)s(oin)m(t)f(n)m(um)m(b)s(ers)d(come)i(in)g +(four)g(\015a)m(v)m(ors:)45 3176 y Fq(\017)60 b Fr(Short)28 +b(\015oats,)i(t)m(yp)s(e)g Fp(cl_SF)p Fr(.)38 b(They)29 +b(ha)m(v)m(e)h(1)f(sign)g(bit,)h(8)f(exp)s(onen)m(t)g(bits)g +(\(including)g(the)g(exp)s(onen)m(t's)g(sign\),)150 3286 +y(and)h(17)h(man)m(tissa)f(bits)h(\(including)f(the)g(\\hidden")g +(bit\).)41 b(They)30 b(don't)h(consume)e(heap)h(allo)s(cation.)45 +3422 y Fq(\017)60 b Fr(Single)43 b(\015oats,)k(t)m(yp)s(e)c +Fp(cl_FF)p Fr(.)78 b(They)42 b(ha)m(v)m(e)i(1)g(sign)f(bit,)j(8)e(exp)s +(onen)m(t)f(bits)g(\(including)g(the)g(exp)s(onen)m(t's)150 +3532 y(sign\),)29 b(and)e(24)i(man)m(tissa)e(bits)h(\(including)g(the)g +(\\hidden")f(bit\).)40 b(In)27 b(CLN,)h(they)g(are)g(represen)m(ted)g +(as)g(IEEE)150 3641 y(single-precision)k(\015oating)f(p)s(oin)m(t)f(n)m +(um)m(b)s(ers.)39 b(This)29 b(corresp)s(onds)g(closely)j(to)f(the)g +(C/C)p Fp(++)e Fr(t)m(yp)s(e)i(`)p Fp(float)p Fr('.)45 +3777 y Fq(\017)60 b Fr(Double)38 b(\015oats,)i(t)m(yp)s(e)e +Fp(cl_DF)p Fr(.)61 b(They)37 b(ha)m(v)m(e)i(1)f(sign)f(bit,)j(11)e(exp) +s(onen)m(t)g(bits)g(\(including)f(the)h(exp)s(onen)m(t's)150 +3887 y(sign\),)29 b(and)e(53)i(man)m(tissa)e(bits)h(\(including)g(the)g +(\\hidden")f(bit\).)40 b(In)27 b(CLN,)h(they)g(are)g(represen)m(ted)g +(as)g(IEEE)150 3997 y(double-precision)i(\015oating)i(p)s(oin)m(t)e(n)m +(um)m(b)s(ers.)38 b(This)30 b(corresp)s(onds)f(closely)j(to)f(the)g +(C/C)p Fp(++)e Fr(t)m(yp)s(e)i(`)p Fp(double)p Fr('.)45 +4133 y Fq(\017)60 b Fr(Long)27 b(\015oats,)i(t)m(yp)s(e)e +Fp(cl_LF)p Fr(.)38 b(They)27 b(ha)m(v)m(e)h(1)g(sign)f(bit,)h(32)g(exp) +s(onen)m(t)f(bits)g(\(including)g(the)g(exp)s(onen)m(t's)g(sign\),)150 +4242 y(and)k(n)g(man)m(tissa)g(bits)h(\(including)f(the)h(\\hidden")f +(bit\),)i(where)e(n)g Fp(>)p Fr(=)g(64.)45 b(The)31 b(precision)g(of)h +(a)g(long)g(\015oat)150 4352 y(is)e(unlimited,)g(but)f(once)i(created,) h(a)f(long)g(\015oat)g(has)f(a)h(\014xed)f(precision.)40 -b(\(No)32 b(\\lazy)g(recomputation".\))0 3501 y(Of)27 -b(course,)h(computations)f(with)g(long)g(\015oats)h(are)g(more)e(exp)s -(ensiv)m(e)h(than)g(those)h(with)f(smaller)g(\015oating-p)s(oin)m(t)0 -3626 y(formats.)0 3985 y(CLN)40 b(do)s(es)g(not)h(implemen)m(t)e -(features)h(lik)m(e)i(NaNs,)i(denormalized)c(n)m(um)m(b)s(ers)e(and)h -(gradual)i(under\015o)m(w.)69 b(If)0 4109 y(the)31 b(exp)s(onen)m(t)h -(range)f(of)g(some)g(\015oating-p)s(oin)m(t)h(t)m(yp)s(e)g(is)f(to)s(o) -h(limited)f(for)g(y)m(our)g(application,)i(c)m(ho)s(ose)f(another)0 -4234 y(\015oating-p)s(oin)m(t)g(t)m(yp)s(e)e(with)g(larger)h(exp)s -(onen)m(t)g(range.)0 4593 y(As)i(a)g(user)f(of)h(CLN,)g(y)m(ou)g(can)g -(forget)h(ab)s(out)f(the)g(di\013erences)g(b)s(et)m(w)m(een)g(the)g -(four)g(\015oating-p)s(oin)m(t)h(t)m(yp)s(es)f(and)0 -4717 y(just)i(declare)i(all)g(y)m(our)e(\015oating-p)s(oin)m(t)i(v)-5 -b(ariables)37 b(as)f(b)s(eing)f(of)h(t)m(yp)s(e)g Fp(cl_F)p -Fr(.)56 b(This)35 b(has)h(the)g(adv)-5 b(an)m(tage)37 -b(that)0 4842 y(when)27 b(y)m(ou)h(c)m(hange)h(the)f(precision)f(of)h -(some)f(computation)h(\(sa)m(y)-8 b(,)30 b(from)c Fp(cl_DF)h -Fr(to)h Fp(cl_LF)p Fr(\),)f(y)m(ou)i(don't)e(ha)m(v)m(e)i(to)0 -4966 y(c)m(hange)h(the)g(co)s(de,)g(only)f(the)h(precision)f(of)g(the)h -(initial)g(v)-5 b(alues.)41 b(Also,)30 b(man)m(y)f(transcenden)m(tal)h -(functions)f(ha)m(v)m(e)0 5091 y(b)s(een)f(declared)i(as)f(returning)g -(a)g Fp(cl_F)f Fr(when)g(the)i(argumen)m(t)e(is)i(a)f -Fp(cl_F)p Fr(,)g(but)f(suc)m(h)h(declarations)i(are)e(missing)0 -5215 y(for)g(the)g(t)m(yp)s(es)g Fp(cl_SF)p Fr(,)f Fp(cl_FF)p -Fr(,)f Fp(cl_DF)p Fr(,)h Fp(cl_LF)p Fr(.)39 b(\(Suc)m(h)29 -b(declarations)h(w)m(ould)f(b)s(e)f(wrong)g(if)h(the)g(\015oating)h(p)s -(oin)m(t)0 5340 y(con)m(tagion)j(rule)d(happ)s(ened)e(to)j(c)m(hange)h -(in)e(the)h(future.\))p eop -%%Page: 10 12 -10 11 bop 0 -116 a Fr(Chapter)30 b(3:)41 b(Ordinary)29 -b(n)m(um)m(b)s(er)f(t)m(yp)s(es)2411 b(10)0 366 y Fs(3.3)68 -b(Complex)31 b(n)l(um)l(b)t(ers)0 654 y Fr(Complex)25 -b(n)m(um)m(b)s(ers,)g(as)i(implemen)m(ted)e(b)m(y)h(the)h(class)g -Fp(cl_N)p Fr(,)f(ha)m(v)m(e)h(a)g(real)g(part)f(and)g(an)g(imaginary)g -(part,)i(b)s(oth)0 778 y(real)38 b(n)m(um)m(b)s(ers.)59 -b(A)38 b(complex)f(n)m(um)m(b)s(er)e(whose)i(imaginary)g(part)g(is)g -(the)h(exact)h(n)m(um)m(b)s(er)c Fp(0)i Fr(is)g(automatically)0 -903 y(con)m(v)m(erted)32 b(to)f(a)g(real)g(n)m(um)m(b)s(er.)0 -1190 y(Complex)h(n)m(um)m(b)s(ers)e(can)k(arise)f(from)e(real)j(n)m(um) -m(b)s(ers)c(alone,)35 b(for)e(example)g(through)f(application)i(of)f -Fp(sqrt)f Fr(or)0 1315 y(transcenden)m(tal)f(functions.)0 -1883 y Fs(3.4)68 b(Con)l(v)l(ersions)0 2170 y Fr(Con)m(v)m(ersions)42 -b(from)d(an)m(y)j(class)f(to)h(an)m(y)g(its)f(sup)s(erclasses)g -(\(\\base)h(classes")g(in)f(C)p Fp(++)f Fr(terminology\))i(is)f(done)0 -2295 y(automatically)-8 b(.)0 2582 y(Con)m(v)m(ersions)24 -b(from)e(the)i(C)f(built-in)h(t)m(yp)s(es)f(`)p Fp(long)p -Fr(')g(and)h(`)p Fp(unsigned)k(long)p Fr(')23 b(are)h(pro)m(vided)f -(for)g(the)h(classes)h Fp(cl_I)p Fr(,)0 2706 y Fp(cl_RA)p -Fr(,)k Fp(cl_R)p Fr(,)h Fp(cl_N)f Fr(and)h Fp(cl_number)p -Fr(.)0 2994 y(Con)m(v)m(ersions)h(from)e(the)i(C)f(built-in)g(t)m(yp)s -(es)g(`)p Fp(int)p Fr(')g(and)g(`)p Fp(unsigned)f(int)p -Fr(')h(are)g(pro)m(vided)g(for)h(the)f(classes)i Fp(cl_I)p -Fr(,)0 3118 y Fp(cl_RA)p Fr(,)h Fp(cl_R)p Fr(,)g Fp(cl_N)f -Fr(and)g Fp(cl_number)p Fr(.)47 b(Ho)m(w)m(ev)m(er,)36 -b(these)e(con)m(v)m(ersions)g(emphasize)e(e\016ciency)-8 -b(.)51 b(Their)33 b(range)0 3243 y(is)d(therefore)h(limited:)49 -3530 y Fq(\000)60 b Fr(The)30 b(con)m(v)m(ersion)i(from)c(`)p +b(\(No)32 b(\\lazy)g(recomputation".\))-30 4516 y(Of)f(course,)i +(computations)e(with)h(long)g(\015oats)h(are)f(more)f(exp)s(ensiv)m(e)h +(than)f(those)i(with)e(smaller)h(\015oating-p)s(oin)m(t)-30 +4626 y(formats.)-30 4764 y(CLN)44 b(do)s(es)g(not)h(implemen)m(t)f +(features)g(lik)m(e)i(NaNs,)j(denormalized)44 b(n)m(um)m(b)s(ers)f(and) +h(gradual)g(under\015o)m(w.)82 b(If)-30 4873 y(the)36 +b(exp)s(onen)m(t)f(range)h(of)f(some)g(\015oating-p)s(oin)m(t)i(t)m(yp) +s(e)e(is)h(to)s(o)g(limited)f(for)g(y)m(our)g(application,)j(c)m(ho)s +(ose)f(another)-30 4983 y(\015oating-p)s(oin)m(t)32 b(t)m(yp)s(e)e +(with)g(larger)h(exp)s(onen)m(t)g(range.)-30 5121 y(As)37 +b(a)g(user)e(of)i(CLN,)g(y)m(ou)g(can)g(forget)g(ab)s(out)f(the)h +(di\013erences)g(b)s(et)m(w)m(een)g(the)g(four)f(\015oating-p)s(oin)m +(t)i(t)m(yp)s(es)f(and)-30 5230 y(just)i(declare)h(all)g(y)m(our)g +(\015oating-p)s(oin)m(t)g(v)-5 b(ariables)40 b(as)g(b)s(eing)f(of)g(t)m +(yp)s(e)h Fp(cl_F)p Fr(.)66 b(This)39 b(has)g(the)g(adv)-5 +b(an)m(tage)41 b(that)-30 5340 y(when)30 b(y)m(ou)i(c)m(hange)h(the)f +(precision)f(of)h(some)f(computation)g(\(sa)m(y)-8 b(,)34 +b(from)c Fp(cl_DF)g Fr(to)i Fp(cl_LF)p Fr(\),)f(y)m(ou)h(don't)f(ha)m +(v)m(e)i(to)p eop +%%Page: 8 10 +8 9 bop -30 -116 a Fr(Chapter)30 b(3:)41 b(Ordinary)29 +b(n)m(um)m(b)s(er)f(t)m(yp)s(es)2517 b(8)-30 299 y(c)m(hange)34 +b(the)g(co)s(de,)g(only)f(the)g(precision)h(of)f(the)g(initial)i(v)-5 +b(alues.)49 b(Also,)35 b(man)m(y)d(transcenden)m(tal)i(functions)f(ha)m +(v)m(e)-30 408 y(b)s(een)f(declared)i(as)f(returning)f(a)h +Fp(cl_F)f Fr(when)g(the)h(argumen)m(t)f(is)h(a)g Fp(cl_F)p +Fr(,)g(but)f(suc)m(h)g(declarations)j(are)e(missing)-30 +518 y(for)f(the)h(t)m(yp)s(es)g Fp(cl_SF)p Fr(,)f Fp(cl_FF)p +Fr(,)g Fp(cl_DF)p Fr(,)g Fp(cl_LF)p Fr(.)45 b(\(Suc)m(h)33 +b(declarations)h(w)m(ould)e(b)s(e)g(wrong)g(if)h(the)f(\015oating)i(p)s +(oin)m(t)-30 628 y(con)m(tagion)f(rule)d(happ)s(ened)e(to)j(c)m(hange)h +(in)e(the)h(future.\))-30 941 y Fs(3.3)68 b(Complex)46 +b(n)l(um)l(b)t(ers)-30 1156 y Fr(Complex)29 b(n)m(um)m(b)s(ers,)f(as)j +(implemen)m(ted)e(b)m(y)h(the)g(class)h Fp(cl_N)p Fr(,)e(ha)m(v)m(e)j +(a)f(real)f(part)h(and)e(an)h(imaginary)g(part,)h(b)s(oth)-30 +1266 y(real)42 b(n)m(um)m(b)s(ers.)70 b(A)41 b(complex)g(n)m(um)m(b)s +(er)e(whose)i(imaginary)f(part)h(is)h(the)f(exact)h(n)m(um)m(b)s(er)d +Fp(0)i Fr(is)g(automatically)-30 1375 y(con)m(v)m(erted)32 +b(to)f(a)g(real)g(n)m(um)m(b)s(er.)-30 1532 y(Complex)36 +b(n)m(um)m(b)s(ers)f(can)i(arise)h(from)d(real)j(n)m(um)m(b)s(ers)d +(alone,)40 b(for)d(example)g(through)f(application)j(of)e +Fp(sqrt)f Fr(or)-30 1642 y(transcenden)m(tal)31 b(functions.)-30 +1955 y Fs(3.4)68 b(Con)l(v)l(ersions)-30 2170 y Fr(Con)m(v)m(ersions)46 +b(from)e(an)m(y)h(class)i(to)f(an)m(y)f(its)h(sup)s(erclasses)f +(\(\\base)h(classes")h(in)e(C)p Fp(++)g Fr(terminology\))h(is)f(done) +-30 2280 y(automatically)-8 b(.)-30 2437 y(Con)m(v)m(ersions)28 +b(from)f(the)h(C)f(built-in)h(t)m(yp)s(es)g(`)p Fp(long)p +Fr(')f(and)h(`)p Fp(unsigned)g(long)p Fr(')f(are)i(pro)m(vided)e(for)h +(the)g(classes)h Fp(cl_I)p Fr(,)-30 2546 y Fp(cl_RA)p +Fr(,)g Fp(cl_R)p Fr(,)h Fp(cl_N)f Fr(and)h Fp(cl_number)p +Fr(.)-30 2703 y(Con)m(v)m(ersions)35 b(from)e(the)i(C)g(built-in)f(t)m +(yp)s(es)h(`)p Fp(int)p Fr(')f(and)h(`)p Fp(unsigned)28 +b(int)p Fr(')34 b(are)h(pro)m(vided)g(for)f(the)h(classes)h +Fp(cl_I)p Fr(,)-30 2813 y Fp(cl_RA)p Fr(,)30 b Fp(cl_R)p +Fr(,)h Fp(cl_N)e Fr(and)i Fp(cl_number)p Fr(.)40 b(Ho)m(w)m(ev)m(er,)34 +b(these)e(con)m(v)m(ersions)g(emphasize)f(e\016ciency)-8 +b(.)44 b(Their)30 b(range)i(is)-30 2922 y(therefore)f(limited:)19 +3079 y Fq(\000)60 b Fr(The)30 b(con)m(v)m(ersion)i(from)c(`)p Fp(int)p Fr(')i(w)m(orks)h(only)f(if)h(the)f(argumen)m(t)g(is)g Fp(<)g Fr(2)p Fp(^)p Fr(29)i(and)e Fp(>)g Fr(-2)p Fp(^)p -Fr(29.)49 3693 y Fq(\000)60 b Fr(The)30 b(con)m(v)m(ersion)i(from)c(`)p +Fr(29.)19 3225 y Fq(\000)60 b Fr(The)30 b(con)m(v)m(ersion)i(from)c(`)p Fp(unsigned)h(int)p Fr(')h(w)m(orks)g(only)g(if)h(the)f(argumen)m(t)g -(is)h Fp(<)f Fr(2)p Fp(^)p Fr(29.)0 4018 y(In)g(a)g(declaration)i(lik)m -(e)g(`)p Fp(cl_I)d(x)h(=)g(10;)p Fr(')g(the)g(C)p Fp(++)f -Fr(compiler)h(is)h(able)f(to)h(do)f(the)h(con)m(v)m(ersion)g(of)g -Fp(10)f Fr(from)e(`)p Fp(int)p Fr(')0 4143 y(to)43 b(`)p -Fp(cl_I)p Fr(')e(at)i(compile)g(time)e(already)-8 b(.)78 -b(On)41 b(the)h(other)h(hand,)h(co)s(de)f(lik)m(e)g(`)p -Fp(cl_I)30 b(x)g(=)g(1000000000;)p Fr(')39 b(is)j(in)0 -4267 y(error.)g(So,)31 b(if)g(y)m(ou)g(w)m(an)m(t)h(to)g(b)s(e)e(sure)g -(that)h(an)g(`)p Fp(int)p Fr(')g(whose)f(magnitude)h(is)f(not)i(guaran) -m(teed)g(to)f(b)s(e)f Fp(<)h Fr(2)p Fp(^)p Fr(29)h(is)0 -4392 y(correctly)j(con)m(v)m(erted)f(to)g(a)g(`)p Fp(cl_I)p -Fr(',)f(\014rst)f(con)m(v)m(ert)j(it)f(to)g(a)f(`)p Fp(long)p -Fr('.)48 b(Similarly)-8 b(,)34 b(if)f(a)h(large)g(`)p -Fp(unsigned)28 b(int)p Fr(')33 b(is)0 4516 y(to)e(b)s(e)f(con)m(v)m -(erted)i(to)f(a)g(`)p Fp(cl_I)p Fr(',)f(\014rst)f(con)m(v)m(ert)j(it)f -(to)g(an)f(`)p Fp(unsigned)f(long)p Fr('.)0 4804 y(Con)m(v)m(ersions)h -(from)f(the)h(C)f(built-in)h(t)m(yp)s(e)g(`)p Fp(float)p -Fr(')f(are)h(pro)m(vided)g(for)f(the)h(classes)h Fp(cl_FF)p -Fr(,)e Fp(cl_F)p Fr(,)g Fp(cl_R)p Fr(,)g Fp(cl_N)0 4928 -y Fr(and)h Fp(cl_number)p Fr(.)0 5215 y(Con)m(v)m(ersions)d(from)e(the) -i(C)f(built-in)g(t)m(yp)s(e)h(`)p Fp(double)p Fr(')e(are)i(pro)m(vided) -g(for)f(the)h(classes)g Fp(cl_DF)p Fr(,)f Fp(cl_F)p Fr(,)h -Fp(cl_R)p Fr(,)f Fp(cl_N)0 5340 y Fr(and)k Fp(cl_number)p -Fr(.)p eop -%%Page: 11 13 -11 12 bop 0 -116 a Fr(Chapter)30 b(3:)41 b(Ordinary)29 -b(n)m(um)m(b)s(er)f(t)m(yp)s(es)2411 b(11)0 366 y(Con)m(v)m(ersions)35 -b(from)f(`)p Fp(const)29 b(char)g(*)p Fr(')35 b(are)g(pro)m(vided)g -(for)f(the)i(classes)f Fp(cl_I)p Fr(,)h Fp(cl_RA)p Fr(,)e -Fp(cl_SF)p Fr(,)h Fp(cl_FF)p Fr(,)g Fp(cl_DF)p Fr(,)0 -491 y Fp(cl_LF)p Fr(,)e Fp(cl_F)p Fr(,)h Fp(cl_R)p Fr(,)g -Fp(cl_N)p Fr(.)50 b(The)33 b(easiest)i(w)m(a)m(y)g(to)g(sp)s(ecify)e(a) -h(v)-5 b(alue)34 b(whic)m(h)g(is)g(outside)g(of)g(the)g(range)g(of)g -(the)0 616 y(C)p Fp(++)29 b Fr(built-in)i(t)m(yp)s(es)f(is)g(therefore) -h(to)g(sp)s(ecify)f(it)h(as)g(a)g(string,)f(lik)m(e)i(this:)383 -869 y Fp(cl_I)47 b(order_of_rubiks_cube_gro)o(up)41 b(=)48 -b("43252003274489856000";)0 1143 y Fr(Note)32 b(that)f(this)f(con)m(v)m -(ersion)i(is)e(done)g(at)h(run)m(time,)f(not)g(at)h(compile-time.)0 -1417 y(Con)m(v)m(ersions)h(from)f Fp(cl_I)g Fr(to)h(the)g(C)g(built-in) -g(t)m(yp)s(es)g(`)p Fp(int)p Fr(',)g(`)p Fp(unsigned)c(int)p -Fr(',)k(`)p Fp(long)p Fr(',)g(`)p Fp(unsigned)d(long)p -Fr(')i(are)0 1541 y(pro)m(vided)f(through)g(the)g(functions)0 -1840 y Fp(int)f(cl_I_to_int)f(\(const)g(cl_I&)h(x\))0 -1965 y(unsigned)f(int)i(cl_I_to_uint)d(\(const)h(cl_I&)h(x\))0 -2089 y(long)g(cl_I_to_long)e(\(const)i(cl_I&)g(x\))0 -2214 y(unsigned)f(long)h(cl_I_to_ulong)e(\(const)i(cl_I&)g(x\))480 -2338 y Fr(Returns)37 b Fp(x)h Fr(as)h(elemen)m(t)f(of)h(the)f(C)g(t)m -(yp)s(e)g Fk(ct)m(yp)s(e)p Fr(.)65 b(If)38 b Fp(x)f Fr(is)i(not)f -(represen)m(table)h(in)f(the)g(range)h(of)480 2463 y -Fk(ct)m(yp)s(e)p Fr(,)31 b(a)g(run)m(time)e(error)h(o)s(ccurs.)0 -2762 y(Con)m(v)m(ersions)35 b(from)e(the)h(classes)i -Fp(cl_I)p Fr(,)e Fp(cl_RA)p Fr(,)g Fp(cl_SF)p Fr(,)g -Fp(cl_FF)p Fr(,)g Fp(cl_DF)p Fr(,)h Fp(cl_LF)p Fr(,)f -Fp(cl_F)f Fr(and)h Fp(cl_R)f Fr(to)i(the)f(C)0 2886 y(built-in)c(t)m -(yp)s(es)h(`)p Fp(float)p Fr(')e(and)h(`)p Fp(double)p -Fr(')f(are)i(pro)m(vided)f(through)f(the)i(functions)0 -3185 y Fp(float)e(cl_float_approx)d(\(const)j Fk(t)m(yp)s(e)5 -b Fp(&)30 b(x\))0 3310 y(double)f(cl_double_approx)d(\(const)i -Fk(t)m(yp)s(e)5 b Fp(&)31 b(x\))480 3434 y Fr(Returns)25 -b(an)h(appro)m(ximation)g(of)g Fp(x)f Fr(of)h(C)g(t)m(yp)s(e)g -Fk(ct)m(yp)s(e)p Fr(.)39 b(If)26 b Fp(abs\(x\))e Fr(is)i(to)s(o)g -(close)i(to)e(0)g(\(under\015o)m(w\),)480 3559 y(0)31 -b(is)f(returned.)40 b(If)30 b Fp(abs\(x\))e Fr(is)j(to)s(o)g(large)g -(\(o)m(v)m(er\015o)m(w\),)i(an)d(IEEE)g(in\014nit)m(y)g(is)h(returned.) -0 3858 y(Con)m(v)m(ersions)g(from)e(an)m(y)i(class)g(to)g(an)m(y)g(of)g +(is)h Fp(<)f Fr(2)p Fp(^)p Fr(29.)-30 3418 y(In)j(a)h(declaration)i +(lik)m(e)f(`)p Fp(cl_I)29 b(x)h(=)g(10;)p Fr(')j(the)h(C)p +Fp(++)f Fr(compiler)g(is)h(able)h(to)f(do)g(the)g(con)m(v)m(ersion)h +(of)f Fp(10)f Fr(from)f(`)p Fp(int)p Fr(')-30 3528 y(to)f(`)p +Fp(cl_I)p Fr(')f(at)i(compile)e(time)g(already)-8 b(.)43 +b(On)30 b(the)g(other)h(hand,)f(co)s(de)h(lik)m(e)h(`)p +Fp(cl_I)d(x)h(=)g(1000000000;)p Fr(')e(is)j(in)f(error.)-30 +3637 y(So,)f(if)f(y)m(ou)g(w)m(an)m(t)h(to)g(b)s(e)e(sure)g(that)i(an)f +(`)p Fp(int)p Fr(')f(whose)h(magnitude)f(is)h(not)h(guaran)m(teed)g(to) +f(b)s(e)g Fp(<)f Fr(2)p Fp(^)p Fr(29)i(is)g(correctly)-30 +3747 y(con)m(v)m(erted)45 b(to)f(a)g(`)p Fp(cl_I)p Fr(',)i(\014rst)c +(con)m(v)m(ert)j(it)f(to)g(a)g(`)p Fp(long)p Fr('.)79 +b(Similarly)-8 b(,)47 b(if)c(a)h(large)g(`)p Fp(unsigned)28 +b(int)p Fr(')43 b(is)g(to)i(b)s(e)-30 3856 y(con)m(v)m(erted)32 +b(to)f(a)g(`)p Fp(cl_I)p Fr(',)f(\014rst)f(con)m(v)m(ert)j(it)f(to)g +(an)g(`)p Fp(unsigned)d(long)p Fr('.)-30 4013 y(Con)m(v)m(ersions)34 +b(from)e(the)i(C)g(built-in)f(t)m(yp)s(e)h(`)p Fp(float)p +Fr(')f(are)h(pro)m(vided)f(for)h(the)g(classes)g Fp(cl_FF)p +Fr(,)g Fp(cl_F)p Fr(,)f Fp(cl_R)p Fr(,)h Fp(cl_N)-30 +4123 y Fr(and)c Fp(cl_number)p Fr(.)-30 4280 y(Con)m(v)m(ersions)h +(from)e(the)i(C)f(built-in)h(t)m(yp)s(e)g(`)p Fp(double)p +Fr(')e(are)i(pro)m(vided)g(for)f(the)h(classes)h Fp(cl_DF)p +Fr(,)d Fp(cl_F)p Fr(,)h Fp(cl_R)p Fr(,)g Fp(cl_N)-30 +4389 y Fr(and)g Fp(cl_number)p Fr(.)-30 4546 y(Con)m(v)m(ersions)40 +b(from)e(`)p Fp(const)29 b(char)g(*)p Fr(')40 b(are)g(pro)m(vided)f +(for)g(the)h(classes)g Fp(cl_I)p Fr(,)h Fp(cl_RA)p Fr(,)g +Fp(cl_SF)p Fr(,)f Fp(cl_FF)p Fr(,)h Fp(cl_DF)p Fr(,)-30 +4656 y Fp(cl_LF)p Fr(,)26 b Fp(cl_F)p Fr(,)h Fp(cl_R)p +Fr(,)g Fp(cl_N)p Fr(.)38 b(The)27 b(easiest)h(w)m(a)m(y)g(to)g(sp)s +(ecify)e(a)i(v)-5 b(alue)27 b(whic)m(h)g(is)g(outside)g(of)g(the)g +(range)h(of)f(the)g(C)p Fp(++)-30 4765 y Fr(built-in)j(t)m(yp)s(es)h +(is)f(therefore)h(to)g(sp)s(ecify)f(it)h(as)g(a)f(string,)h(lik)m(e)h +(this:)353 4917 y Fp(cl_I)47 b(order_of_rubiks_cube_gro)o(up)41 +b(=)48 b("43252003274489856000";)-30 5073 y Fr(Note)32 +b(that)f(this)f(con)m(v)m(ersion)i(is)e(done)g(at)h(run)m(time,)f(not)g +(at)h(compile-time.)-30 5230 y(Con)m(v)m(ersions)37 b(from)e +Fp(cl_I)h Fr(to)h(the)g(C)f(built-in)h(t)m(yp)s(es)f(`)p +Fp(int)p Fr(',)i(`)p Fp(unsigned)29 b(int)p Fr(',)38 +b(`)p Fp(long)p Fr(',)f(`)p Fp(unsigned)29 b(long)p Fr(')36 +b(are)-30 5340 y(pro)m(vided)30 b(through)g(the)g(functions)p +eop +%%Page: 9 11 +9 10 bop -30 -116 a Fr(Chapter)30 b(3:)41 b(Ordinary)29 +b(n)m(um)m(b)s(er)f(t)m(yp)s(es)2517 b(9)-30 299 y Fp(int)29 +b(cl_I_to_int)f(\(const)g(cl_I&)h(x\))-30 408 y(unsigned)f(int)i +(cl_I_to_uint)d(\(const)h(cl_I&)h(x\))-30 518 y(long)g(cl_I_to_long)e +(\(const)i(cl_I&)g(x\))-30 628 y(unsigned)f(long)h(cl_I_to_ulong)e +(\(const)i(cl_I&)g(x\))450 737 y Fr(Returns)d Fp(x)g +Fr(as)h(elemen)m(t)h(of)f(the)g(C)f(t)m(yp)s(e)h Fl(ct)m(yp)s(e)p +Fr(.)40 b(If)27 b Fp(x)f Fr(is)h(not)g(represen)m(table)g(in)g(the)g +(range)g(of)g Fl(ct)m(yp)s(e)p Fr(,)450 847 y(a)k(run)m(time)e(error)h +(o)s(ccurs.)-30 1006 y(Con)m(v)m(ersions)38 b(from)f(the)h(classes)h +Fp(cl_I)p Fr(,)g Fp(cl_RA)p Fr(,)g Fp(cl_SF)p Fr(,)f +Fp(cl_FF)p Fr(,)h Fp(cl_DF)p Fr(,)g Fp(cl_LF)p Fr(,)f +Fp(cl_F)f Fr(and)h Fp(cl_R)e Fr(to)j(the)f(C)-30 1116 +y(built-in)30 b(t)m(yp)s(es)h(`)p Fp(float)p Fr(')e(and)h(`)p +Fp(double)p Fr(')f(are)i(pro)m(vided)f(through)f(the)i(functions)-30 +1275 y Fp(float)e(cl_float_approx)d(\(const)j Fl(t)m(yp)s(e)5 +b Fp(&)30 b(x\))-30 1385 y(double)f(cl_double_approx)d(\(const)i +Fl(t)m(yp)s(e)5 b Fp(&)31 b(x\))450 1494 y Fr(Returns)e(an)h(appro)m +(ximation)f(of)h Fp(x)g Fr(of)g(C)f(t)m(yp)s(e)h Fl(ct)m(yp)s(e)p +Fr(.)41 b(If)29 b Fp(abs\(x\))f Fr(is)i(to)s(o)h(close)g(to)f(0)g +(\(under\015o)m(w\),)450 1604 y(0)h(is)f(returned.)40 +b(If)30 b Fp(abs\(x\))e Fr(is)j(to)s(o)g(large)g(\(o)m(v)m(er\015o)m +(w\),)i(an)d(IEEE)g(in\014nit)m(y)g(is)h(returned.)-30 +1763 y(Con)m(v)m(ersions)k(from)e(an)m(y)i(class)g(to)g(an)m(y)g(of)g (its)g(sub)s(classes)f(\(\\deriv)m(ed)h(classes")h(in)e(C)p -Fp(++)g Fr(terminology\))h(are)g(not)0 3982 y(pro)m(vided.)40 -b(Instead,)31 b(y)m(ou)f(can)h(assert)g(and)e(c)m(hec)m(k)j(that)f(a)g -(v)-5 b(alue)31 b(b)s(elongs)f(to)h(a)f(certain)i(sub)s(class,)d(and)h -(return)0 4107 y(it)38 b(as)f(elemen)m(t)h(of)g(that)f(class,)j(using)d -(the)h(`)p Fp(As)p Fr(')f(and)g(`)p Fp(The)p Fr(')f(macros.)61 -b Fp(As\()p Fk(t)m(yp)s(e)5 b Fp(\)\()p Fk(v)-5 b(alue)5 -b Fp(\))37 b Fr(c)m(hec)m(ks)i(that)e Fk(v)-5 b(alue)0 -4231 y Fr(b)s(elongs)29 b(to)h Fk(t)m(yp)s(e)35 b Fr(and)29 -b(returns)f(it)i(as)f(suc)m(h.)40 b Fp(The\()p Fk(t)m(yp)s(e)5 -b Fp(\)\()p Fk(v)-5 b(alue)5 b Fp(\))29 b Fr(assumes)f(that)i -Fk(v)-5 b(alue)35 b Fr(b)s(elongs)29 b(to)h Fk(t)m(yp)s(e)35 -b Fr(and)0 4356 y(returns)29 b(it)i(as)g(suc)m(h.)40 +Fp(++)g Fr(terminology\))h(are)g(not)-30 1873 y(pro)m(vided.)40 +b(Instead,)29 b(y)m(ou)f(can)h(assert)g(and)e(c)m(hec)m(k)j(that)f(a)g +(v)-5 b(alue)29 b(b)s(elongs)f(to)h(a)g(certain)g(sub)s(class,)f(and)g +(return)f(it)-30 1983 y(as)f(elemen)m(t)h(of)f(that)h(class,)h(using)d +(the)h(`)p Fp(As)p Fr(')g(and)g(`)p Fp(The)p Fr(')f(macros.)39 +b Fp(As\()p Fl(t)m(yp)s(e)5 b Fp(\)\()p Fl(v)-5 b(alue)5 +b Fp(\))25 b Fr(c)m(hec)m(ks)j(that)e Fl(v)-5 b(alue)32 +b Fr(b)s(elongs)-30 2092 y(to)d Fl(t)m(yp)s(e)k Fr(and)28 +b(returns)f(it)i(as)f(suc)m(h.)40 b Fp(The\()p Fl(t)m(yp)s(e)5 +b Fp(\)\()p Fl(v)-5 b(alue)5 b Fp(\))27 b Fr(assumes)g(that)i +Fl(v)-5 b(alue)33 b Fr(b)s(elongs)28 b(to)h Fl(t)m(yp)s(e)34 +b Fr(and)27 b(returns)g(it)-30 2202 y(as)k(suc)m(h.)40 b(It)31 b(is)f(y)m(our)g(resp)s(onsibilit)m(y)h(to)g(ensure)e(that)i -(this)g(assumption)d(is)j(v)-5 b(alid.)41 b(Example:)383 -4609 y Fp(cl_I)47 b(x)g(=)h Fn(:)15 b(:)g(:)q Fp(;)383 -4713 y(if)47 b(\(!\(x)g(>=)g(0\)\))g(abort\(\);)383 4816 -y(cl_I)g(ten_x)f(=)i(The\(cl_I\)\(expt\(10,x\)\);)41 -b(//)48 b(If)f(x)g(>=)g(0,)h(10^x)e(is)h(an)h(integer.)1004 -4920 y(//)f(In)g(general,)f(it)h(would)f(be)h(a)h(rational)d(number.)p -eop +(this)g(assumption)d(is)j(v)-5 b(alid.)41 b(Example:)353 +2330 y Fp(cl_I)47 b(x)g(=)h(...)o(;)353 2434 y(if)f(\(!\(x)g(>=)g +(0\)\))g(abort\(\);)353 2538 y(cl_I)g(ten_x)f(=)i +(The\(cl_I\)\(expt\(10,x\)\);)41 b(//)48 b(If)f(x)g(>=)g(0,)h(10^x)e +(is)h(an)h(integer.)974 2642 y(//)f(In)g(general,)f(it)h(would)f(be)h +(a)h(rational)d(number.)p eop +%%Page: 10 12 +10 11 bop -30 -116 a Fr(Chapter)30 b(4:)41 b(F)-8 b(unctions)31 +b(on)f(n)m(um)m(b)s(ers)2523 b(10)-30 299 y Fo(4)80 b(F)-13 +b(unctions)53 b(on)g(n)l(um)l(b)t(ers)-30 600 y Fr(Eac)m(h)36 +b(of)g(the)g(n)m(um)m(b)s(er)d(classes)k(declares)f(its)g(mathematical) +g(op)s(erations)g(in)f(the)h(corresp)s(onding)e(include)i(\014le.)-30 +709 y(F)-8 b(or)31 b(example,)f(if)g(y)m(our)g(co)s(de)g(op)s(erates)h +(with)e(ob)5 b(jects)31 b(of)f(t)m(yp)s(e)h Fp(cl_I)p +Fr(,)e(it)h(should)f Fp(#include)g()p Fr(.)-30 +1022 y Fs(4.1)68 b(Constructing)45 b(n)l(um)l(b)t(ers)-30 +1237 y Fr(Here)31 b(is)f(ho)m(w)h(to)g(create)h(n)m(um)m(b)s(er)c(ob)5 +b(jects)31 b(\\from)e(nothing".)-30 1505 y Fn(4.1.1)63 +b(Constructing)41 b(in)m(tegers)-30 1720 y Fp(cl_I)28 +b Fr(ob)5 b(jects)30 b(are)f(most)g(easily)h(constructed)f(from)f(C)g +(in)m(tegers)i(and)f(from)f(strings.)40 b(See)29 b(Section)h(3.4)g +([Con)m(v)m(er-)-30 1830 y(sions],)h(page)g(8.)-30 2098 +y Fn(4.1.2)63 b(Constructing)41 b(rational)g(n)m(um)m(b)s(ers)-30 +2313 y Fp(cl_RA)e Fr(ob)5 b(jects)41 b(can)g(b)s(e)f(constructed)h +(from)e(strings.)71 b(The)40 b(syn)m(tax)h(for)f(rational)i(n)m(um)m(b) +s(ers)c(is)j(describ)s(ed)e(in)-30 2423 y(Section)44 +b(5.1)g([In)m(ternal)g(and)f(prin)m(ted)g(represen)m(tation],)48 +b(page)c(28.)80 b(Another)44 b(standard)e(w)m(a)m(y)i(to)g(pro)s(duce)f +(a)-30 2532 y(rational)32 b(n)m(um)m(b)s(er)c(is)i(through)g +(application)h(of)g(`)p Fp(operator)d(/)p Fr(')j(or)f(`)p +Fp(recip)p Fr(')f(on)i(in)m(tegers.)-30 2801 y Fn(4.1.3)63 +b(Constructing)41 b(\015oating-p)s(oin)m(t)h(n)m(um)m(b)s(ers)-30 +3016 y Fp(cl_F)h Fr(ob)5 b(jects)45 b(with)f(lo)m(w)h(precision)f(are)g +(most)g(easily)h(constructed)g(from)d(C)i(`)p Fp(float)p +Fr(')f(and)h(`)p Fp(double)p Fr('.)81 b(See)-30 3125 +y(Section)31 b(3.4)h([Con)m(v)m(ersions],)f(page)g(8.)-30 +3282 y(T)-8 b(o)34 b(construct)h(a)f Fp(cl_F)e Fr(with)i(high)g +(precision,)h(y)m(ou)f(can)g(use)g(the)g(con)m(v)m(ersion)h(from)d(`)p +Fp(const)d(char)h(*)p Fr(',)k(but)g(y)m(ou)-30 3392 y(ha)m(v)m(e)e(to)f +(sp)s(ecify)f(the)h(desired)f(precision)h(within)f(the)h(string.)41 +b(\(See)32 b(Section)f(5.1)h([In)m(ternal)f(and)f(prin)m(ted)g(repre-) +-30 3501 y(sen)m(tation],)i(page)g(28.\))41 b(Example:)353 +3652 y Fp(cl_F)47 b(e)g(=)h("0.27182818284590452353)o(6028)o(7471)o +(352)o(6624)o(9775)o(724)o(7093)o(6999)o(6e+)o(1_40)o(";)-30 +3809 y Fr(will)31 b(set)g(`)p Fp(e)p Fr(')f(to)h(the)g(giv)m(en)g(v)-5 +b(alue,)31 b(with)f(a)h(precision)g(of)f(40)h(decimal)g(digits.)-30 +3966 y(The)e(programmatic)g(w)m(a)m(y)h(to)h(construct)f(a)g +Fp(cl_F)e Fr(with)i(high)f(precision)h(is)f(through)g(the)h +Fp(cl_float)e Fr(con)m(v)m(ersion)-30 4075 y(function,)c(see)e(Section) +h(4.11.1)h([Con)m(v)m(ersion)f(to)f(\015oating-p)s(oin)m(t)i(n)m(um)m +(b)s(ers],)d(page)i(25.)39 b(F)-8 b(or)22 b(example,)i(to)f(compute)-30 +4185 y Fp(e)43 b Fr(to)h(40)g(decimal)f(places,)k(\014rst)c(construct)g +(1.0)h(to)g(40)g(decimal)f(places)h(and)f(then)g(apply)g(the)g(exp)s +(onen)m(tial)-30 4294 y(function:)353 4445 y Fp(cl_float_format_t)g +(precision)j(=)h(cl_float_format\(40\);)353 4549 y(cl_F)g(e)g(=)h +(exp\(cl_float\(1,precisio)o(n\)\);)-30 4818 y Fn(4.1.4)63 +b(Constructing)41 b(complex)f(n)m(um)m(b)s(ers)-30 5032 +y Fr(Non-real)31 b Fp(cl_N)f Fr(ob)5 b(jects)31 b(are)g(normally)e +(constructed)i(through)e(the)i(function)353 5183 y Fp(cl_N)47 +b(complex)f(\(const)g(cl_R&)g(realpart,)f(const)i(cl_R&)f(imagpart\)) +-30 5340 y Fr(See)31 b(Section)g(4.4)g([Elemen)m(tary)g(complex)f +(functions],)g(page)h(12.)p eop +%%Page: 11 13 +11 12 bop -30 -116 a Fr(Chapter)30 b(4:)41 b(F)-8 b(unctions)31 +b(on)f(n)m(um)m(b)s(ers)2523 b(11)-30 299 y Fs(4.2)68 +b(Elemen)l(tary)47 b(functions)-30 491 y Fr(Eac)m(h)27 +b(of)f(the)h(classes)g Fp(cl_N)p Fr(,)f Fp(cl_R)p Fr(,)g +Fp(cl_RA)p Fr(,)g Fp(cl_I)p Fr(,)g Fp(cl_F)p Fr(,)g Fp(cl_SF)p +Fr(,)g Fp(cl_FF)p Fr(,)g Fp(cl_DF)p Fr(,)g Fp(cl_LF)f +Fr(de\014nes)g(the)h(follo)m(wing)-30 601 y(op)s(erations:)-30 +760 y Fl(t)m(yp)s(e)36 b Fp(operator)28 b(+)i(\(const)e +Fl(t)m(yp)s(e)5 b Fp(&,)31 b(const)d Fl(t)m(yp)s(e)5 +b Fp(&\))450 870 y Fr(Addition.)-30 1029 y Fl(t)m(yp)s(e)36 +b Fp(operator)28 b(-)i(\(const)e Fl(t)m(yp)s(e)5 b Fp(&,)31 +b(const)d Fl(t)m(yp)s(e)5 b Fp(&\))450 1139 y Fr(Subtraction.)-30 +1298 y Fl(t)m(yp)s(e)36 b Fp(operator)28 b(-)i(\(const)e +Fl(t)m(yp)s(e)5 b Fp(&\))450 1407 y Fr(Returns)29 b(the)i(negativ)m(e)i +(of)d(the)h(argumen)m(t.)-30 1567 y Fl(t)m(yp)s(e)36 +b Fp(plus1)29 b(\(const)f Fl(t)m(yp)s(e)5 b Fp(&)31 b(x\))450 +1676 y Fr(Returns)e Fp(x)h(+)h(1)p Fr(.)-30 1835 y Fl(t)m(yp)s(e)36 +b Fp(minus1)28 b(\(const)h Fl(t)m(yp)s(e)5 b Fp(&)30 +b(x\))450 1945 y Fr(Returns)f Fp(x)h(-)h(1)p Fr(.)-30 +2104 y Fl(t)m(yp)s(e)36 b Fp(operator)28 b(*)i(\(const)e +Fl(t)m(yp)s(e)5 b Fp(&,)31 b(const)d Fl(t)m(yp)s(e)5 +b Fp(&\))450 2214 y Fr(Multiplication.)-30 2373 y Fl(t)m(yp)s(e)36 +b Fp(square)28 b(\(const)h Fl(t)m(yp)s(e)5 b Fp(&)30 +b(x\))450 2483 y Fr(Returns)f Fp(x)h(*)h(x)p Fr(.)-30 +2642 y(Eac)m(h)43 b(of)g(the)f(classes)i Fp(cl_N)p Fr(,)h +Fp(cl_R)p Fr(,)f Fp(cl_RA)p Fr(,)h Fp(cl_F)p Fr(,)f Fp(cl_SF)p +Fr(,)g Fp(cl_FF)p Fr(,)h Fp(cl_DF)p Fr(,)f Fp(cl_LF)d +Fr(de\014nes)h(the)g(follo)m(wing)-30 2751 y(op)s(erations:)-30 +2911 y Fl(t)m(yp)s(e)36 b Fp(operator)28 b(/)i(\(const)e +Fl(t)m(yp)s(e)5 b Fp(&,)31 b(const)d Fl(t)m(yp)s(e)5 +b Fp(&\))450 3020 y Fr(Division.)-30 3179 y Fl(t)m(yp)s(e)36 +b Fp(recip)29 b(\(const)f Fl(t)m(yp)s(e)5 b Fp(&\))450 +3289 y Fr(Returns)29 b(the)i(recipro)s(cal)g(of)g(the)f(argumen)m(t.) +-30 3448 y(The)h(class)h Fp(cl_I)d Fr(do)s(esn't)i(de\014ne)g(a)g(`)p +Fp(/)p Fr(')h(op)s(eration)f(b)s(ecause)g(in)g(the)g(C/C)p +Fp(++)g Fr(language)h(this)f(op)s(erator,)h(applied)-30 +3558 y(to)j(in)m(tegral)h(t)m(yp)s(es,)g(denotes)f(the)g(`)p +Fp(floor)p Fr(')e(or)h(`)p Fp(truncate)p Fr(')f(op)s(eration)i(\(whic)m +(h)g(one)f(of)h(these,)h(is)f(implemen)m(ta-)-30 3667 +y(tion)g(dep)s(enden)m(t\).)51 b(\(See)35 b(Section)g(4.6)g([Rounding)f +(functions],)h(page)g(13.\))53 b(Instead,)36 b Fp(cl_I)d +Fr(de\014nes)g(an)h(\\exact)-30 3777 y(quotien)m(t")e(function:)-30 +3936 y Fp(cl_I)d(exquo)g(\(const)g(cl_I&)g(x,)h(const)e(cl_I&)h(y\))450 +4046 y Fr(Chec)m(ks)i(that)g Fp(y)f Fr(divides)g Fp(x)p +Fr(,)g(and)g(returns)f(the)h(quotien)m(t)i Fp(x)p Fr(/)p +Fp(y)p Fr(.)-30 4205 y(The)e(follo)m(wing)i(exp)s(onen)m(tiation)f +(functions)f(are)h(de\014ned:)-30 4364 y Fp(cl_I)e(expt_pos)f(\(const)h +(cl_I&)g(x,)h(const)f(cl_I&)g(y\))-30 4474 y(cl_RA)g(expt_pos)f +(\(const)h(cl_RA&)f(x,)i(const)f(cl_I&)g(y\))450 4583 +y(y)h Fr(m)m(ust)f(b)s(e)h Fp(>)g Fr(0.)41 b(Returns)30 +b Fp(x^y)p Fr(.)-30 4742 y Fp(cl_RA)f(expt)g(\(const)g(cl_RA&)f(x,)i +(const)f(cl_I&)g(y\))-30 4852 y(cl_R)g(expt)g(\(const)g(cl_R&)g(x,)h +(const)f(cl_I&)g(y\))-30 4962 y(cl_N)g(expt)g(\(const)g(cl_N&)g(x,)h +(const)f(cl_I&)g(y\))450 5071 y Fr(Returns)g Fp(x^y)p +Fr(.)-30 5230 y(Eac)m(h)43 b(of)g(the)f(classes)i Fp(cl_R)p +Fr(,)h Fp(cl_RA)p Fr(,)f Fp(cl_I)p Fr(,)h Fp(cl_F)p Fr(,)f +Fp(cl_SF)p Fr(,)g Fp(cl_FF)p Fr(,)h Fp(cl_DF)p Fr(,)f +Fp(cl_LF)d Fr(de\014nes)h(the)g(follo)m(wing)-30 5340 +y(op)s(eration:)p eop %%Page: 12 14 -12 13 bop 0 -116 a Fr(Chapter)30 b(4:)41 b(F)-8 b(unctions)31 -b(on)f(n)m(um)m(b)s(ers)2463 b(12)0 366 y Fo(4)80 b(F)-13 -b(unctions)29 b(on)h(n)l(um)l(b)t(ers)0 754 y Fr(Eac)m(h)i(of)f(the)g -(n)m(um)m(b)s(er)e(classes)i(declares)h(its)g(mathematical)f(op)s -(erations)g(in)g(the)g(corresp)s(onding)f(include)h(\014le.)0 -879 y(F)-8 b(or)26 b(example,)g(if)g(y)m(our)f(co)s(de)g(op)s(erates)h -(with)f(ob)5 b(jects)26 b(of)f(t)m(yp)s(e)h Fp(cl_I)p -Fr(,)f(it)h(should)e Fp(#include)29 b()p -Fr(.)0 1353 y Fs(4.1)68 b(Constructing)31 b(n)l(um)l(b)t(ers)0 -1630 y Fr(Here)g(is)f(ho)m(w)h(to)g(create)h(n)m(um)m(b)s(er)c(ob)5 -b(jects)31 b(\\from)e(nothing".)0 2071 y Fm(4.1.1)63 -b(Constructing)30 b(in)m(tegers)0 2348 y Fp(cl_I)i Fr(ob)5 -b(jects)33 b(are)g(most)f(easily)i(constructed)f(from)e(C)i(in)m -(tegers)h(and)e(from)f(strings.)48 b(See)32 b(Section)i(3.4)g([Con-)0 -2472 y(v)m(ersions],)d(page)g(10.)0 2913 y Fm(4.1.2)63 -b(Constructing)30 b(rational)h(n)m(um)m(b)s(ers)0 3190 -y Fp(cl_RA)k Fr(ob)5 b(jects)38 b(can)f(b)s(e)f(constructed)h(from)e -(strings.)60 b(The)37 b(syn)m(tax)g(for)f(rational)i(n)m(um)m(b)s(ers)d -(is)i(describ)s(ed)e(in)0 3314 y(Section)40 b(5.1)h([In)m(ternal)f(and) -e(prin)m(ted)h(represen)m(tation],)k(page)e(37.)68 b(Another)39 -b(standard)g(w)m(a)m(y)h(to)g(pro)s(duce)f(a)0 3439 y(rational)32 -b(n)m(um)m(b)s(er)c(is)i(through)g(application)h(of)g(`)p -Fp(operator)d(/)p Fr(')j(or)f(`)p Fp(recip)p Fr(')f(on)i(in)m(tegers.)0 -3880 y Fm(4.1.3)63 b(Constructing)30 b(\015oating-p)s(oin)m(t)i(n)m(um) -m(b)s(ers)0 4157 y Fp(cl_F)39 b Fr(ob)5 b(jects)41 b(with)f(lo)m(w)i -(precision)e(are)h(most)f(easily)h(constructed)g(from)e(C)h(`)p -Fp(float)p Fr(')f(and)h(`)p Fp(double)p Fr('.)70 b(See)0 -4281 y(Section)31 b(3.4)h([Con)m(v)m(ersions],)f(page)g(10.)0 -4558 y(T)-8 b(o)42 b(construct)g(a)h Fp(cl_F)d Fr(with)i(high)f -(precision,)k(y)m(ou)d(can)h(use)e(the)h(con)m(v)m(ersion)h(from)d(`)p -Fp(const)30 b(char)f(*)p Fr(',)45 b(but)0 4683 y(y)m(ou)33 -b(ha)m(v)m(e)h(to)f(sp)s(ecify)f(the)g(desired)g(precision)h(within)f -(the)h(string.)47 b(\(See)33 b(Section)g(5.1)g([In)m(ternal)h(and)d -(prin)m(ted)0 4807 y(represen)m(tation],)h(page)f(37.\))42 -b(Example:)383 5063 y Fp(cl_F)47 b(e)g(=)h("0.27182818284590452353)o -(6028)o(7471)o(352)o(6624)o(9775)o(724)o(7093)o(6999)o(6e+)o(1_40)o(";) -0 5340 y Fr(will)31 b(set)g(`)p Fp(e)p Fr(')f(to)h(the)g(giv)m(en)g(v) --5 b(alue,)31 b(with)f(a)h(precision)g(of)f(40)h(decimal)g(digits.)p -eop +12 13 bop -30 -116 a Fr(Chapter)30 b(4:)41 b(F)-8 b(unctions)31 +b(on)f(n)m(um)m(b)s(ers)2523 b(12)-30 299 y Fl(t)m(yp)s(e)36 +b Fp(abs)29 b(\(const)g Fl(t)m(yp)s(e)5 b Fp(&)30 b(x\))450 +408 y Fr(Returns)f(the)i(absolute)g(v)-5 b(alue)31 b(of)f +Fp(x)p Fr(.)41 b(This)29 b(is)i Fp(x)f Fr(if)g Fp(x)g(>=)g(0)p +Fr(,)g(and)g Fp(-x)g Fr(if)g Fp(x)g(<=)g(0)p Fr(.)-30 +588 y(The)g(class)h Fp(cl_N)e Fr(implemen)m(ts)g(this)h(as)h(follo)m +(ws:)-30 767 y Fp(cl_R)e(abs)h(\(const)e(cl_N)i(x\))450 +877 y Fr(Returns)f(the)i(absolute)g(v)-5 b(alue)31 b(of)f +Fp(x)p Fr(.)-30 1057 y(Eac)m(h)d(of)f(the)h(classes)g +Fp(cl_N)p Fr(,)f Fp(cl_R)p Fr(,)g Fp(cl_RA)p Fr(,)g Fp(cl_I)p +Fr(,)g Fp(cl_F)p Fr(,)g Fp(cl_SF)p Fr(,)g Fp(cl_FF)p +Fr(,)g Fp(cl_DF)p Fr(,)g Fp(cl_LF)f Fr(de\014nes)g(the)h(follo)m(wing) +-30 1166 y(op)s(eration:)-30 1346 y Fl(t)m(yp)s(e)36 +b Fp(signum)28 b(\(const)h Fl(t)m(yp)s(e)5 b Fp(&)30 +b(x\))450 1455 y Fr(Returns)f(the)h(sign)g(of)g Fp(x)p +Fr(,)g(in)f(the)i(same)e(n)m(um)m(b)s(er)e(format)j(as)g +Fp(x)p Fr(.)40 b(This)29 b(is)h(de\014ned)f(as)h Fp(x)g(/)g(abs\(x\))e +Fr(if)450 1565 y Fp(x)i Fr(is)g(non-zero,)i(and)d Fp(x)h +Fr(if)h Fp(x)f Fr(is)g(zero.)42 b(If)30 b Fp(x)g Fr(is)g(real,)h(the)g +(v)-5 b(alue)31 b(is)f(either)h(0)g(or)f(1)h(or)f(-1.)-30 +1856 y Fs(4.3)68 b(Elemen)l(tary)47 b(rational)f(functions)-30 +2062 y Fr(Eac)m(h)31 b(of)g(the)f(classes)i Fp(cl_RA)p +Fr(,)d Fp(cl_I)g Fr(de\014nes)g(the)i(follo)m(wing)h(op)s(erations:)-30 +2241 y Fp(cl_I)d(numerator)f(\(const)h Fl(t)m(yp)s(e)5 +b Fp(&)30 b(x\))450 2351 y Fr(Returns)f(the)i(n)m(umerator)e(of)i +Fp(x)p Fr(.)-30 2524 y Fp(cl_I)e(denominator)f(\(const)g +Fl(t)m(yp)s(e)5 b Fp(&)31 b(x\))450 2633 y Fr(Returns)e(the)i +(denominator)f(of)g Fp(x)p Fr(.)-30 2813 y(The)g(n)m(umerator)g(and)g +(denominator)g(of)h(a)g(rational)h(n)m(um)m(b)s(er)c(are)k(normalized)e +(in)g(suc)m(h)h(a)g(w)m(a)m(y)g(that)h(they)f(ha)m(v)m(e)-30 +2922 y(no)f(factor)i(in)e(common)e(and)i(the)h(denominator)e(is)i(p)s +(ositiv)m(e.)-30 3213 y Fs(4.4)68 b(Elemen)l(tary)47 +b(complex)e(functions)-30 3419 y Fr(The)30 b(class)h +Fp(cl_N)e Fr(de\014nes)h(the)g(follo)m(wing)i(op)s(eration:)-30 +3599 y Fp(cl_N)d(complex)g(\(const)f(cl_R&)h(a,)h(const)f(cl_R&)g(b\)) +450 3708 y Fr(Returns)35 b(the)h(complex)g(n)m(um)m(b)s(er)e +Fp(a+bi)p Fr(,)i(that)h(is,)g(the)f(complex)g(n)m(um)m(b)s(er)e(with)h +(real)i(part)f Fp(a)g Fr(and)450 3818 y(imaginary)30 +b(part)g Fp(b)p Fr(.)-30 3997 y(Eac)m(h)h(of)g(the)f(classes)i +Fp(cl_N)p Fr(,)d Fp(cl_R)g Fr(de\014nes)h(the)g(follo)m(wing)i(op)s +(erations:)-30 4177 y Fp(cl_R)d(realpart)f(\(const)h +Fl(t)m(yp)s(e)5 b Fp(&)30 b(x\))450 4286 y Fr(Returns)f(the)i(real)g +(part)f(of)h Fp(x)p Fr(.)-30 4459 y Fp(cl_R)e(imagpart)f(\(const)h +Fl(t)m(yp)s(e)5 b Fp(&)30 b(x\))450 4569 y Fr(Returns)f(the)i +(imaginary)f(part)g(of)h Fp(x)p Fr(.)-30 4742 y Fl(t)m(yp)s(e)36 +b Fp(conjugate)27 b(\(const)i Fl(t)m(yp)s(e)5 b Fp(&)31 +b(x\))450 4851 y Fr(Returns)e(the)i(complex)f(conjugate)i(of)e +Fp(x)p Fr(.)-30 5031 y(W)-8 b(e)32 b(ha)m(v)m(e)f(the)g(relations)150 +5179 y Fp(x)f(=)g(complex\(realpart\(x\),)25 b(imagpart\(x\)\))150 +5320 y(conjugate\(x\))i(=)j(complex\(realpart\(x\),)25 +b(-imagpart\(x\)\))p eop %%Page: 13 15 -13 14 bop 0 -116 a Fr(Chapter)30 b(4:)41 b(F)-8 b(unctions)31 -b(on)f(n)m(um)m(b)s(ers)2463 b(13)0 366 y(The)25 b(programmatic)f(w)m -(a)m(y)j(to)f(construct)f(a)h Fp(cl_F)e Fr(with)h(high)g(precision)h -(is)f(through)g(the)h Fp(cl_float)d Fr(con)m(v)m(ersion)0 -491 y(function,)29 b(see)h(Section)g(4.11.1)i([Con)m(v)m(ersion)e(to)g -(\015oating-p)s(oin)m(t)h(n)m(um)m(b)s(ers],)c(page)j(32.)42 -b(F)-8 b(or)30 b(example,)f(to)h(com-)0 616 y(pute)d -Fp(e)f Fr(to)i(40)f(decimal)g(places,)i(\014rst)d(construct)h(1.0)h(to) -g(40)f(decimal)g(places)h(and)e(then)g(apply)h(the)g(exp)s(onen)m(tial) -0 740 y(function:)383 993 y Fp(cl_float_format_t)43 b(precision)j(=)h -(cl_float_format\(40\);)383 1097 y(cl_F)g(e)g(=)h -(exp\(cl_float\(1,precisio)o(n\)\);)0 1505 y Fm(4.1.4)63 -b(Constructing)30 b(complex)g(n)m(um)m(b)s(ers)0 1779 -y Fr(Non-real)h Fp(cl_N)f Fr(ob)5 b(jects)31 b(are)g(normally)e -(constructed)i(through)e(the)i(function)383 2032 y Fp(cl_N)47 -b(complex)f(\(const)g(cl_R&)g(realpart,)f(const)i(cl_R&)f(imagpart\))0 -2306 y Fr(See)31 b(Section)g(4.4)g([Elemen)m(tary)g(complex)f -(functions],)g(page)h(15.)0 2748 y Fs(4.2)68 b(Elemen)l(tary)32 -b(functions)0 3022 y Fr(Eac)m(h)22 b(of)g(the)g(classes)h -Fp(cl_N)p Fr(,)g Fp(cl_R)p Fr(,)f Fp(cl_RA)p Fr(,)g Fp(cl_I)p -Fr(,)h Fp(cl_F)p Fr(,)g Fp(cl_SF)p Fr(,)f Fp(cl_FF)p -Fr(,)g Fp(cl_DF)p Fr(,)g Fp(cl_LF)f Fr(de\014nes)g(the)g(follo)m(wing)0 -3146 y(op)s(erations:)0 3443 y Fk(t)m(yp)s(e)36 b Fp(operator)28 -b(+)i(\(const)e Fk(t)m(yp)s(e)5 b Fp(&,)31 b(const)d -Fk(t)m(yp)s(e)5 b Fp(&\))480 3568 y Fr(Addition.)0 3739 -y Fk(t)m(yp)s(e)36 b Fp(operator)28 b(-)i(\(const)e Fk(t)m(yp)s(e)5 -b Fp(&,)31 b(const)d Fk(t)m(yp)s(e)5 b Fp(&\))480 3863 -y Fr(Subtraction.)0 4034 y Fk(t)m(yp)s(e)36 b Fp(operator)28 -b(-)i(\(const)e Fk(t)m(yp)s(e)5 b Fp(&\))480 4159 y Fr(Returns)29 -b(the)i(negativ)m(e)i(of)d(the)h(argumen)m(t.)0 4329 -y Fk(t)m(yp)s(e)36 b Fp(plus1)29 b(\(const)f Fk(t)m(yp)s(e)5 -b Fp(&)31 b(x\))480 4454 y Fr(Returns)e Fp(x)h(+)h(1)p -Fr(.)0 4625 y Fk(t)m(yp)s(e)36 b Fp(minus1)28 b(\(const)h -Fk(t)m(yp)s(e)5 b Fp(&)30 b(x\))480 4749 y Fr(Returns)f -Fp(x)h(-)h(1)p Fr(.)0 4920 y Fk(t)m(yp)s(e)36 b Fp(operator)28 -b(*)i(\(const)e Fk(t)m(yp)s(e)5 b Fp(&,)31 b(const)d -Fk(t)m(yp)s(e)5 b Fp(&\))480 5045 y Fr(Multiplication.)0 -5215 y Fk(t)m(yp)s(e)36 b Fp(square)28 b(\(const)h Fk(t)m(yp)s(e)5 -b Fp(&)30 b(x\))480 5340 y Fr(Returns)f Fp(x)h(*)h(x)p -Fr(.)p eop +13 14 bop -30 -116 a Fr(Chapter)30 b(4:)41 b(F)-8 b(unctions)31 +b(on)f(n)m(um)m(b)s(ers)2523 b(13)-30 299 y Fs(4.5)68 +b(Comparisons)-30 489 y Fr(Eac)m(h)27 b(of)f(the)h(classes)g +Fp(cl_N)p Fr(,)f Fp(cl_R)p Fr(,)g Fp(cl_RA)p Fr(,)g Fp(cl_I)p +Fr(,)g Fp(cl_F)p Fr(,)g Fp(cl_SF)p Fr(,)g Fp(cl_FF)p +Fr(,)g Fp(cl_DF)p Fr(,)g Fp(cl_LF)f Fr(de\014nes)g(the)h(follo)m(wing) +-30 598 y(op)s(erations:)-30 752 y Fp(bool)j(operator)f(==)i(\(const)f +Fl(t)m(yp)s(e)5 b Fp(&,)30 b(const)f Fl(t)m(yp)s(e)5 +b Fp(&\))-30 862 y(bool)29 b(operator)f(!=)i(\(const)f +Fl(t)m(yp)s(e)5 b Fp(&,)30 b(const)f Fl(t)m(yp)s(e)5 +b Fp(&\))450 971 y Fr(Comparison,)29 b(as)i(in)f(C)g(and)f(C)p +Fp(++)p Fr(.)-30 1125 y Fp(uint32)g(cl_equal_hashcode)c(\(const)k +Fl(t)m(yp)s(e)5 b Fp(&\))450 1235 y Fr(Returns)35 b(a)h(32-bit)h(hash)e +(co)s(de)h(that)g(is)g(the)g(same)f(for)h(an)m(y)g(t)m(w)m(o)h(n)m(um)m +(b)s(ers)c(whic)m(h)i(are)i(the)f(same)450 1345 y(according)24 +b(to)h Fp(==)p Fr(.)38 b(This)22 b(hash)h(co)s(de)h(dep)s(ends)e(on)h +(the)h(n)m(um)m(b)s(er's)d(v)-5 b(alue,)26 b(not)d(its)h(t)m(yp)s(e)g +(or)g(precision.)-30 1499 y Fp(cl_boolean)k(zerop)h(\(const)f +Fl(t)m(yp)s(e)5 b Fp(&)31 b(x\))450 1608 y Fr(Compare)e(against)j +(zero:)41 b Fp(x)30 b(==)g(0)-30 1762 y Fr(Eac)m(h)43 +b(of)g(the)f(classes)i Fp(cl_R)p Fr(,)h Fp(cl_RA)p Fr(,)f +Fp(cl_I)p Fr(,)h Fp(cl_F)p Fr(,)f Fp(cl_SF)p Fr(,)g Fp(cl_FF)p +Fr(,)h Fp(cl_DF)p Fr(,)f Fp(cl_LF)d Fr(de\014nes)h(the)g(follo)m(wing) +-30 1872 y(op)s(erations:)-30 2026 y Fp(cl_signean)28 +b(cl_compare)f(\(const)i Fl(t)m(yp)s(e)5 b Fp(&)30 b(x,)g(const)f +Fl(t)m(yp)s(e)5 b Fp(&)30 b(y\))450 2135 y Fr(Compares)f +Fp(x)h Fr(and)g Fp(y)p Fr(.)40 b(Returns)30 b Fp(+)p +Fr(1)g(if)g Fp(x>y)p Fr(,)g(-1)h(if)g Fp(x=)i(\(const)f +Fl(t)m(yp)s(e)5 b Fp(&,)30 b(const)f Fl(t)m(yp)s(e)5 +b Fp(&\))-30 2618 y(bool)29 b(operator)f(>)i(\(const)f +Fl(t)m(yp)s(e)5 b Fp(&,)30 b(const)f Fl(t)m(yp)s(e)5 +b Fp(&\))450 2727 y Fr(Comparison,)29 b(as)i(in)f(C)g(and)f(C)p +Fp(++)p Fr(.)-30 2881 y Fp(cl_boolean)f(minusp)g(\(const)h +Fl(t)m(yp)s(e)5 b Fp(&)30 b(x\))450 2991 y Fr(Compare)f(against)j +(zero:)41 b Fp(x)30 b(<)g(0)-30 3145 y(cl_boolean)e(plusp)h(\(const)f +Fl(t)m(yp)s(e)5 b Fp(&)31 b(x\))450 3255 y Fr(Compare)e(against)j +(zero:)41 b Fp(x)30 b(>)g(0)-30 3408 y Fl(t)m(yp)s(e)36 +b Fp(max)29 b(\(const)g Fl(t)m(yp)s(e)5 b Fp(&)30 b(x,)g(const)f +Fl(t)m(yp)s(e)5 b Fp(&)30 b(y\))450 3518 y Fr(Return)g(the)g(maxim)m +(um)d(of)k Fp(x)f Fr(and)g Fp(y)p Fr(.)-30 3672 y Fl(t)m(yp)s(e)36 +b Fp(min)29 b(\(const)g Fl(t)m(yp)s(e)5 b Fp(&)30 b(x,)g(const)f +Fl(t)m(yp)s(e)5 b Fp(&)30 b(y\))450 3782 y Fr(Return)g(the)g(minim)m +(um)d(of)j Fp(x)g Fr(and)g Fp(y)p Fr(.)-30 3936 y(When)35 +b(a)g(\015oating)h(p)s(oin)m(t)f(n)m(um)m(b)s(er)d(and)i(a)i(rational)g +(n)m(um)m(b)s(er)c(are)k(compared,)f(the)g(\015oat)h(is)f(\014rst)f +(con)m(v)m(erted)i(to)-30 4045 y(a)f(rational)h(n)m(um)m(b)s(er)c +(using)i(the)h(function)f Fp(rational)p Fr(.)51 b(Since)35 +b(a)g(\015oating)g(p)s(oin)m(t)g(n)m(um)m(b)s(er)d(actually)k(represen) +m(ts)-30 4155 y(an)h(in)m(terv)-5 b(al)39 b(of)e(real)h(n)m(um)m(b)s +(ers,)f(the)h(result)f(migh)m(t)g(b)s(e)g(surprising.)60 +b(F)-8 b(or)38 b(example,)h Fp(\(cl_F\)\(cl_R\)"1/3")26 +b(==)-30 4264 y(\(cl_R\)"1/3")h Fr(returns)i(false)i(b)s(ecause)g +(there)f(is)h(no)f(\015oating)h(p)s(oin)m(t)g(n)m(um)m(b)s(er)d(whose)i +(v)-5 b(alue)31 b(is)f(exactly)i Fp(1/3)p Fr(.)-30 4513 +y Fs(4.6)68 b(Rounding)45 b(functions)-30 4703 y Fr(When)40 +b(a)g(real)h(n)m(um)m(b)s(er)d(is)i(to)h(b)s(e)f(con)m(v)m(erted)h(to)g +(an)f(in)m(teger,)45 b(there)40 b(is)g(no)g(\\b)s(est")h(rounding.)69 +b(The)39 b(desired)-30 4813 y(rounding)27 b(function)g(dep)s(ends)f(on) +i(the)g(application.)41 b(The)28 b(Common)d(Lisp)i(and)g(ISO)g(Lisp)g +(standards)g(o\013er)i(four)-30 4923 y(rounding)g(functions:)-30 +5076 y Fp(floor\(x\))96 b Fr(This)30 b(is)g(the)h(largest)g(in)m(teger) +h Fp(<)p Fr(=)p Fp(x)p Fr(.)-30 5230 y Fp(ceiling\(x\))450 +5340 y Fr(This)e(is)g(the)h(smallest)f(in)m(teger)i Fp(>)p +Fr(=)p Fp(x)p Fr(.)p eop %%Page: 14 16 -14 15 bop 0 -116 a Fr(Chapter)30 b(4:)41 b(F)-8 b(unctions)31 -b(on)f(n)m(um)m(b)s(ers)2463 b(14)0 366 y(Eac)m(h)39 -b(of)g(the)g(classes)h Fp(cl_N)p Fr(,)g Fp(cl_R)p Fr(,)f -Fp(cl_RA)p Fr(,)h Fp(cl_F)p Fr(,)g Fp(cl_SF)p Fr(,)f -Fp(cl_FF)p Fr(,)h Fp(cl_DF)p Fr(,)g Fp(cl_LF)d Fr(de\014nes)h(the)g -(follo)m(wing)0 491 y(op)s(erations:)0 796 y Fk(t)m(yp)s(e)e -Fp(operator)28 b(/)i(\(const)e Fk(t)m(yp)s(e)5 b Fp(&,)31 -b(const)d Fk(t)m(yp)s(e)5 b Fp(&\))480 921 y Fr(Division.)0 -1101 y Fk(t)m(yp)s(e)36 b Fp(recip)29 b(\(const)f Fk(t)m(yp)s(e)5 -b Fp(&\))480 1225 y Fr(Returns)29 b(the)i(recipro)s(cal)g(of)g(the)f -(argumen)m(t.)0 1530 y(The)d(class)g Fp(cl_I)f Fr(do)s(esn't)h -(de\014ne)g(a)g(`)p Fp(/)p Fr(')g(op)s(eration)h(b)s(ecause)f(in)g(the) -g(C/C)p Fp(++)f Fr(language)j(this)e(op)s(erator,)h(applied)0 -1655 y(to)j(in)m(tegral)h(t)m(yp)s(es,)f(denotes)f(the)h(`)p -Fp(floor)p Fr(')e(or)h(`)p Fp(truncate)p Fr(')f(op)s(eration)i(\(whic)m -(h)f(one)h(of)f(these,)h(is)g(implemen)m(ta-)0 1780 y(tion)j(dep)s -(enden)m(t\).)48 b(\(See)34 b(Section)f(4.6)i([Rounding)d(functions],)i -(page)g(17\))g(Instead,)g Fp(cl_I)e Fr(de\014nes)g(an)h(\\exact)0 -1904 y(quotien)m(t")f(function:)0 2209 y Fp(cl_I)d(exquo)g(\(const)g -(cl_I&)g(x,)h(const)e(cl_I&)h(y\))480 2334 y Fr(Chec)m(ks)i(that)g -Fp(y)f Fr(divides)g Fp(x)p Fr(,)g(and)g(returns)f(the)h(quotien)m(t)i -Fp(x)p Fr(/)p Fp(y)p Fr(.)0 2638 y(The)e(follo)m(wing)i(exp)s(onen)m -(tiation)f(functions)f(are)h(de\014ned:)0 2943 y Fp(cl_I)e(expt_pos)f -(\(const)h(cl_I&)g(x,)h(const)f(cl_I&)g(y\))0 3068 y(cl_RA)g(expt_pos)f -(\(const)h(cl_RA&)f(x,)i(const)f(cl_I&)g(y\))480 3193 -y(y)h Fr(m)m(ust)f(b)s(e)h Fp(>)g Fr(0.)41 b(Returns)30 -b Fp(x^y)p Fr(.)0 3373 y Fp(cl_RA)f(expt)g(\(const)g(cl_RA&)f(x,)i -(const)f(cl_I&)g(y\))0 3497 y(cl_R)g(expt)g(\(const)g(cl_R&)g(x,)h -(const)f(cl_I&)g(y\))0 3622 y(cl_N)g(expt)g(\(const)g(cl_N&)g(x,)h -(const)f(cl_I&)g(y\))480 3747 y Fr(Returns)g Fp(x^y)p -Fr(.)0 4052 y(Eac)m(h)39 b(of)g(the)g(classes)h Fp(cl_R)p -Fr(,)g Fp(cl_RA)p Fr(,)f Fp(cl_I)p Fr(,)h Fp(cl_F)p Fr(,)g -Fp(cl_SF)p Fr(,)f Fp(cl_FF)p Fr(,)h Fp(cl_DF)p Fr(,)g -Fp(cl_LF)d Fr(de\014nes)h(the)g(follo)m(wing)0 4176 y(op)s(eration:)0 -4481 y Fk(t)m(yp)s(e)e Fp(abs)29 b(\(const)g Fk(t)m(yp)s(e)5 -b Fp(&)30 b(x\))480 4606 y Fr(Returns)f(the)i(absolute)g(v)-5 -b(alue)31 b(of)f Fp(x)p Fr(.)41 b(This)29 b(is)i Fp(x)f -Fr(if)g Fp(x)g(>=)g(0)p Fr(,)g(and)g Fp(-x)g Fr(if)g -Fp(x)g(<=)g(0)p Fr(.)0 4911 y(The)g(class)h Fp(cl_N)e -Fr(implemen)m(ts)g(this)h(as)h(follo)m(ws:)0 5215 y Fp(cl_R)e(abs)h -(\(const)e(cl_N)i(x\))480 5340 y Fr(Returns)f(the)i(absolute)g(v)-5 -b(alue)31 b(of)f Fp(x)p Fr(.)p eop -%%Page: 15 17 -15 16 bop 0 -116 a Fr(Chapter)30 b(4:)41 b(F)-8 b(unctions)31 -b(on)f(n)m(um)m(b)s(ers)2463 b(15)0 366 y(Eac)m(h)22 -b(of)g(the)g(classes)h Fp(cl_N)p Fr(,)g Fp(cl_R)p Fr(,)f -Fp(cl_RA)p Fr(,)g Fp(cl_I)p Fr(,)h Fp(cl_F)p Fr(,)g Fp(cl_SF)p -Fr(,)f Fp(cl_FF)p Fr(,)g Fp(cl_DF)p Fr(,)g Fp(cl_LF)f -Fr(de\014nes)g(the)g(follo)m(wing)0 491 y(op)s(eration:)0 -798 y Fk(t)m(yp)s(e)36 b Fp(signum)28 b(\(const)h Fk(t)m(yp)s(e)5 -b Fp(&)30 b(x\))480 922 y Fr(Returns)g(the)i(sign)f(of)g -Fp(x)p Fr(,)h(in)f(the)g(same)g(n)m(um)m(b)s(er)e(format)h(as)i -Fp(x)p Fr(.)42 b(This)31 b(is)g(de\014ned)f(as)i Fp(x)e(/)g(abs\(x\)) -480 1047 y Fr(if)g Fp(x)g Fr(is)h(non-zero,)g(and)f Fp(x)g -Fr(if)g Fp(x)g Fr(is)h(zero.)41 b(If)30 b Fp(x)g Fr(is)g(real,)i(the)e -(v)-5 b(alue)31 b(is)g(either)f(0)h(or)f(1)h(or)g(-1.)0 -1531 y Fs(4.3)68 b(Elemen)l(tary)32 b(rational)g(functions)0 -1808 y Fr(Eac)m(h)f(of)g(the)f(classes)i Fp(cl_RA)p Fr(,)d -Fp(cl_I)g Fr(de\014nes)g(the)i(follo)m(wing)h(op)s(erations:)0 -2115 y Fp(cl_I)d(numerator)f(\(const)h Fk(t)m(yp)s(e)5 -b Fp(&)30 b(x\))480 2240 y Fr(Returns)f(the)i(n)m(umerator)e(of)i -Fp(x)p Fr(.)0 2422 y Fp(cl_I)e(denominator)f(\(const)g -Fk(t)m(yp)s(e)5 b Fp(&)31 b(x\))480 2546 y Fr(Returns)e(the)i -(denominator)f(of)g Fp(x)p Fr(.)0 2853 y(The)c(n)m(umerator)h(and)f -(denominator)g(of)h(a)h(rational)g(n)m(um)m(b)s(er)c(are)k(normalized)e -(in)h(suc)m(h)g(a)g(w)m(a)m(y)h(that)g(they)f(ha)m(v)m(e)0 -2978 y(no)j(factor)i(in)e(common)e(and)i(the)h(denominator)e(is)i(p)s -(ositiv)m(e.)0 3462 y Fs(4.4)68 b(Elemen)l(tary)32 b(complex)f -(functions)0 3739 y Fr(The)f(class)h Fp(cl_N)e Fr(de\014nes)h(the)g -(follo)m(wing)i(op)s(eration:)0 4046 y Fp(cl_N)d(complex)g(\(const)f -(cl_R&)h(a,)h(const)f(cl_R&)g(b\))480 4171 y Fr(Returns)i(the)h -(complex)f(n)m(um)m(b)s(er)f Fp(a+bi)p Fr(,)h(that)i(is,)f(the)g -(complex)g(n)m(um)m(b)s(er)d(with)j(real)g(part)g Fp(a)g -Fr(and)480 4295 y(imaginary)e(part)g Fp(b)p Fr(.)0 4602 -y(Eac)m(h)h(of)g(the)f(classes)i Fp(cl_N)p Fr(,)d Fp(cl_R)g -Fr(de\014nes)h(the)g(follo)m(wing)i(op)s(erations:)0 -4909 y Fp(cl_R)d(realpart)f(\(const)h Fk(t)m(yp)s(e)5 -b Fp(&)30 b(x\))480 5033 y Fr(Returns)f(the)i(real)g(part)f(of)h -Fp(x)p Fr(.)0 5215 y Fp(cl_R)e(imagpart)f(\(const)h Fk(t)m(yp)s(e)5 -b Fp(&)30 b(x\))480 5340 y Fr(Returns)f(the)i(imaginary)f(part)g(of)h -Fp(x)p Fr(.)p eop -%%Page: 16 18 -16 17 bop 0 -116 a Fr(Chapter)30 b(4:)41 b(F)-8 b(unctions)31 -b(on)f(n)m(um)m(b)s(ers)2463 b(16)0 366 y Fk(t)m(yp)s(e)36 -b Fp(conjugate)27 b(\(const)i Fk(t)m(yp)s(e)5 b Fp(&)31 -b(x\))480 491 y Fr(Returns)e(the)i(complex)f(conjugate)i(of)e -Fp(x)p Fr(.)0 795 y(W)-8 b(e)32 b(ha)m(v)m(e)f(the)g(relations)180 -1071 y Fp(x)f(=)g(complex\(realpart\(x\),)25 b(imagpart\(x\)\))180 -1223 y(conjugate\(x\))i(=)j(complex\(realpart\(x\),)25 -b(-imagpart\(x\)\))0 1693 y Fs(4.5)68 b(Comparisons)0 -1969 y Fr(Eac)m(h)22 b(of)g(the)g(classes)h Fp(cl_N)p -Fr(,)g Fp(cl_R)p Fr(,)f Fp(cl_RA)p Fr(,)g Fp(cl_I)p Fr(,)h -Fp(cl_F)p Fr(,)g Fp(cl_SF)p Fr(,)f Fp(cl_FF)p Fr(,)g -Fp(cl_DF)p Fr(,)g Fp(cl_LF)f Fr(de\014nes)g(the)g(follo)m(wing)0 -2094 y(op)s(erations:)0 2397 y Fp(bool)29 b(operator)f(==)i(\(const)f -Fk(t)m(yp)s(e)5 b Fp(&,)30 b(const)f Fk(t)m(yp)s(e)5 -b Fp(&\))0 2522 y(bool)29 b(operator)f(!=)i(\(const)f -Fk(t)m(yp)s(e)5 b Fp(&,)30 b(const)f Fk(t)m(yp)s(e)5 -b Fp(&\))480 2646 y Fr(Comparison,)29 b(as)i(in)f(C)g(and)f(C)p -Fp(++)p Fr(.)0 2825 y Fp(uint32)g(cl_equal_hashcode)c(\(const)k -Fk(t)m(yp)s(e)5 b Fp(&\))480 2950 y Fr(Returns)31 b(a)h(32-bit)i(hash)d -(co)s(de)h(that)h(is)f(the)g(same)f(for)h(an)m(y)g(t)m(w)m(o)i(n)m(um)m -(b)s(ers)29 b(whic)m(h)j(are)g(the)h(same)480 3075 y(according)e(to)g -Fp(==)p Fr(.)40 b(This)29 b(hash)g(co)s(de)i(dep)s(ends)d(on)i(the)g(n) -m(um)m(b)s(er's)e(v)-5 b(alue,)31 b(not)f(its)g(t)m(yp)s(e)g(or)h -(preci-)480 3199 y(sion.)0 3378 y Fp(cl_boolean)d(zerop)h(\(const)f -Fk(t)m(yp)s(e)5 b Fp(&)31 b(x\))480 3503 y Fr(Compare)e(against)j -(zero:)41 b Fp(x)30 b(==)g(0)0 3806 y Fr(Eac)m(h)39 b(of)g(the)g -(classes)h Fp(cl_R)p Fr(,)g Fp(cl_RA)p Fr(,)f Fp(cl_I)p -Fr(,)h Fp(cl_F)p Fr(,)g Fp(cl_SF)p Fr(,)f Fp(cl_FF)p -Fr(,)h Fp(cl_DF)p Fr(,)g Fp(cl_LF)d Fr(de\014nes)h(the)g(follo)m(wing)0 -3931 y(op)s(erations:)0 4235 y Fp(cl_signean)28 b(cl_compare)f(\(const) -i Fk(t)m(yp)s(e)5 b Fp(&)30 b(x,)g(const)f Fk(t)m(yp)s(e)5 -b Fp(&)30 b(y\))480 4359 y Fr(Compares)f Fp(x)h Fr(and)g -Fp(y)p Fr(.)40 b(Returns)30 b Fp(+)p Fr(1)g(if)g Fp(x>y)p -Fr(,)g(-1)h(if)g Fp(x=)i(\(const)f -Fk(t)m(yp)s(e)5 b Fp(&,)30 b(const)f Fk(t)m(yp)s(e)5 -b Fp(&\))0 4912 y(bool)29 b(operator)f(>)i(\(const)f -Fk(t)m(yp)s(e)5 b Fp(&,)30 b(const)f Fk(t)m(yp)s(e)5 -b Fp(&\))480 5036 y Fr(Comparison,)29 b(as)i(in)f(C)g(and)f(C)p -Fp(++)p Fr(.)0 5215 y Fp(cl_boolean)f(minusp)g(\(const)h -Fk(t)m(yp)s(e)5 b Fp(&)30 b(x\))480 5340 y Fr(Compare)f(against)j -(zero:)41 b Fp(x)30 b(<)g(0)p eop -%%Page: 17 19 -17 18 bop 0 -116 a Fr(Chapter)30 b(4:)41 b(F)-8 b(unctions)31 -b(on)f(n)m(um)m(b)s(ers)2463 b(17)0 366 y Fp(cl_boolean)28 -b(plusp)h(\(const)f Fk(t)m(yp)s(e)5 b Fp(&)31 b(x\))480 -491 y Fr(Compare)e(against)j(zero:)41 b Fp(x)30 b(>)g(0)0 -656 y Fk(t)m(yp)s(e)36 b Fp(max)29 b(\(const)g Fk(t)m(yp)s(e)5 -b Fp(&)30 b(x,)g(const)f Fk(t)m(yp)s(e)5 b Fp(&)30 b(y\))480 -780 y Fr(Return)g(the)g(maxim)m(um)d(of)k Fp(x)f Fr(and)g -Fp(y)p Fr(.)0 945 y Fk(t)m(yp)s(e)36 b Fp(min)29 b(\(const)g -Fk(t)m(yp)s(e)5 b Fp(&)30 b(x,)g(const)f Fk(t)m(yp)s(e)5 -b Fp(&)30 b(y\))480 1069 y Fr(Return)g(the)g(minim)m(um)d(of)j -Fp(x)g Fr(and)g Fp(y)p Fr(.)0 1363 y(When)h(a)h(\015oating)g(p)s(oin)m -(t)f(n)m(um)m(b)s(er)e(and)h(a)i(rational)g(n)m(um)m(b)s(er)d(are)j -(compared,)f(the)g(\015oat)h(is)f(\014rst)f(con)m(v)m(erted)j(to)0 -1488 y(a)e(rational)h(n)m(um)m(b)s(er)c(using)i(the)h(function)f -Fp(rational)p Fr(.)39 b(Since)31 b(a)g(\015oating)g(p)s(oin)m(t)g(n)m -(um)m(b)s(er)d(actually)k(represen)m(ts)0 1612 y(an)h(in)m(terv)-5 -b(al)34 b(of)g(real)g(n)m(um)m(b)s(ers,)d(the)j(result)f(migh)m(t)g(b)s -(e)f(surprising.)48 b(F)-8 b(or)34 b(example,)g Fp -(\(cl_F\)\(cl_R\)"1/3")26 b(==)0 1737 y(\(cl_R\)"1/3")h -Fr(returns)i(false)i(b)s(ecause)g(there)f(is)h(no)f(\015oating)h(p)s -(oin)m(t)g(n)m(um)m(b)s(er)d(whose)i(v)-5 b(alue)31 b(is)f(exactly)i -Fp(1/3)p Fr(.)0 2166 y Fs(4.6)68 b(Rounding)30 b(functions)0 -2440 y Fr(When)37 b(a)g(real)h(n)m(um)m(b)s(er)d(is)i(to)h(b)s(e)e(con) -m(v)m(erted)j(to)e(an)g(in)m(teger,)k(there)c(is)g(no)g(\\b)s(est")g -(rounding.)60 b(The)36 b(desired)0 2564 y(rounding)g(function)g(dep)s -(ends)f(on)i(the)g(application.)61 b(The)36 b(Common)e(Lisp)j(and)f -(ISO)g(Lisp)g(standards)g(o\013er)0 2689 y(four)30 b(rounding)f -(functions:)0 2983 y Fp(floor\(x\))96 b Fr(This)30 b(is)g(the)h -(largest)g(in)m(teger)h Fp(<)p Fr(=)p Fp(x)p Fr(.)0 3148 -y Fp(ceiling\(x\))480 3272 y Fr(This)e(is)g(the)h(smallest)f(in)m -(teger)i Fp(>)p Fr(=)p Fp(x)p Fr(.)0 3437 y Fp(truncate\(x\))480 -3561 y Fr(Among)e(the)g(in)m(tegers)i(b)s(et)m(w)m(een)f(0)g(and)e +14 15 bop -30 -116 a Fr(Chapter)30 b(4:)41 b(F)-8 b(unctions)31 +b(on)f(n)m(um)m(b)s(ers)2523 b(14)-30 299 y Fp(truncate\(x\))450 +408 y Fr(Among)30 b(the)g(in)m(tegers)i(b)s(et)m(w)m(een)f(0)g(and)e Fp(x)h Fr(\(inclusiv)m(e\))i(the)f(one)g(nearest)f(to)i -Fp(x)p Fr(.)0 3726 y Fp(round\(x\))96 b Fr(The)29 b(in)m(teger)h -(nearest)f(to)h Fp(x)p Fr(.)40 b(If)29 b Fp(x)f Fr(is)h(exactly)i -(halfw)m(a)m(y)f(b)s(et)m(w)m(een)g(t)m(w)m(o)g(in)m(tegers,)h(c)m(ho)s -(ose)f(the)f(ev)m(en)480 3850 y(one.)0 4144 y(These)h(functions)g(ha)m -(v)m(e)i(di\013eren)m(t)e(adv)-5 b(an)m(tages:)0 4418 -y Fp(floor)38 b Fr(and)g Fp(ceiling)g Fr(are)h(translation)h(in)m(v)-5 -b(arian)m(t:)60 b Fp(floor\(x+n\))28 b(=)i(floor\(x\))e(+)i(n)39 -b Fr(and)f Fp(ceiling\(x+n\))27 b(=)0 4543 y(ceiling\(x\))h(+)i(n)g +Fp(x)p Fr(.)-30 566 y Fp(round\(x\))96 b Fr(The)32 b(in)m(teger)i +(nearest)g(to)f Fp(x)p Fr(.)48 b(If)32 b Fp(x)g Fr(is)h(exactly)i +(halfw)m(a)m(y)e(b)s(et)m(w)m(een)h(t)m(w)m(o)g(in)m(tegers,)h(c)m(ho)s +(ose)e(the)g(ev)m(en)450 676 y(one.)-30 833 y(These)d(functions)g(ha)m +(v)m(e)i(di\013eren)m(t)e(adv)-5 b(an)m(tages:)-30 967 +y Fp(floor)44 b Fr(and)i Fp(ceiling)e Fr(are)i(translation)h(in)m(v)-5 +b(arian)m(t:)73 b Fp(floor\(x+n\))27 b(=)j(floor\(x\))e(+)i(n)46 +b Fr(and)f Fp(ceiling\(x+n\))27 b(=)-30 1076 y(ceiling\(x\))h(+)i(n)g Fr(for)g(ev)m(ery)h Fp(x)f Fr(and)g(ev)m(ery)h(in)m(teger)h -Fp(n)p Fr(.)0 4817 y(On)46 b(the)h(other)g(hand,)j Fp(truncate)44 -b Fr(and)i Fp(round)f Fr(are)i(symmetric:)72 b Fp(truncate\(-x\))27 -b(=)j(-truncate\(x\))44 b Fr(and)0 4941 y Fp(round\(-x\))28 -b(=)i(-round\(x\))p Fr(,)38 b(and)g(furthermore)e Fp(round)h -Fr(is)h(un)m(biased:)57 b(on)38 b(the)h(\\a)m(v)m(erage",)44 -b(it)39 b(rounds)d(do)m(wn)0 5066 y(exactly)c(as)f(often)g(as)f(it)h -(rounds)e(up.)0 5340 y(The)h(functions)g(are)h(related)g(lik)m(e)h -(this:)p eop -%%Page: 18 20 -18 19 bop 0 -116 a Fr(Chapter)30 b(4:)41 b(F)-8 b(unctions)31 -b(on)f(n)m(um)m(b)s(ers)2463 b(18)180 366 y Fp(ceiling\(m/n\))27 -b(=)j(floor\(\(m+n-1\)/n\))c(=)k(floor\(\(m-1\)/n\)+1)g -Fr(for)35 b(rational)h(n)m(um)m(b)s(ers)c Fp(m/n)i Fr(\()p -Fp(m)p Fr(,)i Fp(n)f Fr(in-)180 491 y(tegers,)d Fp(n>)p -Fr(0\),)e(and)180 646 y Fp(truncate\(x\))d(=)j(sign\(x\))f(*)h -(floor\(abs\(x\)\))0 957 y Fr(Eac)m(h)24 b(of)f(the)h(classes)g -Fp(cl_R)p Fr(,)g Fp(cl_RA)p Fr(,)g Fp(cl_F)p Fr(,)f Fp(cl_SF)p -Fr(,)h Fp(cl_FF)p Fr(,)f Fp(cl_DF)p Fr(,)h Fp(cl_LF)e -Fr(de\014nes)g(the)i(follo)m(wing)g(op)s(erations:)0 -1268 y Fp(cl_I)29 b(floor1)g(\(const)g Fk(t)m(yp)s(e)5 -b Fp(&)30 b(x\))480 1392 y Fr(Returns)f Fp(floor\(x\))p -Fr(.)0 1578 y Fp(cl_I)g(ceiling1)f(\(const)h Fk(t)m(yp)s(e)5 -b Fp(&)30 b(x\))480 1703 y Fr(Returns)f Fp(ceiling\(x\))p -Fr(.)0 1889 y Fp(cl_I)g(truncate1)f(\(const)h Fk(t)m(yp)s(e)5 -b Fp(&)30 b(x\))480 2014 y Fr(Returns)f Fp(truncate\(x\))p -Fr(.)0 2200 y Fp(cl_I)g(round1)g(\(const)g Fk(t)m(yp)s(e)5 -b Fp(&)30 b(x\))480 2324 y Fr(Returns)f Fp(round\(x\))p -Fr(.)0 2635 y(Eac)m(h)39 b(of)g(the)g(classes)h Fp(cl_R)p -Fr(,)g Fp(cl_RA)p Fr(,)f Fp(cl_I)p Fr(,)h Fp(cl_F)p Fr(,)g -Fp(cl_SF)p Fr(,)f Fp(cl_FF)p Fr(,)h Fp(cl_DF)p Fr(,)g -Fp(cl_LF)d Fr(de\014nes)h(the)g(follo)m(wing)0 2760 y(op)s(erations:)0 -3070 y Fp(cl_I)29 b(floor1)g(\(const)g Fk(t)m(yp)s(e)5 -b Fp(&)30 b(x,)g(const)f Fk(t)m(yp)s(e)5 b Fp(&)30 b(y\))480 -3195 y Fr(Returns)f Fp(floor\(x/y\))p Fr(.)0 3381 y Fp(cl_I)g(ceiling1) -f(\(const)h Fk(t)m(yp)s(e)5 b Fp(&)30 b(x,)g(const)f -Fk(t)m(yp)s(e)5 b Fp(&)30 b(y\))480 3505 y Fr(Returns)f -Fp(ceiling\(x/y\))p Fr(.)0 3692 y Fp(cl_I)g(truncate1)f(\(const)h -Fk(t)m(yp)s(e)5 b Fp(&)30 b(x,)g(const)f Fk(t)m(yp)s(e)5 -b Fp(&)30 b(y\))480 3816 y Fr(Returns)f Fp(truncate\(x/y\))p -Fr(.)0 4002 y Fp(cl_I)g(round1)g(\(const)g Fk(t)m(yp)s(e)5 -b Fp(&)30 b(x,)g(const)f Fk(t)m(yp)s(e)5 b Fp(&)30 b(y\))480 -4127 y Fr(Returns)f Fp(round\(x/y\))p Fr(.)0 4437 y(These)41 -b(functions)g(are)h(called)h(`)p Fp(floor1)p Fr(',)g -Fn(:)15 b(:)g(:)42 b Fr(here)g(instead)f(of)h(`)p Fp(floor)p -Fr(',)i Fn(:)15 b(:)g(:)q Fr(,)44 b(b)s(ecause)d(on)h(some)f(systems,)0 -4562 y(system)30 b(dep)s(enden)m(t)f(include)h(\014les)g(de\014ne)g(`)p -Fp(floor)p Fr(')f(and)h(`)p Fp(ceiling)p Fr(')f(as)i(macros.)0 -4842 y(In)k(man)m(y)g(cases,)j(one)e(needs)g(b)s(oth)f(the)h(quotien)m -(t)h(and)e(the)h(remainder)e(of)i(a)g(division.)57 b(It)36 -b(is)g(more)e(e\016cien)m(t)0 4966 y(to)j(compute)e(b)s(oth)g(at)i(the) -f(same)f(time)g(than)h(to)h(p)s(erform)c(t)m(w)m(o)k(divisions,)h(one)e -(for)f(quotien)m(t)i(and)f(the)g(next)0 5091 y(one)h(for)g(the)h -(remainder.)59 b(The)37 b(follo)m(wing)h(functions)f(therefore)g -(return)g(a)g(structure)g(con)m(taining)h(b)s(oth)f(the)0 -5215 y(quotien)m(t)28 b(and)e(the)h(remainder.)38 b(The)27 -b(su\016x)e(`)p Fp(2)p Fr(')i(indicates)h(the)f(n)m(um)m(b)s(er)e(of)i -(\\return)f(v)-5 b(alues".)40 b(The)27 b(remainder)0 -5340 y(is)j(de\014ned)g(as)g(follo)m(ws:)p eop -%%Page: 19 21 -19 20 bop 0 -116 a Fr(Chapter)30 b(4:)41 b(F)-8 b(unctions)31 -b(on)f(n)m(um)m(b)s(ers)2463 b(19)75 366 y Fq(\017)60 +Fp(n)p Fr(.)-30 1210 y(On)51 b(the)h(other)h(hand,)j +Fp(truncate)50 b Fr(and)h Fp(round)g Fr(are)h(symmetric:)83 +b Fp(truncate\(-x\))27 b(=)j(-truncate\(x\))49 b Fr(and)-30 +1319 y Fp(round\(-x\))28 b(=)i(-round\(x\))p Fr(,)44 +b(and)f(furthermore)e Fp(round)g Fr(is)j(un)m(biased:)65 +b(on)44 b(the)f(\\a)m(v)m(erage",)50 b(it)44 b(rounds)d(do)m(wn)-30 +1429 y(exactly)32 b(as)f(often)g(as)f(it)h(rounds)e(up.)-30 +1563 y(The)h(functions)g(are)h(related)g(lik)m(e)h(this:)150 +1696 y Fp(ceiling\(m/n\))27 b(=)j(floor\(\(m+n-1\)/n\))c(=)k +(floor\(\(m-1\)/n\)+1)f Fr(for)j(rational)j(n)m(um)m(b)s(ers)30 +b Fp(m/n)i Fr(\()p Fp(m)p Fr(,)i Fp(n)f Fr(in)m(te-)150 +1806 y(gers,)e Fp(n>)p Fr(0\),)g(and)150 1939 y Fp(truncate\(x\))c(=)j +(sign\(x\))f(*)h(floor\(abs\(x\)\))-30 2097 y Fr(Eac)m(h)f(of)f(the)g +(classes)h Fp(cl_R)p Fr(,)e Fp(cl_RA)p Fr(,)h Fp(cl_F)p +Fr(,)f Fp(cl_SF)p Fr(,)h Fp(cl_FF)p Fr(,)f Fp(cl_DF)p +Fr(,)g Fp(cl_LF)g Fr(de\014nes)g(the)h(follo)m(wing)h(op)s(erations:) +-30 2254 y Fp(cl_I)g(floor1)g(\(const)g Fl(t)m(yp)s(e)5 +b Fp(&)30 b(x\))450 2364 y Fr(Returns)f Fp(floor\(x\))p +Fr(.)-30 2521 y Fp(cl_I)g(ceiling1)f(\(const)h Fl(t)m(yp)s(e)5 +b Fp(&)30 b(x\))450 2631 y Fr(Returns)f Fp(ceiling\(x\))p +Fr(.)-30 2789 y Fp(cl_I)g(truncate1)f(\(const)h Fl(t)m(yp)s(e)5 +b Fp(&)30 b(x\))450 2898 y Fr(Returns)f Fp(truncate\(x\))p +Fr(.)-30 3056 y Fp(cl_I)g(round1)g(\(const)g Fl(t)m(yp)s(e)5 +b Fp(&)30 b(x\))450 3165 y Fr(Returns)f Fp(round\(x\))p +Fr(.)-30 3323 y(Eac)m(h)43 b(of)g(the)f(classes)i Fp(cl_R)p +Fr(,)h Fp(cl_RA)p Fr(,)f Fp(cl_I)p Fr(,)h Fp(cl_F)p Fr(,)f +Fp(cl_SF)p Fr(,)g Fp(cl_FF)p Fr(,)h Fp(cl_DF)p Fr(,)f +Fp(cl_LF)d Fr(de\014nes)h(the)g(follo)m(wing)-30 3432 +y(op)s(erations:)-30 3590 y Fp(cl_I)29 b(floor1)g(\(const)g +Fl(t)m(yp)s(e)5 b Fp(&)30 b(x,)g(const)f Fl(t)m(yp)s(e)5 +b Fp(&)30 b(y\))450 3700 y Fr(Returns)f Fp(floor\(x/y\))p +Fr(.)-30 3857 y Fp(cl_I)g(ceiling1)f(\(const)h Fl(t)m(yp)s(e)5 +b Fp(&)30 b(x,)g(const)f Fl(t)m(yp)s(e)5 b Fp(&)30 b(y\))450 +3967 y Fr(Returns)f Fp(ceiling\(x/y\))p Fr(.)-30 4124 +y Fp(cl_I)g(truncate1)f(\(const)h Fl(t)m(yp)s(e)5 b Fp(&)30 +b(x,)g(const)f Fl(t)m(yp)s(e)5 b Fp(&)30 b(y\))450 4234 +y Fr(Returns)f Fp(truncate\(x/y\))p Fr(.)-30 4391 y Fp(cl_I)g(round1)g +(\(const)g Fl(t)m(yp)s(e)5 b Fp(&)30 b(x,)g(const)f Fl(t)m(yp)s(e)5 +b Fp(&)30 b(y\))450 4501 y Fr(Returns)f Fp(round\(x/y\))p +Fr(.)-30 4658 y(These)41 b(functions)g(are)h(called)h(`)p +Fp(floor1)p Fr(',)48 b(.)23 b(.)f(.)52 b(here)42 b(instead)f(of)h(`)p +Fp(floor)p Fr(',)49 b(.)22 b(.)h(.)11 b(,)44 b(b)s(ecause)e(on)f(some)g +(systems,)-30 4768 y(system)30 b(dep)s(enden)m(t)f(include)h(\014les)g +(de\014ne)g(`)p Fp(floor)p Fr(')f(and)h(`)p Fp(ceiling)p +Fr(')f(as)i(macros.)-30 4902 y(In)h(man)m(y)g(cases,)j(one)e(needs)g(b) +s(oth)f(the)h(quotien)m(t)i(and)d(the)h(remainder)e(of)j(a)f(division.) +49 b(It)33 b(is)g(more)f(e\016cien)m(t)i(to)-30 5011 +y(compute)h(b)s(oth)h(at)h(the)f(same)g(time)f(than)h(to)h(p)s(erform)d +(t)m(w)m(o)j(divisions,)h(one)e(for)g(quotien)m(t)i(and)d(the)h(next)h +(one)-30 5121 y(for)28 b(the)g(remainder.)38 b(The)27 +b(follo)m(wing)j(functions)d(therefore)i(return)d(a)j(structure)e(con)m +(taining)i(b)s(oth)f(the)g(quotien)m(t)-30 5230 y(and)g(the)g +(remainder.)38 b(The)28 b(su\016x)f(`)p Fp(2)p Fr(')h(indicates)h(the)g +(n)m(um)m(b)s(er)c(of)k(\\return)e(v)-5 b(alues".)41 +b(The)27 b(remainder)g(is)h(de\014ned)-30 5340 y(as)j(follo)m(ws:)p +eop +%%Page: 15 17 +15 16 bop -30 -116 a Fr(Chapter)30 b(4:)41 b(F)-8 b(unctions)31 +b(on)f(n)m(um)m(b)s(ers)2523 b(15)45 299 y Fq(\017)60 b Fr(for)30 b(the)h(computation)f(of)h Fp(quotient)d(=)i(floor\(x\))p -Fr(,)e Fp(remainder)g(=)i(x)g(-)g(quotient)p Fr(,)75 -540 y Fq(\017)60 b Fr(for)30 b(the)h(computation)f(of)h +Fr(,)e Fp(remainder)g(=)i(x)g(-)g(quotient)p Fr(,)45 +441 y Fq(\017)60 b Fr(for)30 b(the)h(computation)f(of)h Fp(quotient)d(=)i(floor\(x,y\))p Fr(,)e Fp(remainder)f(=)j(x)g(-)g -(quotient*y)p Fr(,)0 888 y(and)g(similarly)g(for)g(the)g(other)h(three) -g(op)s(erations.)0 1186 y(Eac)m(h)24 b(of)f(the)h(classes)g -Fp(cl_R)p Fr(,)g Fp(cl_RA)p Fr(,)g Fp(cl_F)p Fr(,)f Fp(cl_SF)p -Fr(,)h Fp(cl_FF)p Fr(,)f Fp(cl_DF)p Fr(,)h Fp(cl_LF)e -Fr(de\014nes)g(the)i(follo)m(wing)g(op)s(erations:)0 -1534 y Fp(struct)29 b Fk(t)m(yp)s(e)5 b Fp(_div_t)29 -b({)h(cl_I)f(quotient;)f Fk(t)m(yp)s(e)35 b Fp(remainder;)28 -b(};)0 1659 y Fk(t)m(yp)s(e)5 b Fp(_div_t)29 b(floor2)g(\(const)f -Fk(t)m(yp)s(e)5 b Fp(&)31 b(x\))0 1783 y Fk(t)m(yp)s(e)5 -b Fp(_div_t)29 b(ceiling2)f(\(const)h Fk(t)m(yp)s(e)5 -b Fp(&)30 b(x\))0 1908 y Fk(t)m(yp)s(e)5 b Fp(_div_t)29 -b(truncate2)f(\(const)h Fk(t)m(yp)s(e)5 b Fp(&)30 b(x\))0 -2032 y Fk(t)m(yp)s(e)5 b Fp(_div_t)29 b(round2)g(\(const)f -Fk(t)m(yp)s(e)5 b Fp(&)31 b(x\))0 2330 y Fr(Eac)m(h)39 -b(of)g(the)g(classes)h Fp(cl_R)p Fr(,)g Fp(cl_RA)p Fr(,)f -Fp(cl_I)p Fr(,)h Fp(cl_F)p Fr(,)g Fp(cl_SF)p Fr(,)f Fp(cl_FF)p -Fr(,)h Fp(cl_DF)p Fr(,)g Fp(cl_LF)d Fr(de\014nes)h(the)g(follo)m(wing)0 -2455 y(op)s(erations:)0 2803 y Fp(struct)29 b Fk(t)m(yp)s(e)5 -b Fp(_div_t)29 b({)h(cl_I)f(quotient;)f Fk(t)m(yp)s(e)35 -b Fp(remainder;)28 b(};)0 2927 y Fk(t)m(yp)s(e)5 b Fp(_div_t)29 -b(floor2)g(\(const)f Fk(t)m(yp)s(e)5 b Fp(&)31 b(x,)e(const)g -Fk(t)m(yp)s(e)5 b Fp(&)31 b(y\))0 3052 y Fk(t)m(yp)s(e)5 -b Fp(_div_t)29 b(ceiling2)f(\(const)h Fk(t)m(yp)s(e)5 -b Fp(&)30 b(x,)g(const)f Fk(t)m(yp)s(e)5 b Fp(&)30 b(y\))0 -3176 y Fk(t)m(yp)s(e)5 b Fp(_div_t)29 b(truncate2)f(\(const)h -Fk(t)m(yp)s(e)5 b Fp(&)30 b(x,)g(const)f Fk(t)m(yp)s(e)5 -b Fp(&)30 b(y\))0 3301 y Fk(t)m(yp)s(e)5 b Fp(_div_t)29 -b(round2)g(\(const)f Fk(t)m(yp)s(e)5 b Fp(&)31 b(x,)e(const)g -Fk(t)m(yp)s(e)5 b Fp(&)31 b(y\))0 3599 y Fr(Sometimes,)24 -b(one)h(w)m(an)m(ts)f(the)h(quotien)m(t)g(as)f(a)h(\015oating-p)s(oin)m -(t)g(n)m(um)m(b)s(er)d(\(of)i(the)h(same)e(format)h(as)g(the)g(argumen) -m(t,)0 3724 y(if)30 b(the)h(argumen)m(t)f(is)g(a)h(\015oat\))g(instead) -g(of)f(as)h(an)f(in)m(teger.)42 b(The)30 b(pre\014x)g(`)p -Fp(f)p Fr(')g(indicates)h(this.)0 4022 y(Eac)m(h)g(of)g(the)f(classes)i -Fp(cl_F)p Fr(,)d Fp(cl_SF)p Fr(,)g Fp(cl_FF)p Fr(,)g -Fp(cl_DF)p Fr(,)h Fp(cl_LF)e Fr(de\014nes)i(the)h(follo)m(wing)g(op)s -(erations:)0 4370 y Fk(t)m(yp)s(e)36 b Fp(ffloor)28 b(\(const)h -Fk(t)m(yp)s(e)5 b Fp(&)30 b(x\))0 4494 y Fk(t)m(yp)s(e)36 -b Fp(fceiling)28 b(\(const)g Fk(t)m(yp)s(e)5 b Fp(&)31 -b(x\))0 4619 y Fk(t)m(yp)s(e)36 b Fp(ftruncate)27 b(\(const)i -Fk(t)m(yp)s(e)5 b Fp(&)31 b(x\))0 4743 y Fk(t)m(yp)s(e)36 -b Fp(fround)28 b(\(const)h Fk(t)m(yp)s(e)5 b Fp(&)30 -b(x\))0 5042 y Fr(and)g(similarly)g(for)g(class)h Fp(cl_R)p -Fr(,)e(but)h(with)g(return)f(t)m(yp)s(e)i Fp(cl_F)p Fr(.)0 -5340 y(The)f(class)h Fp(cl_R)e Fr(de\014nes)h(the)g(follo)m(wing)i(op)s -(erations:)p eop -%%Page: 20 22 -20 21 bop 0 -116 a Fr(Chapter)30 b(4:)41 b(F)-8 b(unctions)31 -b(on)f(n)m(um)m(b)s(ers)2463 b(20)0 366 y Fp(cl_F)29 -b(ffloor)g(\(const)g Fk(t)m(yp)s(e)5 b Fp(&)30 b(x,)g(const)f -Fk(t)m(yp)s(e)5 b Fp(&)30 b(y\))0 491 y(cl_F)f(fceiling)f(\(const)h -Fk(t)m(yp)s(e)5 b Fp(&)30 b(x,)g(const)f Fk(t)m(yp)s(e)5 -b Fp(&)30 b(y\))0 616 y(cl_F)f(ftruncate)f(\(const)h -Fk(t)m(yp)s(e)5 b Fp(&)30 b(x,)g(const)f Fk(t)m(yp)s(e)5 -b Fp(&)30 b(y\))0 740 y(cl_F)f(fround)g(\(const)g Fk(t)m(yp)s(e)5 -b Fp(&)30 b(x,)g(const)f Fk(t)m(yp)s(e)5 b Fp(&)30 b(y\))0 -1024 y Fr(These)25 b(functions)h(also)g(exist)h(in)e(v)m(ersions)h -(whic)m(h)g(return)e(b)s(oth)h(the)h(quotien)m(t)h(and)e(the)h -(remainder.)38 b(The)25 b(su\016x)0 1149 y(`)p Fp(2)p -Fr(')31 b(indicates)g(this.)0 1433 y(Eac)m(h)g(of)g(the)f(classes)i -Fp(cl_F)p Fr(,)d Fp(cl_SF)p Fr(,)g Fp(cl_FF)p Fr(,)g -Fp(cl_DF)p Fr(,)h Fp(cl_LF)e Fr(de\014nes)i(the)h(follo)m(wing)g(op)s -(erations:)0 1752 y Fp(struct)e Fk(t)m(yp)s(e)5 b Fp(_fdiv_t)28 -b({)i Fk(t)m(yp)s(e)36 b Fp(quotient;)28 b Fk(t)m(yp)s(e)36 -b Fp(remainder;)27 b(};)0 1876 y Fk(t)m(yp)s(e)5 b Fp(_fdiv_t)29 -b(ffloor2)f(\(const)h Fk(t)m(yp)s(e)5 b Fp(&)30 b(x\))0 -2001 y Fk(t)m(yp)s(e)5 b Fp(_fdiv_t)29 b(fceiling2)f(\(const)g -Fk(t)m(yp)s(e)5 b Fp(&)31 b(x\))0 2126 y Fk(t)m(yp)s(e)5 -b Fp(_fdiv_t)29 b(ftruncate2)e(\(const)i Fk(t)m(yp)s(e)5 -b Fp(&)30 b(x\))0 2250 y Fk(t)m(yp)s(e)5 b Fp(_fdiv_t)29 -b(fround2)f(\(const)h Fk(t)m(yp)s(e)5 b Fp(&)30 b(x\))0 -2534 y Fr(and)g(similarly)g(for)g(class)h Fp(cl_R)p Fr(,)e(but)h(with)g -(quotien)m(t)i(t)m(yp)s(e)e Fp(cl_F)p Fr(.)0 2818 y(The)g(class)h -Fp(cl_R)e Fr(de\014nes)h(the)g(follo)m(wing)i(op)s(erations:)0 -3137 y Fp(struct)d Fk(t)m(yp)s(e)5 b Fp(_fdiv_t)28 b({)i(cl_F)g -(quotient;)d(cl_R)j(remainder;)d(};)0 3262 y Fk(t)m(yp)s(e)5 -b Fp(_fdiv_t)29 b(ffloor2)f(\(const)h Fk(t)m(yp)s(e)5 -b Fp(&)30 b(x,)g(const)f Fk(t)m(yp)s(e)5 b Fp(&)30 b(y\))0 -3386 y Fk(t)m(yp)s(e)5 b Fp(_fdiv_t)29 b(fceiling2)f(\(const)g -Fk(t)m(yp)s(e)5 b Fp(&)31 b(x,)e(const)g Fk(t)m(yp)s(e)5 -b Fp(&)31 b(y\))0 3511 y Fk(t)m(yp)s(e)5 b Fp(_fdiv_t)29 -b(ftruncate2)e(\(const)i Fk(t)m(yp)s(e)5 b Fp(&)30 b(x,)g(const)f -Fk(t)m(yp)s(e)5 b Fp(&)30 b(y\))0 3635 y Fk(t)m(yp)s(e)5 -b Fp(_fdiv_t)29 b(fround2)f(\(const)h Fk(t)m(yp)s(e)5 -b Fp(&)30 b(x,)g(const)f Fk(t)m(yp)s(e)5 b Fp(&)30 b(y\))0 -3920 y Fr(Other)i(applications)h(need)f(only)g(the)h(remainder)d(of)j -(a)f(division.)47 b(The)31 b(remainder)g(of)h(`)p Fp(floor)p -Fr(')g(and)f(`)p Fp(ffloor)p Fr(')0 4044 y(is)37 b(called)h(`)p -Fp(mod)p Fr(')e(\(abbreviation)h(of)g(\\mo)s(dulo"\).)59 -b(The)36 b(remainder)g(`)p Fp(truncate)p Fr(')e(and)i(`)p -Fp(ftruncate)p Fr(')f(is)i(called)0 4169 y(`)p Fp(rem)p -Fr(')30 b(\(abbreviation)h(of)g(\\remainder"\).)75 4453 -y Fq(\017)60 b Fp(mod\(x,y\))28 b(=)i(floor2\(x,y\).remainder)25 -b(=)30 b(x)g(-)g(floor\(x/y\)*y)75 4612 y Fq(\017)60 -b Fp(rem\(x,y\))28 b(=)i(truncate2\(x,y\).remainder)24 -b(=)30 b(x)g(-)g(truncate\(x/y\)*y)0 4931 y Fr(If)g Fp(x)f -Fr(and)h Fp(y)f Fr(are)i(b)s(oth)e Fp(>)p Fr(=)g(0,)i -Fp(mod\(x,y\))d(=)i(rem\(x,y\))e(>=)i(0)p Fr(.)41 b(In)29 -b(general,)i Fp(mod\(x,y\))d Fr(has)i(the)g(sign)g(of)g -Fp(y)g Fr(or)g(is)0 5056 y(zero,)h(and)f Fp(rem\(x,y\))e -Fr(has)i(the)h(sign)f(of)h Fp(x)f Fr(or)g(is)h(zero.)0 -5340 y(The)f(classes)h Fp(cl_R)p Fr(,)f Fp(cl_I)f Fr(de\014ne)h(the)g +(quotient*y)p Fr(,)-30 624 y(and)g(similarly)g(for)g(the)g(other)h +(three)g(op)s(erations.)-30 774 y(Eac)m(h)e(of)f(the)g(classes)h +Fp(cl_R)p Fr(,)e Fp(cl_RA)p Fr(,)h Fp(cl_F)p Fr(,)f Fp(cl_SF)p +Fr(,)h Fp(cl_FF)p Fr(,)f Fp(cl_DF)p Fr(,)g Fp(cl_LF)g +Fr(de\014nes)g(the)h(follo)m(wing)h(op)s(erations:)-30 +957 y Fp(struct)g Fl(t)m(yp)s(e)5 b Fp(_div_t)29 b({)h(cl_I)f +(quotient;)f Fl(t)m(yp)s(e)35 b Fp(remainder;)28 b(};)-30 +1066 y Fl(t)m(yp)s(e)5 b Fp(_div_t)29 b(floor2)g(\(const)f +Fl(t)m(yp)s(e)5 b Fp(&)31 b(x\))-30 1176 y Fl(t)m(yp)s(e)5 +b Fp(_div_t)29 b(ceiling2)f(\(const)h Fl(t)m(yp)s(e)5 +b Fp(&)30 b(x\))-30 1286 y Fl(t)m(yp)s(e)5 b Fp(_div_t)29 +b(truncate2)f(\(const)h Fl(t)m(yp)s(e)5 b Fp(&)30 b(x\))-30 +1395 y Fl(t)m(yp)s(e)5 b Fp(_div_t)29 b(round2)g(\(const)f +Fl(t)m(yp)s(e)5 b Fp(&)31 b(x\))-30 1545 y Fr(Eac)m(h)43 +b(of)g(the)f(classes)i Fp(cl_R)p Fr(,)h Fp(cl_RA)p Fr(,)f +Fp(cl_I)p Fr(,)h Fp(cl_F)p Fr(,)f Fp(cl_SF)p Fr(,)g Fp(cl_FF)p +Fr(,)h Fp(cl_DF)p Fr(,)f Fp(cl_LF)d Fr(de\014nes)h(the)g(follo)m(wing) +-30 1655 y(op)s(erations:)-30 1838 y Fp(struct)29 b Fl(t)m(yp)s(e)5 +b Fp(_div_t)29 b({)h(cl_I)f(quotient;)f Fl(t)m(yp)s(e)35 +b Fp(remainder;)28 b(};)-30 1947 y Fl(t)m(yp)s(e)5 b +Fp(_div_t)29 b(floor2)g(\(const)f Fl(t)m(yp)s(e)5 b Fp(&)31 +b(x,)e(const)g Fl(t)m(yp)s(e)5 b Fp(&)31 b(y\))-30 2057 +y Fl(t)m(yp)s(e)5 b Fp(_div_t)29 b(ceiling2)f(\(const)h +Fl(t)m(yp)s(e)5 b Fp(&)30 b(x,)g(const)f Fl(t)m(yp)s(e)5 +b Fp(&)30 b(y\))-30 2166 y Fl(t)m(yp)s(e)5 b Fp(_div_t)29 +b(truncate2)f(\(const)h Fl(t)m(yp)s(e)5 b Fp(&)30 b(x,)g(const)f +Fl(t)m(yp)s(e)5 b Fp(&)30 b(y\))-30 2276 y Fl(t)m(yp)s(e)5 +b Fp(_div_t)29 b(round2)g(\(const)f Fl(t)m(yp)s(e)5 b +Fp(&)31 b(x,)e(const)g Fl(t)m(yp)s(e)5 b Fp(&)31 b(y\))-30 +2426 y Fr(Sometimes,)d(one)g(w)m(an)m(ts)h(the)f(quotien)m(t)h(as)g(a)f +(\015oating-p)s(oin)m(t)i(n)m(um)m(b)s(er)c(\(of)i(the)h(same)e(format) +h(as)g(the)g(argumen)m(t,)-30 2536 y(if)i(the)h(argumen)m(t)f(is)g(a)h +(\015oat\))g(instead)g(of)f(as)h(an)f(in)m(teger.)42 +b(The)30 b(pre\014x)g(`)p Fp(f)p Fr(')g(indicates)h(this.)-30 +2686 y(Eac)m(h)g(of)g(the)f(classes)i Fp(cl_F)p Fr(,)d +Fp(cl_SF)p Fr(,)g Fp(cl_FF)p Fr(,)g Fp(cl_DF)p Fr(,)h +Fp(cl_LF)e Fr(de\014nes)i(the)h(follo)m(wing)g(op)s(erations:)-30 +2868 y Fl(t)m(yp)s(e)36 b Fp(ffloor)28 b(\(const)h Fl(t)m(yp)s(e)5 +b Fp(&)30 b(x\))-30 2978 y Fl(t)m(yp)s(e)36 b Fp(fceiling)28 +b(\(const)g Fl(t)m(yp)s(e)5 b Fp(&)31 b(x\))-30 3088 +y Fl(t)m(yp)s(e)36 b Fp(ftruncate)27 b(\(const)i Fl(t)m(yp)s(e)5 +b Fp(&)31 b(x\))-30 3197 y Fl(t)m(yp)s(e)36 b Fp(fround)28 +b(\(const)h Fl(t)m(yp)s(e)5 b Fp(&)30 b(x\))-30 3347 +y Fr(and)g(similarly)g(for)g(class)h Fp(cl_R)p Fr(,)e(but)h(with)g +(return)f(t)m(yp)s(e)i Fp(cl_F)p Fr(.)-30 3497 y(The)f(class)h +Fp(cl_R)e Fr(de\014nes)h(the)g(follo)m(wing)i(op)s(erations:)-30 +3680 y Fp(cl_F)d(ffloor)g(\(const)g Fl(t)m(yp)s(e)5 b +Fp(&)30 b(x,)g(const)f Fl(t)m(yp)s(e)5 b Fp(&)30 b(y\))-30 +3790 y(cl_F)f(fceiling)f(\(const)h Fl(t)m(yp)s(e)5 b +Fp(&)30 b(x,)g(const)f Fl(t)m(yp)s(e)5 b Fp(&)30 b(y\))-30 +3899 y(cl_F)f(ftruncate)f(\(const)h Fl(t)m(yp)s(e)5 b +Fp(&)30 b(x,)g(const)f Fl(t)m(yp)s(e)5 b Fp(&)30 b(y\))-30 +4009 y(cl_F)f(fround)g(\(const)g Fl(t)m(yp)s(e)5 b Fp(&)30 +b(x,)g(const)f Fl(t)m(yp)s(e)5 b Fp(&)30 b(y\))-30 4159 +y Fr(These)g(functions)f(also)i(exist)g(in)e(v)m(ersions)h(whic)m(h)g +(return)f(b)s(oth)g(the)h(quotien)m(t)h(and)e(the)i(remainder.)39 +b(The)29 b(su\016x)-30 4269 y(`)p Fp(2)p Fr(')i(indicates)g(this.)-30 +4419 y(Eac)m(h)g(of)g(the)f(classes)i Fp(cl_F)p Fr(,)d +Fp(cl_SF)p Fr(,)g Fp(cl_FF)p Fr(,)g Fp(cl_DF)p Fr(,)h +Fp(cl_LF)e Fr(de\014nes)i(the)h(follo)m(wing)g(op)s(erations:)-30 +4601 y Fp(struct)e Fl(t)m(yp)s(e)5 b Fp(_fdiv_t)28 b({)i +Fl(t)m(yp)s(e)36 b Fp(quotient;)28 b Fl(t)m(yp)s(e)36 +b Fp(remainder;)27 b(};)-30 4711 y Fl(t)m(yp)s(e)5 b +Fp(_fdiv_t)29 b(ffloor2)f(\(const)h Fl(t)m(yp)s(e)5 b +Fp(&)30 b(x\))-30 4821 y Fl(t)m(yp)s(e)5 b Fp(_fdiv_t)29 +b(fceiling2)f(\(const)g Fl(t)m(yp)s(e)5 b Fp(&)31 b(x\))-30 +4930 y Fl(t)m(yp)s(e)5 b Fp(_fdiv_t)29 b(ftruncate2)e(\(const)i +Fl(t)m(yp)s(e)5 b Fp(&)30 b(x\))-30 5040 y Fl(t)m(yp)s(e)5 +b Fp(_fdiv_t)29 b(fround2)f(\(const)h Fl(t)m(yp)s(e)5 +b Fp(&)30 b(x\))-30 5190 y Fr(and)g(similarly)g(for)g(class)h +Fp(cl_R)p Fr(,)e(but)h(with)g(quotien)m(t)i(t)m(yp)s(e)e +Fp(cl_F)p Fr(.)-30 5340 y(The)g(class)h Fp(cl_R)e Fr(de\014nes)h(the)g (follo)m(wing)i(op)s(erations:)p eop -%%Page: 21 23 -21 22 bop 0 -116 a Fr(Chapter)30 b(4:)41 b(F)-8 b(unctions)31 -b(on)f(n)m(um)m(b)s(ers)2463 b(21)0 366 y Fk(t)m(yp)s(e)36 -b Fp(mod)29 b(\(const)g Fk(t)m(yp)s(e)5 b Fp(&)30 b(x,)g(const)f -Fk(t)m(yp)s(e)5 b Fp(&)30 b(y\))0 491 y Fk(t)m(yp)s(e)36 -b Fp(rem)29 b(\(const)g Fk(t)m(yp)s(e)5 b Fp(&)30 b(x,)g(const)f -Fk(t)m(yp)s(e)5 b Fp(&)30 b(y\))0 906 y Fs(4.7)68 b(Ro)t(ots)0 -1180 y Fr(Eac)m(h)31 b(of)g(the)f(classes)i Fp(cl_R)p -Fr(,)d Fp(cl_F)p Fr(,)g Fp(cl_SF)p Fr(,)h Fp(cl_FF)p +%%Page: 16 18 +16 17 bop -30 -116 a Fr(Chapter)30 b(4:)41 b(F)-8 b(unctions)31 +b(on)f(n)m(um)m(b)s(ers)2523 b(16)-30 299 y Fp(struct)29 +b Fl(t)m(yp)s(e)5 b Fp(_fdiv_t)28 b({)i(cl_F)g(quotient;)d(cl_R)j +(remainder;)d(};)-30 408 y Fl(t)m(yp)s(e)5 b Fp(_fdiv_t)29 +b(ffloor2)f(\(const)h Fl(t)m(yp)s(e)5 b Fp(&)30 b(x,)g(const)f +Fl(t)m(yp)s(e)5 b Fp(&)30 b(y\))-30 518 y Fl(t)m(yp)s(e)5 +b Fp(_fdiv_t)29 b(fceiling2)f(\(const)g Fl(t)m(yp)s(e)5 +b Fp(&)31 b(x,)e(const)g Fl(t)m(yp)s(e)5 b Fp(&)31 b(y\))-30 +628 y Fl(t)m(yp)s(e)5 b Fp(_fdiv_t)29 b(ftruncate2)e(\(const)i +Fl(t)m(yp)s(e)5 b Fp(&)30 b(x,)g(const)f Fl(t)m(yp)s(e)5 +b Fp(&)30 b(y\))-30 737 y Fl(t)m(yp)s(e)5 b Fp(_fdiv_t)29 +b(fround2)f(\(const)h Fl(t)m(yp)s(e)5 b Fp(&)30 b(x,)g(const)f +Fl(t)m(yp)s(e)5 b Fp(&)30 b(y\))-30 868 y Fr(Other)g(applications)h +(need)f(only)g(the)h(remainder)e(of)h(a)h(division.)40 +b(The)30 b(remainder)f(of)h(`)p Fp(floor)p Fr(')f(and)h(`)p +Fp(ffloor)p Fr(')f(is)-30 978 y(called)k(`)p Fp(mod)p +Fr(')e(\(abbreviation)h(of)g(\\mo)s(dulo"\).)43 b(The)31 +b(remainder)f(`)p Fp(truncate)p Fr(')g(and)h(`)p Fp(ftruncate)p +Fr(')e(is)j(called)g(`)p Fp(rem)p Fr(')-30 1087 y(\(abbreviation)f(of)g +(\\remainder"\).)45 1218 y Fq(\017)60 b Fp(mod\(x,y\))28 +b(=)i(floor2\(x,y\).remainder)25 b(=)30 b(x)g(-)g(floor\(x/y\)*y)45 +1349 y Fq(\017)60 b Fp(rem\(x,y\))28 b(=)i(truncate2\(x,y\).remainder) +24 b(=)30 b(x)g(-)g(truncate\(x/y\)*y)-30 1501 y Fr(If)j +Fp(x)f Fr(and)h Fp(y)f Fr(are)i(b)s(oth)e Fp(>)p Fr(=)g(0,)j +Fp(mod\(x,y\))28 b(=)i(rem\(x,y\))e(>=)i(0)p Fr(.)48 +b(In)32 b(general,)j Fp(mod\(x,y\))c Fr(has)i(the)g(sign)g(of)g +Fp(y)g Fr(or)g(is)-30 1611 y(zero,)e(and)f Fp(rem\(x,y\))e +Fr(has)i(the)h(sign)f(of)h Fp(x)f Fr(or)g(is)h(zero.)-30 +1742 y(The)f(classes)h Fp(cl_R)p Fr(,)f Fp(cl_I)f Fr(de\014ne)h(the)g +(follo)m(wing)i(op)s(erations:)-30 1894 y Fl(t)m(yp)s(e)k +Fp(mod)29 b(\(const)g Fl(t)m(yp)s(e)5 b Fp(&)30 b(x,)g(const)f +Fl(t)m(yp)s(e)5 b Fp(&)30 b(y\))-30 2004 y Fl(t)m(yp)s(e)36 +b Fp(rem)29 b(\(const)g Fl(t)m(yp)s(e)5 b Fp(&)30 b(x,)g(const)f +Fl(t)m(yp)s(e)5 b Fp(&)30 b(y\))-30 2229 y Fs(4.7)68 +b(Ro)t(ots)-30 2418 y Fr(Eac)m(h)31 b(of)g(the)f(classes)i +Fp(cl_R)p Fr(,)d Fp(cl_F)p Fr(,)g Fp(cl_SF)p Fr(,)h Fp(cl_FF)p Fr(,)f Fp(cl_DF)p Fr(,)g Fp(cl_LF)g Fr(de\014nes)g(the)i(follo)m(wing)h -(op)s(eration:)0 1476 y Fk(t)m(yp)s(e)k Fp(sqrt)29 b(\(const)g -Fk(t)m(yp)s(e)5 b Fp(&)30 b(x\))480 1601 y(x)35 b Fr(m)m(ust)f(b)s(e)g -Fp(>)p Fr(=)h(0.)55 b(This)35 b(function)g(returns)e(the)j(square)f(ro) -s(ot)g(of)g Fp(x)p Fr(,)i(normalized)d(to)i(b)s(e)f Fp(>)p -Fr(=)f(0.)480 1725 y(If)c Fp(x)h Fr(is)g(the)g(square)f(of)h(a)g -(rational)h(n)m(um)m(b)s(er,)d Fp(sqrt\(x\))g Fr(will)i(b)s(e)f(a)i -(rational)g(n)m(um)m(b)s(er,)d(else)i(it)h(will)480 1850 -y(return)d(a)i(\015oating-p)s(oin)m(t)h(appro)m(ximation.)0 -2146 y(The)e(classes)h Fp(cl_RA)p Fr(,)e Fp(cl_I)h Fr(de\014ne)f(the)i -(follo)m(wing)h(op)s(eration:)0 2442 y Fp(cl_boolean)c(sqrtp)h(\(const) -f Fk(t)m(yp)s(e)5 b Fp(&)31 b(x,)e Fk(t)m(yp)s(e)5 b -Fp(*)31 b(root\))480 2567 y Fr(This)25 b(tests)i(whether)f -Fp(x)g Fr(is)g(a)g(p)s(erfect)g(square.)39 b(If)26 b(so,)i(it)e -(returns)f(true)h(and)g(the)g(exact)i(square)e(ro)s(ot)480 -2691 y(in)k Fp(*root)p Fr(,)f(else)i(it)g(returns)f(false.)0 -2988 y(F)-8 b(urthermore,)30 b(for)g(in)m(tegers,)i(similarly:)0 -3284 y Fp(cl_boolean)c(isqrt)h(\(const)f Fk(t)m(yp)s(e)5 -b Fp(&)31 b(x,)e Fk(t)m(yp)s(e)5 b Fp(*)31 b(root\))480 -3408 y(x)f Fr(should)g(b)s(e)g Fp(>)p Fr(=)g(0.)42 b(This)30 -b(function)h(sets)g Fp(*root)e Fr(to)i Fp(floor\(sqrt\(x\)\))c -Fr(and)j(returns)g(the)h(same)480 3533 y(v)-5 b(alue)31 +(op)s(eration:)-30 2570 y Fl(t)m(yp)s(e)k Fp(sqrt)29 +b(\(const)g Fl(t)m(yp)s(e)5 b Fp(&)30 b(x\))450 2680 +y(x)e Fr(m)m(ust)g(b)s(e)g Fp(>)p Fr(=)h(0.)40 b(This)28 +b(function)h(returns)e(the)i(square)g(ro)s(ot)g(of)g +Fp(x)p Fr(,)g(normalized)f(to)i(b)s(e)e Fp(>)p Fr(=)g(0.)41 +b(If)28 b Fp(x)450 2789 y Fr(is)g(the)g(square)f(of)h(a)g(rational)h(n) +m(um)m(b)s(er,)d Fp(sqrt\(x\))g Fr(will)i(b)s(e)f(a)h(rational)h(n)m +(um)m(b)s(er,)d(else)j(it)f(will)g(return)450 2899 y(a)j(\015oating-p)s +(oin)m(t)g(appro)m(ximation.)-30 3051 y(The)f(classes)h +Fp(cl_RA)p Fr(,)e Fp(cl_I)h Fr(de\014ne)f(the)i(follo)m(wing)h(op)s +(eration:)-30 3203 y Fp(cl_boolean)c(sqrtp)h(\(const)f +Fl(t)m(yp)s(e)5 b Fp(&)31 b(x,)e Fl(t)m(yp)s(e)5 b Fp(*)31 +b(root\))450 3313 y Fr(This)e(tests)i(whether)e Fp(x)g +Fr(is)h(a)h(p)s(erfect)e(square.)41 b(If)29 b(so,)i(it)f(returns)f +(true)g(and)h(the)g(exact)h(square)f(ro)s(ot)450 3423 +y(in)g Fp(*root)p Fr(,)f(else)i(it)g(returns)f(false.)-30 +3575 y(F)-8 b(urthermore,)30 b(for)g(in)m(tegers,)i(similarly:)-30 +3727 y Fp(cl_boolean)c(isqrt)h(\(const)f Fl(t)m(yp)s(e)5 +b Fp(&)31 b(x,)e Fl(t)m(yp)s(e)5 b Fp(*)31 b(root\))450 +3837 y(x)j Fr(should)g(b)s(e)f Fp(>)p Fr(=)h(0.)53 b(This)34 +b(function)g(sets)h Fp(*root)e Fr(to)i Fp(floor\(sqrt\(x\)\))c +Fr(and)j(returns)f(the)i(same)450 3946 y(v)-5 b(alue)31 b(as)f Fp(sqrtp)p Fr(:)40 b(the)30 b(b)s(o)s(olean)h(v)-5 -b(alue)31 b Fp(\(expt\(*root,2\))26 b(==)k(x\))p Fr(.)0 -3829 y(F)-8 b(or)31 b Fp(n)p Fr(th)f(ro)s(ots,)h(the)f(classes)i +b(alue)31 b Fp(\(expt\(*root,2\))26 b(==)k(x\))p Fr(.)-30 +4098 y(F)-8 b(or)31 b Fp(n)p Fr(th)f(ro)s(ots,)h(the)f(classes)i Fp(cl_RA)p Fr(,)d Fp(cl_I)g Fr(de\014ne)h(the)g(follo)m(wing)i(op)s -(eration:)0 4125 y Fp(cl_boolean)c(rootp)h(\(const)f -Fk(t)m(yp)s(e)5 b Fp(&)31 b(x,)e(const)g(cl_I&)g(n,)h -Fk(t)m(yp)s(e)5 b Fp(*)30 b(root\))480 4250 y(x)36 b -Fr(m)m(ust)f(b)s(e)g Fp(>)p Fr(=)g(0.)58 b Fp(n)36 b -Fr(m)m(ust)f(b)s(e)g Fp(>)h Fr(0.)58 b(This)35 b(tests)i(whether)e -Fp(x)h Fr(is)g(an)g Fp(n)p Fr(th)f(p)s(o)m(w)m(er)h(of)g(a)h(rational) -480 4374 y(n)m(um)m(b)s(er.)h(If)30 b(so,)h(it)g(returns)e(true)h(and)g +(eration:)-30 4251 y Fp(cl_boolean)c(rootp)h(\(const)f +Fl(t)m(yp)s(e)5 b Fp(&)31 b(x,)e(const)g(cl_I&)g(n,)h +Fl(t)m(yp)s(e)5 b Fp(*)30 b(root\))450 4360 y(x)38 b +Fr(m)m(ust)g(b)s(e)f Fp(>)p Fr(=)h(0.)66 b Fp(n)38 b +Fr(m)m(ust)f(b)s(e)h Fp(>)g Fr(0.)66 b(This)37 b(tests)j(whether)e +Fp(x)g Fr(is)g(an)h Fp(n)p Fr(th)f(p)s(o)m(w)m(er)g(of)h(a)g(rational) +450 4470 y(n)m(um)m(b)s(er.)f(If)30 b(so,)h(it)g(returns)e(true)h(and)g (the)h(exact)h(ro)s(ot)e(in)g Fp(*root)p Fr(,)g(else)h(it)g(returns)e -(false.)0 4670 y(The)h(only)g(square)g(ro)s(ot)h(function)f(whic)m(h)g -(accepts)i(negativ)m(e)h(n)m(um)m(b)s(ers)28 b(is)i(the)h(one)f(for)g -(class)h Fp(cl_N)p Fr(:)0 4966 y Fp(cl_N)e(sqrt)g(\(const)g(cl_N&)g -(z\))480 5091 y Fr(Returns)38 b(the)i(square)f(ro)s(ot)h(of)f -Fp(z)p Fr(,)j(as)d(de\014ned)g(b)m(y)g(the)g(form)m(ula)g -Fp(sqrt\(z\))28 b(=)i(exp\(log\(z\)/2\))p Fr(.)480 5215 -y(Con)m(v)m(ersion)44 b(to)g(a)f(\015oating-p)s(oin)m(t)i(t)m(yp)s(e)e -(or)h(to)g(a)f(complex)g(n)m(um)m(b)s(er)e(are)j(done)f(if)g(necessary) --8 b(.)480 5340 y(The)31 b(range)h(of)g(the)g(result)g(is)g(the)g(righ) -m(t)g(half)g(plane)g Fp(realpart\(sqrt\(z\)\))25 b(>=)30 -b(0)h Fr(including)h(the)p eop -%%Page: 22 24 -22 23 bop 0 -116 a Fr(Chapter)30 b(4:)41 b(F)-8 b(unctions)31 -b(on)f(n)m(um)m(b)s(ers)2463 b(22)480 366 y(p)s(ositiv)m(e)35 -b(imaginary)e(axis)h(and)g(0,)h(but)e(excluding)h(the)g(negativ)m(e)i -(imaginary)d(axis.)52 b(The)33 b(result)480 491 y(is)d(an)h(exact)h(n)m -(um)m(b)s(er)c(only)i(if)g Fp(z)g Fr(is)h(an)f(exact)i(n)m(um)m(b)s -(er.)0 930 y Fs(4.8)68 b(T)-11 b(ranscenden)l(tal)31 -b(functions)0 1204 y Fr(The)c(transcenden)m(tal)h(functions)e(return)h -(an)g(exact)h(result)f(if)g(the)h(argumen)m(t)e(is)i(exact)g(and)f(the) -g(result)g(is)g(exact)0 1329 y(as)k(w)m(ell.)44 b(Otherwise)31 -b(they)g(m)m(ust)f(return)g(inexact)i(n)m(um)m(b)s(ers)d(ev)m(en)j(if)f -(the)g(argumen)m(t)g(is)g(exact.)44 b(F)-8 b(or)32 b(example,)0 -1453 y Fp(cos\(0\))d(=)h(1)g Fr(returns)f(the)h(rational)i(n)m(um)m(b)s -(er)c Fp(1)p Fr(.)0 1860 y Fm(4.8.1)63 b(Exp)s(onen)m(tial)30 -b(and)g(logarithmic)g(functions)0 2156 y Fp(cl_R)f(exp)h(\(const)e -(cl_R&)h(x\))0 2281 y(cl_N)g(exp)h(\(const)e(cl_N&)h(x\))480 -2405 y Fr(Returns)j(the)h(exp)s(onen)m(tial)h(function)f(of)g -Fp(x)p Fr(.)48 b(This)32 b(is)h Fp(e^x)f Fr(where)g Fp(e)h -Fr(is)g(the)g(base)g(of)g(the)g(natural)480 2530 y(logarithms.)41 -b(The)29 b(range)i(of)g(the)f(result)h(is)f(the)h(en)m(tire)g(complex)f -(plane)g(excluding)h(0.)0 2700 y Fp(cl_R)e(ln)h(\(const)f(cl_R&)g(x\)) -480 2824 y(x)h Fr(m)m(ust)f(b)s(e)h Fp(>)g Fr(0.)41 b(Returns)30 -b(the)g(\(natural\))h(logarithm)g(of)f(x.)0 2994 y Fp(cl_N)f(log)h -(\(const)e(cl_N&)h(x\))480 3119 y Fr(Returns)43 b(the)i(\(natural\))f -(logarithm)h(of)f(x.)82 b(If)44 b Fp(x)f Fr(is)i(real)f(and)g(p)s -(ositiv)m(e,)49 b(this)44 b(is)g Fp(ln\(x\))p Fr(.)81 -b(In)480 3243 y(general,)34 b Fp(log\(x\))29 b(=)h(log\(abs\(x\)\))d(+) -j(i*phase\(x\))p Fr(.)45 b(The)32 b(range)g(of)h(the)g(result)f(is)h -(the)f(strip)g(in)480 3368 y(the)f(complex)f(plane)g -Fp(-pi)g(<)g(imagpart\(log\(x\)\))25 b(<=)30 b(pi)p Fr(.)0 -3538 y Fp(cl_R)f(phase)g(\(const)g(cl_N&)g(x\))480 3662 -y Fr(Returns)38 b(the)h(angle)g(part)g(of)g Fp(x)f Fr(in)g(its)h(p)s -(olar)g(represen)m(tation)g(as)g(a)g(complex)g(n)m(um)m(b)s(er.)63 -b(That)480 3787 y(is,)34 b Fp(phase\(x\))28 b(=)i -(atan\(realpart\(x\),imagpart)o(\(x\)\))o Fr(.)43 b(This)33 -b(is)g(also)h(the)f(imaginary)g(part)g(of)480 3911 y -Fp(log\(x\))p Fr(.)41 b(The)31 b(range)g(of)g(the)h(result)f(is)g(the)g -(in)m(terv)-5 b(al)32 b Fp(-pi)e(<)g(phase\(x\))e(<=)i(pi)p -Fr(.)42 b(The)31 b(result)g(will)480 4036 y(b)s(e)f(an)g(exact)i(n)m -(um)m(b)s(er)c(only)i(if)h Fp(zerop\(x\))d Fr(or)i(if)h -Fp(x)f Fr(is)g(real)h(and)f(p)s(ositiv)m(e.)0 4206 y -Fp(cl_R)f(log)h(\(const)e(cl_R&)h(a,)h(const)f(cl_R&)g(b\))480 -4330 y(a)j Fr(and)g Fp(b)g Fr(m)m(ust)g(b)s(e)g Fp(>)g -Fr(0.)48 b(Returns)31 b(the)i(logarithm)g(of)f Fp(a)g -Fr(with)h(resp)s(ect)f(to)i(base)e Fp(b)p Fr(.)47 b Fp(log\(a,b\))28 -b(=)480 4455 y(ln\(a\)/ln\(b\))p Fr(.)38 b(The)30 b(result)g(can)g(b)s +(false.)-30 4622 y(The)h(only)g(square)g(ro)s(ot)h(function)f(whic)m(h) +g(accepts)i(negativ)m(e)h(n)m(um)m(b)s(ers)28 b(is)i(the)h(one)f(for)g +(class)h Fp(cl_N)p Fr(:)-30 4774 y Fp(cl_N)e(sqrt)g(\(const)g(cl_N&)g +(z\))450 4884 y Fr(Returns)44 b(the)h(square)f(ro)s(ot)h(of)g +Fp(z)p Fr(,)j(as)d(de\014ned)f(b)m(y)g(the)h(form)m(ula)f +Fp(sqrt\(z\))28 b(=)i(exp\(log\(z\)/2\))p Fr(.)450 4994 +y(Con)m(v)m(ersion)j(to)g(a)f(\015oating-p)s(oin)m(t)i(t)m(yp)s(e)e(or) +h(to)g(a)f(complex)g(n)m(um)m(b)s(er)e(are)j(done)f(if)g(necessary)-8 +b(.)47 b(The)450 5103 y(range)25 b(of)f(the)h(result)f(is)g(the)h(righ) +m(t)g(half)f(plane)g Fp(realpart\(sqrt\(z\)\))i(>=)k(0)24 +b Fr(including)f(the)i(p)s(ositiv)m(e)450 5213 y(imaginary)k(axis)h +(and)f(0,)h(but)f(excluding)g(the)h(negativ)m(e)i(imaginary)d(axis.)40 +b(The)29 b(result)h(is)f(an)g(exact)450 5322 y(n)m(um)m(b)s(er)f(only)j +(if)f Fp(z)g Fr(is)g(an)h(exact)g(n)m(um)m(b)s(er.)p +eop +%%Page: 17 19 +17 18 bop -30 -116 a Fr(Chapter)30 b(4:)41 b(F)-8 b(unctions)31 +b(on)f(n)m(um)m(b)s(ers)2523 b(17)-30 299 y Fs(4.8)68 +b(T)-11 b(ranscenden)l(tal)45 b(functions)-30 495 y Fr(The)30 +b(transcenden)m(tal)i(functions)f(return)f(an)g(exact)j(result)e(if)f +(the)i(argumen)m(t)e(is)h(exact)h(and)f(the)g(result)f(is)h(exact)-30 +605 y(as)j(w)m(ell.)54 b(Otherwise)34 b(they)g(m)m(ust)f(return)g +(inexact)j(n)m(um)m(b)s(ers)c(ev)m(en)j(if)f(the)g(argumen)m(t)g(is)g +(exact.)54 b(F)-8 b(or)35 b(example,)-30 714 y Fp(cos\(0\))29 +b(=)h(1)g Fr(returns)f(the)h(rational)i(n)m(um)m(b)s(er)c +Fp(1)p Fr(.)-30 946 y Fn(4.8.1)63 b(Exp)s(onen)m(tial)40 +b(and)h(logarithmic)g(functions)-30 1169 y Fp(cl_R)29 +b(exp)h(\(const)e(cl_R&)h(x\))-30 1278 y(cl_N)g(exp)h(\(const)e(cl_N&)h +(x\))450 1388 y Fr(Returns)35 b(the)i(exp)s(onen)m(tial)g(function)f +(of)g Fp(x)p Fr(.)58 b(This)36 b(is)g Fp(e^x)f Fr(where)h +Fp(e)g Fr(is)g(the)h(base)f(of)g(the)h(natural)450 1498 +y(logarithms.)k(The)29 b(range)i(of)g(the)f(result)h(is)f(the)h(en)m +(tire)g(complex)f(plane)g(excluding)h(0.)-30 1661 y Fp(cl_R)e(ln)h +(\(const)f(cl_R&)g(x\))450 1770 y(x)h Fr(m)m(ust)f(b)s(e)h +Fp(>)g Fr(0.)41 b(Returns)30 b(the)g(\(natural\))h(logarithm)g(of)f(x.) +-30 1933 y Fp(cl_N)f(log)h(\(const)e(cl_N&)h(x\))450 +2043 y Fr(Returns)g(the)g(\(natural\))h(logarithm)g(of)f(x.)41 +b(If)29 b Fp(x)g Fr(is)g(real)h(and)f(p)s(ositiv)m(e,)i(this)e(is)h +Fp(ln\(x\))p Fr(.)39 b(In)29 b(general,)450 2153 y Fp(log\(x\))g(=)h +(log\(abs\(x\)\))d(+)j(i*phase\(x\))p Fr(.)35 b(The)21 +b(range)i(of)f(the)g(result)f(is)h(the)g(strip)g(in)f(the)h(complex)450 +2262 y(plane)30 b Fp(-pi)g(<)g(imagpart\(log\(x\)\))c(<=)k(pi)p +Fr(.)-30 2425 y Fp(cl_R)f(phase)g(\(const)g(cl_N&)g(x\))450 +2535 y Fr(Returns)41 b(the)i(angle)h(part)e(of)g Fp(x)g +Fr(in)h(its)f(p)s(olar)g(represen)m(tation)i(as)f(a)f(complex)g(n)m(um) +m(b)s(er.)75 b(That)450 2644 y(is,)41 b Fp(phase\(x\))29 +b(=)h(atan\(realpart\(x\),imagpa)o(rt\()o(x\)\))p Fr(.)60 +b(This)38 b(is)h(also)h(the)f(imaginary)g(part)g(of)450 +2754 y Fp(log\(x\))p Fr(.)52 b(The)35 b(range)g(of)g(the)g(result)g(is) +g(the)g(in)m(terv)-5 b(al)36 b Fp(-pi)29 b(<)h(phase\(x\))e(<=)i(pi)p +Fr(.)54 b(The)34 b(result)h(will)450 2864 y(b)s(e)30 +b(an)g(exact)i(n)m(um)m(b)s(er)c(only)i(if)h Fp(zerop\(x\))d +Fr(or)i(if)h Fp(x)f Fr(is)g(real)h(and)f(p)s(ositiv)m(e.)-30 +3027 y Fp(cl_R)f(log)h(\(const)e(cl_R&)h(a,)h(const)f(cl_R&)g(b\))450 +3136 y(a)35 b Fr(and)g Fp(b)g Fr(m)m(ust)f(b)s(e)h Fp(>)g +Fr(0.)56 b(Returns)35 b(the)g(logarithm)h(of)f Fp(a)g +Fr(with)h(resp)s(ect)f(to)h(base)g Fp(b)p Fr(.)55 b Fp(log\(a,b\))28 +b(=)450 3246 y(ln\(a\)/ln\(b\))p Fr(.)38 b(The)30 b(result)g(can)g(b)s (e)g(exact)i(only)f(if)f Fp(a)g(=)g(1)g Fr(or)g(if)h -Fp(a)f Fr(and)g Fp(b)g Fr(are)g(b)s(oth)g(rational.)0 -4624 y Fp(cl_N)f(log)h(\(const)e(cl_N&)h(a,)h(const)f(cl_N&)g(b\))480 -4749 y Fr(Returns)g(the)i(logarithm)f(of)h Fp(a)f Fr(with)g(resp)s(ect) +Fp(a)f Fr(and)g Fp(b)g Fr(are)g(b)s(oth)g(rational.)-30 +3409 y Fp(cl_N)f(log)h(\(const)e(cl_N&)h(a,)h(const)f(cl_N&)g(b\))450 +3518 y Fr(Returns)g(the)i(logarithm)f(of)h Fp(a)f Fr(with)g(resp)s(ect) g(to)i(base)e Fp(b)p Fr(.)40 b Fp(log\(a,b\))29 b(=)h -(log\(a\)/log\(b\))p Fr(.)0 4919 y Fp(cl_N)f(expt)g(\(const)g(cl_N&)g -(x,)h(const)f(cl_N&)g(y\))480 5043 y Fr(Exp)s(onen)m(tiation:)42 -b(Returns)29 b Fp(x^y)g(=)h(exp\(y*log\(x\)\))p Fr(.)0 -5340 y(The)g(constan)m(t)i(e)e(=)g(exp\(1\))i(=)e(2.71828)p -Fn(:)15 b(:)g(:)34 b Fr(is)c(returned)g(b)m(y)g(the)g(follo)m(wing)i -(functions:)p eop -%%Page: 23 25 -23 24 bop 0 -116 a Fr(Chapter)30 b(4:)41 b(F)-8 b(unctions)31 -b(on)f(n)m(um)m(b)s(ers)2463 b(23)0 366 y Fp(cl_F)29 -b(cl_exp1)g(\(cl_float_format_t)c(f\))480 491 y Fr(Returns)k(e)i(as)g -(a)g(\015oat)g(of)f(format)g Fp(f)p Fr(.)0 657 y Fp(cl_F)f(cl_exp1)g -(\(const)f(cl_F&)h(y\))480 782 y Fr(Returns)g(e)i(in)f(the)h(\015oat)g -(format)f(of)g Fp(y)p Fr(.)0 948 y Fp(cl_F)f(cl_exp1)g(\(void\))480 -1073 y Fr(Returns)g(e)i(as)g(a)g(\015oat)g(of)f(format)g -Fp(cl_default_float_format)p Fr(.)0 1472 y Fm(4.8.2)63 -b(T)-10 b(rigonometric)30 b(functions)0 1767 y Fp(cl_R)f(sin)h(\(const) -e(cl_R&)h(x\))480 1892 y Fr(Returns)g Fp(sin\(x\))p Fr(.)39 -b(The)30 b(range)h(of)g(the)f(result)g(is)h(the)f(in)m(terv)-5 -b(al)32 b Fp(-1)e(<=)f(sin\(x\))g(<=)h(1)p Fr(.)0 2058 -y Fp(cl_N)f(sin)h(\(const)e(cl_N&)h(z\))480 2183 y Fr(Returns)g +(log\(a\)/log\(b\))p Fr(.)-30 3682 y Fp(cl_N)f(expt)g(\(const)g(cl_N&)g +(x,)h(const)f(cl_N&)g(y\))450 3791 y Fr(Exp)s(onen)m(tiation:)42 +b(Returns)29 b Fp(x^y)g(=)h(exp\(y*log\(x\)\))p Fr(.)-30 +3956 y(The)g(constan)m(t)i(e)e(=)g(exp\(1\))i(=)e(2.71828)6 +b(.)24 b(.)f(.)41 b(is)31 b(returned)e(b)m(y)h(the)h(follo)m(wing)h +(functions:)-30 4121 y Fp(cl_F)d(cl_exp1)g(\(cl_float_format_t)c(f\)) +450 4231 y Fr(Returns)k(e)i(as)g(a)g(\015oat)g(of)f(format)g +Fp(f)p Fr(.)-30 4394 y Fp(cl_F)f(cl_exp1)g(\(const)f(cl_F&)h(y\))450 +4503 y Fr(Returns)g(e)i(in)f(the)h(\015oat)g(format)f(of)g +Fp(y)p Fr(.)-30 4666 y Fp(cl_F)f(cl_exp1)g(\(void\))450 +4776 y Fr(Returns)g(e)i(as)g(a)g(\015oat)g(of)f(format)g +Fp(cl_default_float_format)p Fr(.)-30 5007 y Fn(4.8.2)63 +b(T)-10 b(rigonometric)41 b(functions)-30 5230 y Fp(cl_R)29 +b(sin)h(\(const)e(cl_R&)h(x\))450 5340 y Fr(Returns)g +Fp(sin\(x\))p Fr(.)39 b(The)30 b(range)h(of)g(the)f(result)g(is)h(the)f +(in)m(terv)-5 b(al)32 b Fp(-1)e(<=)f(sin\(x\))g(<=)h(1)p +Fr(.)p eop +%%Page: 18 20 +18 19 bop -30 -116 a Fr(Chapter)30 b(4:)41 b(F)-8 b(unctions)31 +b(on)f(n)m(um)m(b)s(ers)2523 b(18)-30 299 y Fp(cl_N)29 +b(sin)h(\(const)e(cl_N&)h(z\))450 408 y Fr(Returns)g Fp(sin\(z\))p Fr(.)39 b(The)30 b(range)h(of)g(the)f(result)g(is)h(the)f -(en)m(tire)i(complex)e(plane.)0 2349 y Fp(cl_R)f(cos)h(\(const)e(cl_R&) -h(x\))480 2474 y Fr(Returns)g Fp(cos\(x\))p Fr(.)39 b(The)30 -b(range)h(of)g(the)f(result)g(is)h(the)f(in)m(terv)-5 -b(al)32 b Fp(-1)e(<=)f(cos\(x\))g(<=)h(1)p Fr(.)0 2640 -y Fp(cl_N)f(cos)h(\(const)e(cl_N&)h(x\))480 2764 y Fr(Returns)g +(en)m(tire)i(complex)e(plane.)-30 562 y Fp(cl_R)f(cos)h(\(const)e +(cl_R&)h(x\))450 671 y Fr(Returns)g Fp(cos\(x\))p Fr(.)39 +b(The)30 b(range)h(of)g(the)f(result)g(is)h(the)f(in)m(terv)-5 +b(al)32 b Fp(-1)e(<=)f(cos\(x\))g(<=)h(1)p Fr(.)-30 825 +y Fp(cl_N)f(cos)h(\(const)e(cl_N&)h(x\))450 934 y Fr(Returns)g Fp(cos\(z\))p Fr(.)39 b(The)30 b(range)h(of)g(the)f(result)g(is)h(the)f -(en)m(tire)i(complex)e(plane.)0 2931 y Fp(struct)f(cl_cos_sin_t)e({)j -(cl_R)f(cos;)g(cl_R)g(sin;)h(};)0 3055 y(cl_cos_sin_t)d(cl_cos_sin)h -(\(const)g(cl_R&)h(x\))480 3180 y Fr(Returns)k(b)s(oth)h -Fp(sin\(x\))f Fr(and)g Fp(cos\(x\))p Fr(.)51 b(This)34 -b(is)g(more)g(e\016cien)m(t)i(than)e(computing)f(them)g(sepa-)480 -3304 y(rately)-8 b(.)42 b(The)30 b(relation)i Fp(cos^2)d(+)h(sin^2)e(=) -j(1)f Fr(will)g(hold)g(only)h(appro)m(ximately)-8 b(.)0 -3471 y Fp(cl_R)29 b(tan)h(\(const)e(cl_R&)h(x\))0 3595 -y(cl_N)g(tan)h(\(const)e(cl_N&)h(x\))480 3720 y Fr(Returns)g -Fp(tan\(x\))g(=)h(sin\(x\)/cos\(x\))p Fr(.)0 3886 y Fp(cl_N)f(cis)h -(\(const)e(cl_R&)h(x\))0 4011 y(cl_N)g(cis)h(\(const)e(cl_N&)h(x\))480 -4135 y Fr(Returns)h Fp(exp\(i*x\))p Fr(.)41 b(The)30 -b(name)g(`)p Fp(cis)p Fr(')h(means)f(\\cos)i Fp(+)f Fr(i)g(sin",)g(b)s -(ecause)g Fp(e^\(i*x\))e(=)h(cos\(x\))e(+)480 4260 y(i*sin\(x\))p -Fr(.)0 4426 y Fp(cl_N)h(asin)g(\(const)g(cl_N&)g(z\))480 -4551 y Fr(Returns)24 b Fp(arcsin\(z\))p Fr(.)37 b(This)24 -b(is)h(de\014ned)f(as)h Fp(arcsin\(z\))j(=)i(log\(iz+sqrt\(1-z^2\)\)/i) -20 b Fr(and)k(sat-)480 4675 y(is\014es)g Fp(arcsin\(-z\))j(=)j -(-arcsin\(z\))p Fr(.)36 b(The)23 b(range)i(of)f(the)g(result)f(is)h -(the)g(strip)g(in)f(the)h(complex)g(do-)480 4800 y(main)g -Fp(-pi/2)29 b(<=)h(realpart\(arcsin\(z\)\))25 b(<=)30 -b(pi/2)p Fr(,)25 b(excluding)g(the)h(n)m(um)m(b)s(ers)c(with)j -Fp(realpart)480 4925 y(=)30 b(-pi/2)c Fr(and)g Fp(imagpart)i(<)i(0)d -Fr(and)f(the)h(n)m(um)m(b)s(ers)e(with)i Fp(realpart)h(=)i(pi/2)25 -b Fr(and)i Fp(imagpart)h(>)i(0)p Fr(.)0 5091 y Fp(cl_N)f(acos)g -(\(const)g(cl_N&)g(z\))480 5215 y Fr(Returns)19 b Fp(arccos\(z\))p -Fr(.)35 b(This)20 b(is)g(de\014ned)f(as)i Fp(arccos\(z\))27 -b(=)j(pi/2)g(-)g(arcsin\(z\))d(=)k(log\(z+i*sqrt\(1-)480 -5340 y(z^2\)\)/i)36 b Fr(and)i(satis\014es)g Fp(arccos\(-z\))28 -b(=)i(pi)g(-)g(arccos\(z\))p Fr(.)61 b(The)38 b(range)h(of)f(the)g -(result)h(is)f(the)p eop -%%Page: 24 26 -24 25 bop 0 -116 a Fr(Chapter)30 b(4:)41 b(F)-8 b(unctions)31 -b(on)f(n)m(um)m(b)s(ers)2463 b(24)480 366 y(strip)40 -b(in)f(the)i(complex)e(domain)g Fp(0)30 b(<=)g(realpart\(arcsin\(z\)\)) -25 b(<=)30 b(pi)p Fr(,)42 b(excluding)e(the)g(n)m(um-)480 -491 y(b)s(ers)33 b(with)g Fp(realpart)28 b(=)i(0)k Fr(and)f -Fp(imagpart)28 b(<)i(0)k Fr(and)f(the)h(n)m(um)m(b)s(ers)e(with)h -Fp(realpart)28 b(=)i(pi)k Fr(and)480 616 y Fp(imagpart)28 -b(>)i(0)p Fr(.)0 785 y Fp(cl_R)f(atan)g(\(const)g(cl_R&)g(x,)h(const)f -(cl_R&)g(y\))480 910 y Fr(Returns)37 b(the)i(angle)g(of)g(the)f(p)s -(olar)g(represen)m(tation)h(of)g(the)f(complex)g(n)m(um)m(b)s(er)e -Fp(x+iy)p Fr(.)63 b(This)38 b(is)480 1034 y Fp(atan\(y/x\))27 -b Fr(if)i Fp(x>0)p Fr(.)40 b(The)28 b(range)i(of)f(the)h(result)f(is)h -(the)f(in)m(terv)-5 b(al)31 b Fp(-pi)e(<)h(atan\(x,y\))e(<=)i(pi)p -Fr(.)39 b(The)480 1159 y(result)j(will)g(b)s(e)f(an)g(exact)i(n)m(um)m -(b)s(er)d(only)h(if)h Fp(x)30 b(>)g(0)41 b Fr(and)h Fp(y)f -Fr(is)h(the)f(exact)j Fp(0)p Fr(.)74 b(W)-10 b(ARNING:)43 -b(In)480 1283 y(Common)26 b(Lisp,)i(this)g(function)g(is)g(called)h(as) -g Fp(\(atan)g(y)h(x\))p Fr(,)e(with)g(rev)m(ersed)g(order)g(of)g -(argumen)m(ts.)0 1453 y Fp(cl_R)h(atan)g(\(const)g(cl_R&)g(x\))480 -1578 y Fr(Returns)36 b Fp(arctan\(x\))p Fr(.)59 b(This)37 -b(is)g(the)g(same)g(as)g Fp(atan\(1,x\))p Fr(.)59 b(The)37 -b(range)g(of)h(the)f(result)g(is)h(the)480 1702 y(in)m(terv)-5 -b(al)34 b Fp(-pi/2)29 b(<)h(atan\(x\))e(<)i(pi/2)p Fr(.)47 -b(The)32 b(result)g(will)h(b)s(e)f(an)h(exact)h(n)m(um)m(b)s(er)c(only) -j(if)g Fp(x)f Fr(is)h(the)480 1827 y(exact)f Fp(0)p Fr(.)0 -1996 y Fp(cl_N)d(atan)g(\(const)g(cl_N&)g(z\))480 2121 -y Fr(Returns)43 b Fp(arctan\(z\))p Fr(.)80 b(This)44 -b(is)g(de\014ned)g(as)g Fp(arctan\(z\))28 b(=)i -(\(log\(1+iz\)-log\(1-iz\)\))25 b(/)30 b(2i)480 2245 -y Fr(and)23 b(satis\014es)h Fp(arctan\(-z\))k(=)i(-arctan\(z\))p -Fr(.)35 b(The)23 b(range)h(of)g(the)g(result)f(is)h(the)g(strip)f(in)g -(the)h(com-)480 2370 y(plex)45 b(domain)f Fp(-pi/2)29 -b(<=)h(realpart\(arctan\(z\)\))25 b(<=)30 b(pi/2)p Fr(,)47 -b(excluding)e(the)h(n)m(um)m(b)s(ers)c(with)480 2494 -y Fp(realpart)28 b(=)i(-pi/2)42 b Fr(and)h Fp(imagpart)28 -b(>=)i(0)42 b Fr(and)h(the)h(n)m(um)m(b)s(ers)c(with)j -Fp(realpart)28 b(=)i(pi/2)43 b Fr(and)480 2619 y Fp(imagpart)28 -b(<=)i(0)p Fr(.)0 2915 y(Arc)m(himedes')g(constan)m(t)i(pi)e(=)g(3.14)p -Fn(:)15 b(:)g(:)33 b Fr(is)d(returned)f(b)m(y)h(the)h(follo)m(wing)h -(functions:)0 3212 y Fp(cl_F)d(cl_pi)g(\(cl_float_format_t)d(f\))480 -3336 y Fr(Returns)j(pi)i(as)f(a)h(\015oat)g(of)f(format)g -Fp(f)p Fr(.)0 3506 y Fp(cl_F)f(cl_pi)g(\(const)g(cl_F&)g(y\))480 -3631 y Fr(Returns)g(pi)i(in)f(the)g(\015oat)h(format)f(of)g -Fp(y)p Fr(.)0 3800 y Fp(cl_F)f(cl_pi)g(\(void\))480 3925 -y Fr(Returns)g(pi)i(as)f(a)h(\015oat)g(of)f(format)g -Fp(cl_default_float_format)p Fr(.)0 4331 y Fm(4.8.3)63 -b(Hyp)s(erb)s(olic)31 b(functions)0 4627 y Fp(cl_R)e(sinh)g(\(const)g -(cl_R&)g(x\))480 4752 y Fr(Returns)g Fp(sinh\(x\))p Fr(.)0 -4921 y Fp(cl_N)g(sinh)g(\(const)g(cl_N&)g(z\))480 5046 -y Fr(Returns)g Fp(sinh\(z\))p Fr(.)39 b(The)30 b(range)h(of)f(the)h -(result)f(is)h(the)f(en)m(tire)h(complex)g(plane.)0 5215 -y Fp(cl_R)e(cosh)g(\(const)g(cl_R&)g(x\))480 5340 y Fr(Returns)g -Fp(cosh\(x\))p Fr(.)39 b(The)30 b(range)h(of)f(the)h(result)f(is)h(the) -f(in)m(terv)-5 b(al)32 b Fp(cosh\(x\))c(>=)i(1)p Fr(.)p -eop -%%Page: 25 27 -25 26 bop 0 -116 a Fr(Chapter)30 b(4:)41 b(F)-8 b(unctions)31 -b(on)f(n)m(um)m(b)s(ers)2463 b(25)0 366 y Fp(cl_N)29 -b(cosh)g(\(const)g(cl_N&)g(z\))480 491 y Fr(Returns)g -Fp(cosh\(z\))p Fr(.)39 b(The)30 b(range)h(of)f(the)h(result)f(is)h(the) -f(en)m(tire)h(complex)g(plane.)0 667 y Fp(struct)e(cl_cosh_sinh_t)d({)k -(cl_R)f(cosh;)g(cl_R)h(sinh;)e(};)0 792 y(cl_cosh_sinh_t)e -(cl_cosh_sinh)i(\(const)g(cl_R&)h(x\))480 916 y Fr(Returns)44 -b(b)s(oth)h Fp(sinh\(x\))e Fr(and)i Fp(cosh\(x\))p Fr(.)83 -b(This)44 b(is)i(more)e(e\016cien)m(t)j(than)e(computing)f(them)480 -1041 y(separately)-8 b(.)42 b(The)30 b(relation)i Fp(cosh^2)c(-)j -(sinh^2)d(=)i(1)g Fr(will)h(hold)f(only)g(appro)m(ximately)-8 -b(.)0 1217 y Fp(cl_R)29 b(tanh)g(\(const)g(cl_R&)g(x\))0 -1342 y(cl_N)g(tanh)g(\(const)g(cl_N&)g(x\))480 1466 y -Fr(Returns)g Fp(tanh\(x\))g(=)h(sinh\(x\)/cosh\(x\))p -Fr(.)0 1643 y Fp(cl_N)f(asinh)g(\(const)g(cl_N&)g(z\))480 -1767 y Fr(Returns)22 b Fp(arsinh\(z\))p Fr(.)36 b(This)22 -b(is)i(de\014ned)d(as)j Fp(arsinh\(z\))k(=)i(log\(z+sqrt\(1+z^2\)\))18 -b Fr(and)k(satis\014es)480 1892 y Fp(arsinh\(-z\))28 -b(=)i(-arsinh\(z\))p Fr(.)37 b(The)27 b(range)h(of)g(the)g(result)g(is) -g(the)g(strip)f(in)h(the)g(complex)f(domain)480 2016 -y Fp(-pi/2)i(<=)h(imagpart\(arsinh\(z\)\))25 b(<=)30 -b(pi/2)p Fr(,)39 b(excluding)f(the)h(n)m(um)m(b)s(ers)c(with)j -Fp(imagpart)28 b(=)i(-)480 2141 y(pi/2)f Fr(and)h Fp(realpart)e(>)i(0)g -Fr(and)g(the)g(n)m(um)m(b)s(ers)e(with)i Fp(imagpart)f(=)h(pi/2)f -Fr(and)h Fp(realpart)e(<)i(0)p Fr(.)0 2317 y Fp(cl_N)f(acosh)g(\(const) -g(cl_N&)g(z\))480 2442 y Fr(Returns)d Fp(arcosh\(z\))p -Fr(.)37 b(This)26 b(is)h(de\014ned)f(as)h Fp(arcosh\(z\))h(=)i -(2*log\(sqrt\(\(z+1\)/2\)+sqr)o(t\(\(z)o(-)480 2566 y(1\)/2\)\))p -Fr(.)102 b(The)51 b(range)h(of)g(the)g(result)f(is)g(the)h(half-strip)f -(in)h(the)f(complex)g(domain)g Fp(-pi)29 b(<)480 2691 -y(imagpart\(arcosh\(z\)\))c(<=)30 b(pi,)f(realpart\(arcosh\(z\)\))c(>=) -30 b(0)p Fr(,)76 b(excluding)67 b(the)f(n)m(um)m(b)s(ers)480 -2815 y(with)30 b Fp(realpart)e(=)i(0)g Fr(and)g Fp(-pi)g(<)g(imagpart)e -(<)i(0)p Fr(.)0 2991 y Fp(cl_N)f(atanh)g(\(const)g(cl_N&)g(z\))480 -3116 y Fr(Returns)38 b Fp(artanh\(z\))p Fr(.)64 b(This)39 -b(is)g(de\014ned)f(as)h Fp(artanh\(z\))28 b(=)i -(\(log\(1+z\)-log\(1-z\)\))25 b(/)30 b(2)39 b Fr(and)480 -3241 y(satis\014es)f Fp(artanh\(-z\))27 b(=)j(-artanh\(z\))p -Fr(.)58 b(The)37 b(range)g(of)g(the)g(result)g(is)g(the)h(strip)e(in)h -(the)g(com-)480 3365 y(plex)45 b(domain)f Fp(-pi/2)29 -b(<=)h(imagpart\(artanh\(z\)\))25 b(<=)30 b(pi/2)p Fr(,)47 -b(excluding)e(the)h(n)m(um)m(b)s(ers)c(with)480 3490 -y Fp(imagpart)28 b(=)i(-pi/2)42 b Fr(and)h Fp(realpart)28 -b(<=)i(0)42 b Fr(and)h(the)h(n)m(um)m(b)s(ers)c(with)j -Fp(imagpart)28 b(=)i(pi/2)43 b Fr(and)480 3614 y Fp(realpart)28 -b(>=)i(0)p Fr(.)0 4038 y Fm(4.8.4)63 b(Euler)30 b(gamma)0 -4313 y Fr(Euler's)g(constan)m(t)i(C)e(=)g(0.577)p Fn(:)15 -b(:)g(:)33 b Fr(is)e(returned)e(b)m(y)h(the)h(follo)m(wing)g -(functions:)0 4614 y Fp(cl_F)e(cl_eulerconst)e(\(cl_float_format_t)e -(f\))480 4738 y Fr(Returns)k(Euler's)i(constan)m(t)g(as)g(a)g(\015oat)g -(of)f(format)g Fp(f)p Fr(.)0 4915 y Fp(cl_F)f(cl_eulerconst)e(\(const)i -(cl_F&)g(y\))480 5039 y Fr(Returns)g(Euler's)i(constan)m(t)g(in)f(the)h -(\015oat)g(format)f(of)g Fp(y)p Fr(.)0 5215 y Fp(cl_F)f(cl_eulerconst)e -(\(void\))480 5340 y Fr(Returns)i(Euler's)i(constan)m(t)g(as)g(a)g -(\015oat)g(of)f(format)g Fp(cl_default_float_format)p +(en)m(tire)i(complex)e(plane.)-30 1088 y Fp(struct)f(cl_cos_sin_t)e({)j +(cl_R)f(cos;)g(cl_R)g(sin;)h(};)-30 1198 y(cl_cos_sin_t)d(cl_cos_sin)h +(\(const)g(cl_R&)h(x\))450 1307 y Fr(Returns)20 b(b)s(oth)h +Fp(sin\(x\))f Fr(and)h Fp(cos\(x\))p Fr(.)36 b(This)20 +b(is)i(more)e(e\016cien)m(t)j(than)e(computing)g(them)f(separately)-8 +b(.)450 1417 y(The)30 b(relation)h Fp(cos^2)e(+)h(sin^2)f(=)h(1)g +Fr(will)h(hold)f(only)h(appro)m(ximately)-8 b(.)-30 1570 +y Fp(cl_R)29 b(tan)h(\(const)e(cl_R&)h(x\))-30 1680 y(cl_N)g(tan)h +(\(const)e(cl_N&)h(x\))450 1789 y Fr(Returns)g Fp(tan\(x\))g(=)h +(sin\(x\)/cos\(x\))p Fr(.)-30 1943 y Fp(cl_N)f(cis)h(\(const)e(cl_R&)h +(x\))-30 2052 y(cl_N)g(cis)h(\(const)e(cl_N&)h(x\))450 +2162 y Fr(Returns)35 b Fp(exp\(i*x\))p Fr(.)54 b(The)35 +b(name)f(`)p Fp(cis)p Fr(')h(means)g(\\cos)i Fp(+)e Fr(i)h(sin",)h(b)s +(ecause)e Fp(e^\(i*x\))29 b(=)h(cos\(x\))e(+)450 2271 +y(i*sin\(x\))p Fr(.)-30 2425 y Fp(cl_N)h(asin)g(\(const)g(cl_N&)g(z\)) +450 2534 y Fr(Returns)j Fp(arcsin\(z\))p Fr(.)44 b(This)32 +b(is)h(de\014ned)e(as)i Fp(arcsin\(z\))27 b(=)j +(log\(iz+sqrt\(1-z^2\)\)/i)d Fr(and)32 b(sat-)450 2644 +y(is\014es)d Fp(arcsin\(-z\))e(=)j(-arcsin\(z\))p Fr(.)37 +b(The)29 b(range)g(of)g(the)g(result)f(is)h(the)g(strip)f(in)g(the)h +(complex)g(do-)450 2754 y(main)34 b Fp(-pi/2)29 b(<=)h +(realpart\(arcsin\(z\)\))25 b(<=)30 b(pi/2)p Fr(,)35 +b(excluding)g(the)h(n)m(um)m(b)s(ers)c(with)j Fp(realpart)450 +2863 y(=)30 b(-pi/2)f Fr(and)h Fp(imagpart)e(<)i(0)g +Fr(and)g(the)g(n)m(um)m(b)s(ers)e(with)i Fp(realpart)e(=)i(pi/2)g +Fr(and)f Fp(imagpart)f(>)j(0)p Fr(.)-30 3017 y Fp(cl_N)e(acos)g +(\(const)g(cl_N&)g(z\))450 3126 y Fr(Returns)101 b Fp(arccos\(z\))p +Fr(.)252 b(This)101 b(is)h(de\014ned)e(as)i Fp(arccos\(z\))28 +b(=)i(pi/2)f(-)h(arcsin\(z\))e(=)450 3236 y(log\(z+i*sqrt\(1-z^2\)\)/i) +53 b Fr(and)58 b(satis\014es)h Fp(arccos\(-z\))28 b(=)i(pi)g(-)g +(arccos\(z\))p Fr(.)123 b(The)59 b(range)450 3345 y(of)48 +b(the)g(result)g(is)g(the)h(strip)e(in)h(the)g(complex)g(domain)f +Fp(0)30 b(<=)f(realpart\(arcsin\(z\)\))d(<=)j(pi)p Fr(,)450 +3455 y(excluding)46 b(the)g(n)m(um)m(b)s(ers)d(with)i +Fp(realpart)28 b(=)i(0)46 b Fr(and)f Fp(imagpart)28 b(<)i(0)45 +b Fr(and)g(the)h(n)m(um)m(b)s(ers)d(with)450 3565 y Fp(realpart)28 +b(=)i(pi)g Fr(and)g Fp(imagpart)e(>)i(0)p Fr(.)-30 3718 +y Fp(cl_R)f(atan)g(\(const)g(cl_R&)g(x,)h(const)f(cl_R&)g(y\))450 +3828 y Fr(Returns)41 b(the)i(angle)g(of)g(the)f(p)s(olar)g(represen)m +(tation)h(of)g(the)f(complex)g(n)m(um)m(b)s(er)e Fp(x+iy)p +Fr(.)75 b(This)42 b(is)450 3937 y Fp(atan\(y/x\))31 b +Fr(if)i Fp(x>0)p Fr(.)49 b(The)33 b(range)h(of)f(the)h(result)f(is)h +(the)g(in)m(terv)-5 b(al)34 b Fp(-pi)c(<)g(atan\(x,y\))d(<=)j(pi)p +Fr(.)49 b(The)450 4047 y(result)23 b(will)g(b)s(e)f(an)g(exact)i(n)m +(um)m(b)s(er)d(only)i(if)f Fp(x)30 b(>)g(0)23 b Fr(and)f +Fp(y)g Fr(is)h(the)g(exact)h Fp(0)p Fr(.)38 b(W)-10 b(ARNING:)23 +b(In)f(Common)450 4156 y(Lisp,)30 b(this)g(function)g(is)h(called)g(as) +g Fp(\(atan)e(y)h(x\))p Fr(,)g(with)g(rev)m(ersed)h(order)e(of)i +(argumen)m(ts.)-30 4310 y Fp(cl_R)e(atan)g(\(const)g(cl_R&)g(x\))450 +4419 y Fr(Returns)40 b Fp(arctan\(x\))p Fr(.)68 b(This)40 +b(is)h(the)g(same)f(as)g Fp(atan\(1,x\))p Fr(.)69 b(The)40 +b(range)h(of)g(the)g(result)f(is)h(the)450 4529 y(in)m(terv)-5 +b(al)38 b Fp(-pi/2)29 b(<)h(atan\(x\))e(<)i(pi/2)p Fr(.)59 +b(The)36 b(result)g(will)h(b)s(e)f(an)h(exact)h(n)m(um)m(b)s(er)c(only) +j(if)g Fp(x)f Fr(is)h(the)450 4639 y(exact)32 b Fp(0)p +Fr(.)-30 4792 y Fp(cl_N)d(atan)g(\(const)g(cl_N&)g(z\))450 +4902 y Fr(Returns)51 b Fp(arctan\(z\))p Fr(.)102 b(This)52 +b(is)f(de\014ned)g(as)h Fp(arctan\(z\))28 b(=)i +(\(log\(1+iz\)-log\(1-iz\)\))25 b(/)30 b(2i)450 5011 +y Fr(and)44 b(satis\014es)h Fp(arctan\(-z\))28 b(=)i(-arctan\(z\))p +Fr(.)80 b(The)44 b(range)h(of)g(the)g(result)f(is)h(the)f(strip)g(in)h +(the)450 5121 y(complex)28 b(domain)g Fp(-pi/2)h(<=)g +(realpart\(arctan\(z\)\))d(<=)j(pi/2)p Fr(,)f(excluding)h(the)g(n)m(um) +m(b)s(ers)d(with)450 5230 y Fp(realpart)i(=)i(-pi/2)49 +b Fr(and)i Fp(imagpart)28 b(>=)i(0)50 b Fr(and)g(the)h(n)m(um)m(b)s +(ers)d(with)j Fp(realpart)28 b(=)i(pi/2)50 b Fr(and)450 +5340 y Fp(imagpart)28 b(<=)i(0)p Fr(.)p eop +%%Page: 19 21 +19 20 bop -30 -116 a Fr(Chapter)30 b(4:)41 b(F)-8 b(unctions)31 +b(on)f(n)m(um)m(b)s(ers)2523 b(19)-30 299 y(Arc)m(himedes')30 +b(constan)m(t)i(pi)e(=)g(3.14)6 b(.)23 b(.)f(.)42 b(is)30 +b(returned)g(b)m(y)g(the)g(follo)m(wing)i(functions:)-30 +469 y Fp(cl_F)d(cl_pi)g(\(cl_float_format_t)d(f\))450 +578 y Fr(Returns)j(pi)i(as)f(a)h(\015oat)g(of)f(format)g +Fp(f)p Fr(.)-30 745 y Fp(cl_F)f(cl_pi)g(\(const)g(cl_F&)g(y\))450 +855 y Fr(Returns)g(pi)i(in)f(the)g(\015oat)h(format)f(of)g +Fp(y)p Fr(.)-30 1021 y Fp(cl_F)f(cl_pi)g(\(void\))450 +1131 y Fr(Returns)g(pi)i(as)f(a)h(\015oat)g(of)f(format)g +Fp(cl_default_float_format)p Fr(.)-30 1369 y Fn(4.8.3)63 +b(Hyp)s(erb)s(olic)42 b(functions)-30 1597 y Fp(cl_R)29 +b(sinh)g(\(const)g(cl_R&)g(x\))450 1707 y Fr(Returns)g +Fp(sinh\(x\))p Fr(.)-30 1873 y Fp(cl_N)g(sinh)g(\(const)g(cl_N&)g(z\)) +450 1983 y Fr(Returns)g Fp(sinh\(z\))p Fr(.)39 b(The)30 +b(range)h(of)f(the)h(result)f(is)h(the)f(en)m(tire)h(complex)g(plane.) +-30 2149 y Fp(cl_R)e(cosh)g(\(const)g(cl_R&)g(x\))450 +2259 y Fr(Returns)g Fp(cosh\(x\))p Fr(.)39 b(The)30 b(range)h(of)f(the) +h(result)f(is)h(the)f(in)m(terv)-5 b(al)32 b Fp(cosh\(x\))c(>=)i(1)p +Fr(.)-30 2425 y Fp(cl_N)f(cosh)g(\(const)g(cl_N&)g(z\))450 +2535 y Fr(Returns)g Fp(cosh\(z\))p Fr(.)39 b(The)30 b(range)h(of)f(the) +h(result)f(is)h(the)f(en)m(tire)h(complex)g(plane.)-30 +2701 y Fp(struct)e(cl_cosh_sinh_t)d({)k(cl_R)f(cosh;)g(cl_R)h(sinh;)e +(};)-30 2811 y(cl_cosh_sinh_t)e(cl_cosh_sinh)h(\(const)i(cl_R&)g(x\)) +450 2921 y Fr(Returns)i(b)s(oth)g Fp(sinh\(x\))f Fr(and)h +Fp(cosh\(x\))p Fr(.)43 b(This)31 b(is)h(more)f(e\016cien)m(t)i(than)f +(computing)f(them)f(sepa-)450 3030 y(rately)-8 b(.)42 +b(The)30 b(relation)i Fp(cosh^2)c(-)i(sinh^2)f(=)h(1)g +Fr(will)h(hold)f(only)g(appro)m(ximately)-8 b(.)-30 3197 +y Fp(cl_R)29 b(tanh)g(\(const)g(cl_R&)g(x\))-30 3306 +y(cl_N)g(tanh)g(\(const)g(cl_N&)g(x\))450 3416 y Fr(Returns)g +Fp(tanh\(x\))g(=)h(sinh\(x\)/cosh\(x\))p Fr(.)-30 3582 +y Fp(cl_N)f(asinh)g(\(const)g(cl_N&)g(z\))450 3692 y +Fr(Returns)h Fp(arsinh\(z\))p Fr(.)40 b(This)31 b(is)g(de\014ned)f(as)h +Fp(arsinh\(z\))d(=)i(log\(z+sqrt\(1+z^2\)\))c Fr(and)k(satis\014es)450 +3802 y Fp(arsinh\(-z\))e(=)i(-arsinh\(z\))p Fr(.)36 b(The)26 +b(range)h(of)g(the)g(result)f(is)h(the)g(strip)f(in)g(the)h(complex)f +(domain)f Fp(-)450 3911 y(pi/2)k(<=)h(imagpart\(arsinh\(z\)\))25 +b(<=)30 b(pi/2)p Fr(,)22 b(excluding)g(the)g(n)m(um)m(b)s(ers)d(with)i +Fp(imagpart)28 b(=)i(-pi/2)450 4021 y Fr(and)g Fp(realpart)e(>)i(0)g +Fr(and)g(the)g(n)m(um)m(b)s(ers)e(with)i Fp(imagpart)e(=)i(pi/2)g +Fr(and)f Fp(realpart)g(<)h(0)p Fr(.)-30 4187 y Fp(cl_N)f(acosh)g +(\(const)g(cl_N&)g(z\))450 4297 y Fr(Returns)35 b Fp(arcosh\(z\))p +Fr(.)53 b(This)35 b(is)h(de\014ned)e(as)i Fp(arcosh\(z\))28 +b(=)i(2*log\(sqrt\(\(z+1\)/2\)+sqr)o(t\(\(z)o(-)450 4406 +y(1\)/2\)\))p Fr(.)114 b(The)55 b(range)h(of)g(the)g(result)f(is)g(the) +h(half-strip)f(in)h(the)f(complex)g(domain)g Fp(-pi)29 +b(<)450 4516 y(imagpart\(arcosh\(z\)\))c(<=)30 b(pi,)f +(realpart\(arcosh\(z\)\))c(>=)30 b(0)p Fr(,)99 b(excluding)85 +b(the)g(n)m(um)m(b)s(ers)450 4626 y(with)30 b Fp(realpart)e(=)i(0)g +Fr(and)g Fp(-pi)f(<)i(imagpart)d(<)i(0)p Fr(.)-30 4792 +y Fp(cl_N)f(atanh)g(\(const)g(cl_N&)g(z\))450 4902 y +Fr(Returns)24 b Fp(artanh\(z\))p Fr(.)37 b(This)24 b(is)h(de\014ned)f +(as)h Fp(artanh\(z\))j(=)i(\(log\(1+z\)-log\(1-z\)\))25 +b(/)30 b(2)25 b Fr(and)f(sat-)450 5011 y(is\014es)29 +b Fp(artanh\(-z\))e(=)j(-artanh\(z\))p Fr(.)37 b(The)29 +b(range)g(of)g(the)g(result)f(is)h(the)g(strip)f(in)g(the)h(complex)g +(do-)450 5121 y(main)34 b Fp(-pi/2)29 b(<=)h(imagpart\(artanh\(z\)\))25 +b(<=)30 b(pi/2)p Fr(,)35 b(excluding)g(the)h(n)m(um)m(b)s(ers)c(with)j +Fp(imagpart)450 5230 y(=)30 b(-pi/2)j Fr(and)h Fp(realpart)28 +b(<=)i(0)k Fr(and)g(the)h(n)m(um)m(b)s(ers)d(with)i Fp(imagpart)28 +b(=)i(pi/2)k Fr(and)f Fp(realpart)c(>=)450 5340 y(0)p Fr(.)p eop -%%Page: 26 28 -26 27 bop 0 -116 a Fr(Chapter)30 b(4:)41 b(F)-8 b(unctions)31 -b(on)f(n)m(um)m(b)s(ers)2463 b(26)0 366 y(Catalan's)32 -b(constan)m(t)f(G)g(=)f(0.915)p Fn(:)15 b(:)g(:)33 b -Fr(is)e(returned)e(b)m(y)h(the)h(follo)m(wing)h(functions:)0 -676 y Fp(cl_F)d(cl_catalanconst)d(\(cl_float_format_t)g(f\))480 -800 y Fr(Returns)j(Catalan's)j(constan)m(t)g(as)e(a)h(\015oat)g(of)g -(format)e Fp(f)p Fr(.)0 985 y Fp(cl_F)g(cl_catalanconst)d(\(const)j -(cl_F&)g(y\))480 1110 y Fr(Returns)g(Catalan's)j(constan)m(t)g(in)e -(the)g(\015oat)h(format)f(of)h Fp(y)p Fr(.)0 1294 y Fp(cl_F)e -(cl_catalanconst)d(\(void\))480 1419 y Fr(Returns)j(Catalan's)j -(constan)m(t)g(as)e(a)h(\015oat)g(of)g(format)e Fp -(cl_default_float_format)p Fr(.)0 1881 y Fm(4.8.5)63 -b(Riemann)29 b(zeta)0 2160 y Fr(Riemann's)g(zeta)j(function)e(at)h(an)g -(in)m(tegral)h(p)s(oin)m(t)e Fp(s>1)f Fr(is)i(returned)e(b)m(y)h(the)h -(follo)m(wing)h(functions:)0 2470 y Fp(cl_F)d(cl_zeta)g(\(int)g(s,)h -(cl_float_format_t)25 b(f\))480 2594 y Fr(Returns)k(Riemann's)h(zeta)i -(function)e(at)h Fp(s)f Fr(as)g(a)h(\015oat)g(of)g(format)e -Fp(f)p Fr(.)0 2779 y Fp(cl_F)g(cl_zeta)g(\(int)g(s,)h(const)f(cl_F&)f -(y\))480 2904 y Fr(Returns)h(Riemann's)h(zeta)i(function)e(at)h -Fp(s)f Fr(in)g(the)g(\015oat)h(format)f(of)h Fp(y)p Fr(.)0 -3088 y Fp(cl_F)e(cl_zeta)g(\(int)g(s\))480 3213 y Fr(Returns)e -(Riemann's)g(zeta)j(function)d(at)i Fp(s)f Fr(as)g(a)h(\015oat)f(of)h -(format)e Fp(cl_default_float_format)p Fr(.)0 3708 y -Fs(4.9)68 b(F)-11 b(unctions)30 b(on)g(in)l(tegers)0 -4170 y Fm(4.9.1)63 b(Logical)30 b(functions)0 4450 y -Fr(In)m(tegers,)e(when)c(view)m(ed)i(as)g(in)f(t)m(w)m(o's)i(complemen) -m(t)e(notation,)j(can)e(b)s(e)f(though)m(t)h(as)f(in\014nite)h(bit)f -(strings)g(where)0 4574 y(the)31 b(bits')f(v)-5 b(alues)31 -b(ev)m(en)m(tually)h(are)f(constan)m(t.)42 b(F)-8 b(or)31 -b(example,)431 4832 y Fp(17)47 b(=)h(......00010001)431 -4936 y(-6)f(=)h(......11111010)0 5215 y Fr(The)30 b(logical)i(op)s -(erations)f(view)f(in)m(tegers)h(as)g(suc)m(h)f(bit)g(strings)g(and)f -(op)s(erate)i(on)f(eac)m(h)h(of)g(the)f(bit)g(p)s(ositions)g(in)0 -5340 y(parallel.)p eop -%%Page: 27 29 -27 28 bop 0 -116 a Fr(Chapter)30 b(4:)41 b(F)-8 b(unctions)31 -b(on)f(n)m(um)m(b)s(ers)2463 b(27)0 366 y Fp(cl_I)29 -b(lognot)g(\(const)g(cl_I&)f(x\))0 491 y(cl_I)h(operator)f(~)i(\(const) -f(cl_I&)g(x\))480 616 y Fr(Logical)j(not,)f(lik)m(e)h -Fp(~x)e Fr(in)g(C.)g(This)g(is)g(the)h(same)e(as)i Fp(-1-x)p -Fr(.)0 776 y Fp(cl_I)e(logand)g(\(const)g(cl_I&)f(x,)i(const)f(cl_I&)g -(y\))0 900 y(cl_I)g(operator)f(&)i(\(const)f(cl_I&)g(x,)h(const)f -(cl_I&)g(y\))480 1025 y Fr(Logical)j(and,)e(lik)m(e)i -Fp(x)e(&)g(y)g Fr(in)g(C.)0 1185 y Fp(cl_I)f(logior)g(\(const)g(cl_I&)f -(x,)i(const)f(cl_I&)g(y\))0 1309 y(cl_I)g(operator)f(|)i(\(const)f -(cl_I&)g(x,)h(const)f(cl_I&)g(y\))480 1434 y Fr(Logical)j(\(inclusiv)m -(e\))g(or,)f(lik)m(e)h Fp(x)e(|)g(y)g Fr(in)g(C.)0 1594 -y Fp(cl_I)f(logxor)g(\(const)g(cl_I&)f(x,)i(const)f(cl_I&)g(y\))0 -1718 y(cl_I)g(operator)f(^)i(\(const)f(cl_I&)g(x,)h(const)f(cl_I&)g -(y\))480 1843 y Fr(Exclusiv)m(e)i(or,)g(lik)m(e)h Fp(x)e(^)g(y)g -Fr(in)g(C.)0 2003 y Fp(cl_I)f(logeqv)g(\(const)g(cl_I&)f(x,)i(const)f -(cl_I&)g(y\))480 2127 y Fr(Bit)m(wise)j(equiv)-5 b(alence,)32 -b(lik)m(e)g Fp(~\(x)d(^)h(y\))g Fr(in)g(C.)0 2288 y Fp(cl_I)f(lognand)g -(\(const)f(cl_I&)h(x,)h(const)f(cl_I&)g(y\))480 2412 -y Fr(Bit)m(wise)j(not)f(and,)f(lik)m(e)h Fp(~\(x)f(&)g(y\))g -Fr(in)g(C.)0 2572 y Fp(cl_I)f(lognor)g(\(const)g(cl_I&)f(x,)i(const)f -(cl_I&)g(y\))480 2697 y Fr(Bit)m(wise)j(not)f(or,)f(lik)m(e)i -Fp(~\(x)d(|)h(y\))g Fr(in)g(C.)0 2857 y Fp(cl_I)f(logandc1)f(\(const)h -(cl_I&)g(x,)h(const)f(cl_I&)g(y\))480 2981 y Fr(Logical)j(and,)e +%%Page: 20 22 +20 21 bop -30 -116 a Fr(Chapter)30 b(4:)41 b(F)-8 b(unctions)31 +b(on)f(n)m(um)m(b)s(ers)2523 b(20)-30 299 y Fn(4.8.4)63 +b(Euler)40 b(gamma)-30 498 y Fr(Euler's)30 b(constan)m(t)i(C)e(=)g +(0.577)6 b(.)24 b(.)e(.)41 b(is)31 b(returned)e(b)m(y)h(the)h(follo)m +(wing)h(functions:)-30 666 y Fp(cl_F)d(cl_eulerconst)e +(\(cl_float_format_t)e(f\))450 776 y Fr(Returns)k(Euler's)i(constan)m +(t)g(as)g(a)g(\015oat)g(of)f(format)g Fp(f)p Fr(.)-30 +942 y Fp(cl_F)f(cl_eulerconst)e(\(const)i(cl_F&)g(y\))450 +1051 y Fr(Returns)g(Euler's)i(constan)m(t)g(in)f(the)h(\015oat)g +(format)f(of)g Fp(y)p Fr(.)-30 1217 y Fp(cl_F)f(cl_eulerconst)e +(\(void\))450 1326 y Fr(Returns)i(Euler's)i(constan)m(t)g(as)g(a)g +(\015oat)g(of)f(format)g Fp(cl_default_float_format)p +Fr(.)-30 1495 y(Catalan's)i(constan)m(t)f(G)g(=)f(0.915)6 +b(.)24 b(.)e(.)42 b(is)30 b(returned)f(b)m(y)h(the)h(follo)m(wing)h +(functions:)-30 1664 y Fp(cl_F)d(cl_catalanconst)d(\(cl_float_format_t) +g(f\))450 1773 y Fr(Returns)j(Catalan's)j(constan)m(t)g(as)e(a)h +(\015oat)g(of)g(format)e Fp(f)p Fr(.)-30 1939 y Fp(cl_F)g +(cl_catalanconst)d(\(const)j(cl_F&)g(y\))450 2048 y Fr(Returns)g +(Catalan's)j(constan)m(t)g(in)e(the)g(\015oat)h(format)f(of)h +Fp(y)p Fr(.)-30 2214 y Fp(cl_F)e(cl_catalanconst)d(\(void\))450 +2324 y Fr(Returns)j(Catalan's)j(constan)m(t)g(as)e(a)h(\015oat)g(of)g +(format)e Fp(cl_default_float_format)p Fr(.)-30 2560 +y Fn(4.8.5)63 b(Riemann)39 b(zeta)-30 2759 y Fr(Riemann's)29 +b(zeta)j(function)e(at)h(an)g(in)m(tegral)h(p)s(oin)m(t)e +Fp(s>1)f Fr(is)i(returned)e(b)m(y)h(the)h(follo)m(wing)h(functions:)-30 +2927 y Fp(cl_F)d(cl_zeta)g(\(int)g(s,)h(cl_float_format_t)25 +b(f\))450 3037 y Fr(Returns)k(Riemann's)h(zeta)i(function)e(at)h +Fp(s)f Fr(as)g(a)h(\015oat)g(of)g(format)e Fp(f)p Fr(.)-30 +3203 y Fp(cl_F)g(cl_zeta)g(\(int)g(s,)h(const)f(cl_F&)f(y\))450 +3312 y Fr(Returns)h(Riemann's)h(zeta)i(function)e(at)h +Fp(s)f Fr(in)g(the)g(\015oat)h(format)f(of)h Fp(y)p Fr(.)-30 +3478 y Fp(cl_F)e(cl_zeta)g(\(int)g(s\))450 3587 y Fr(Returns)g +(Riemann's)h(zeta)i(function)e(at)h Fp(s)f Fr(as)g(a)h(\015oat)g(of)g +(format)e Fp(cl_default_float_format)p Fr(.)-30 3860 +y Fs(4.9)68 b(F)-11 b(unctions)44 b(on)h(in)l(tegers)-30 +4155 y Fn(4.9.1)63 b(Logical)40 b(functions)-30 4354 +y Fr(In)m(tegers,)31 b(when)d(view)m(ed)j(as)f(in)f(t)m(w)m(o's)i +(complemen)m(t)e(notation,)i(can)f(b)s(e)f(though)m(t)h(as)g +(in\014nite)f(bit)h(strings)f(where)-30 4463 y(the)i(bits')f(v)-5 +b(alues)31 b(ev)m(en)m(tually)h(are)f(constan)m(t.)42 +b(F)-8 b(or)31 b(example,)401 4598 y Fp(17)47 b(=)h(......00010001)401 +4702 y(-6)f(=)h(......11111010)-30 4843 y Fr(The)33 b(logical)j(op)s +(erations)e(view)g(in)m(tegers)h(as)f(suc)m(h)f(bit)h(strings)f(and)h +(op)s(erate)g(on)f(eac)m(h)i(of)f(the)g(bit)g(p)s(ositions)f(in)-30 +4952 y(parallel.)-30 5121 y Fp(cl_I)c(lognot)g(\(const)g(cl_I&)f(x\)) +-30 5230 y(cl_I)h(operator)f(~)i(\(const)f(cl_I&)g(x\))450 +5340 y Fr(Logical)j(not,)f(lik)m(e)h Fp(~x)e Fr(in)g(C.)g(This)g(is)g +(the)h(same)e(as)i Fp(-1-x)p Fr(.)p eop +%%Page: 21 23 +21 22 bop -30 -116 a Fr(Chapter)30 b(4:)41 b(F)-8 b(unctions)31 +b(on)f(n)m(um)m(b)s(ers)2523 b(21)-30 299 y Fp(cl_I)29 +b(logand)g(\(const)g(cl_I&)f(x,)i(const)f(cl_I&)g(y\))-30 +408 y(cl_I)g(operator)f(&)i(\(const)f(cl_I&)g(x,)h(const)f(cl_I&)g(y\)) +450 518 y Fr(Logical)j(and,)e(lik)m(e)i Fp(x)e(&)g(y)g +Fr(in)g(C.)-30 673 y Fp(cl_I)f(logior)g(\(const)g(cl_I&)f(x,)i(const)f +(cl_I&)g(y\))-30 783 y(cl_I)g(operator)f(|)i(\(const)f(cl_I&)g(x,)h +(const)f(cl_I&)g(y\))450 892 y Fr(Logical)j(\(inclusiv)m(e\))g(or,)f +(lik)m(e)h Fp(x)e(|)g(y)g Fr(in)g(C.)-30 1047 y Fp(cl_I)f(logxor)g +(\(const)g(cl_I&)f(x,)i(const)f(cl_I&)g(y\))-30 1157 +y(cl_I)g(operator)f(^)i(\(const)f(cl_I&)g(x,)h(const)f(cl_I&)g(y\))450 +1267 y Fr(Exclusiv)m(e)i(or,)g(lik)m(e)h Fp(x)e(^)g(y)g +Fr(in)g(C.)-30 1422 y Fp(cl_I)f(logeqv)g(\(const)g(cl_I&)f(x,)i(const)f +(cl_I&)g(y\))450 1531 y Fr(Bit)m(wise)j(equiv)-5 b(alence,)32 +b(lik)m(e)g Fp(~\(x)d(^)h(y\))g Fr(in)g(C.)-30 1686 y +Fp(cl_I)f(lognand)g(\(const)f(cl_I&)h(x,)h(const)f(cl_I&)g(y\))450 +1796 y Fr(Bit)m(wise)j(not)f(and,)f(lik)m(e)h Fp(~\(x)f(&)g(y\))g +Fr(in)g(C.)-30 1951 y Fp(cl_I)f(lognor)g(\(const)g(cl_I&)f(x,)i(const)f +(cl_I&)g(y\))450 2060 y Fr(Bit)m(wise)j(not)f(or,)f(lik)m(e)i +Fp(~\(x)d(|)h(y\))g Fr(in)g(C.)-30 2216 y Fp(cl_I)f(logandc1)f(\(const) +h(cl_I&)g(x,)h(const)f(cl_I&)g(y\))450 2325 y Fr(Logical)j(and,)e (complemen)m(ting)g(the)h(\014rst)e(argumen)m(t,)h(lik)m(e)i -Fp(~x)e(&)g(y)g Fr(in)g(C.)0 3141 y Fp(cl_I)f(logandc2)f(\(const)h -(cl_I&)g(x,)h(const)f(cl_I&)g(y\))480 3266 y Fr(Logical)j(and,)e +Fp(~x)e(&)g(y)g Fr(in)g(C.)-30 2480 y Fp(cl_I)f(logandc2)f(\(const)h +(cl_I&)g(x,)h(const)f(cl_I&)g(y\))450 2590 y Fr(Logical)j(and,)e (complemen)m(ting)g(the)h(second)f(argumen)m(t,)g(lik)m(e)i -Fp(x)e(&)g(~y)g Fr(in)g(C.)0 3426 y Fp(cl_I)f(logorc1)g(\(const)f -(cl_I&)h(x,)h(const)f(cl_I&)g(y\))480 3550 y Fr(Logical)j(or,)f +Fp(x)e(&)g(~y)g Fr(in)g(C.)-30 2745 y Fp(cl_I)f(logorc1)g(\(const)f +(cl_I&)h(x,)h(const)f(cl_I&)g(y\))450 2854 y Fr(Logical)j(or,)f (complemen)m(ting)f(the)g(\014rst)g(argumen)m(t,)g(lik)m(e)i -Fp(~x)d(|)i(y)f Fr(in)g(C.)0 3710 y Fp(cl_I)f(logorc2)g(\(const)f -(cl_I&)h(x,)h(const)f(cl_I&)g(y\))480 3835 y Fr(Logical)j(or,)f +Fp(~x)d(|)i(y)f Fr(in)g(C.)-30 3009 y Fp(cl_I)f(logorc2)g(\(const)f +(cl_I&)h(x,)h(const)f(cl_I&)g(y\))450 3119 y Fr(Logical)j(or,)f (complemen)m(ting)f(the)g(second)h(argumen)m(t,)f(lik)m(e)i -Fp(x)e(|)g(~y)f Fr(in)h(C.)0 4127 y(These)g(op)s(erations)h(are)g(all)g -(a)m(v)-5 b(ailable)33 b(though)d(the)g(function)0 4418 -y Fp(cl_I)f(boole)g(\(cl_boole)f(op,)h(const)g(cl_I&)g(x,)h(const)f -(cl_I&)g(y\))0 4692 y Fr(where)i Fp(op)g Fr(m)m(ust)g(ha)m(v)m(e)i(one) -f(of)g(the)g(16)h(v)-5 b(alues)32 b(\(eac)m(h)h(one)f(stands)g(for)f(a) -i(function)e(whic)m(h)h(com)m(bines)f(t)m(w)m(o)i(bits)0 -4817 y(in)m(to)24 b(one)f(bit\):)38 b Fp(boole_clr)p -Fr(,)22 b Fp(boole_set)p Fr(,)h Fp(boole_1)p Fr(,)f Fp(boole_2)p -Fr(,)h Fp(boole_c1)p Fr(,)g Fp(boole_c2)p Fr(,)f Fp(boole_and)p -Fr(,)h Fp(boole_)0 4941 y(ior)p Fr(,)37 b Fp(boole_xor)p -Fr(,)e Fp(boole_eqv)p Fr(,)g Fp(boole_nand)p Fr(,)g Fp(boole_nor)p -Fr(,)g Fp(boole_andc1)p Fr(,)g Fp(boole_andc2)p Fr(,)f -Fp(boole_orc1)p Fr(,)0 5066 y Fp(boole_orc2)p Fr(.)0 -5340 y(Other)c(functions)g(that)h(view)f(in)m(tegers)i(as)f(bit)f -(strings:)p eop -%%Page: 28 30 -28 29 bop 0 -116 a Fr(Chapter)30 b(4:)41 b(F)-8 b(unctions)31 -b(on)f(n)m(um)m(b)s(ers)2463 b(28)0 366 y Fp(cl_boolean)28 -b(logtest)g(\(const)h(cl_I&)g(x,)g(const)g(cl_I&)g(y\))480 -491 y Fr(Returns)g(true)i(if)f(some)g(bit)g(is)h(set)f(in)h(b)s(oth)e -Fp(x)h Fr(and)g Fp(y)p Fr(,)g(i.e.)42 b(if)30 b Fp(logand\(x,y\))d(!=)j -(0)p Fr(.)0 671 y Fp(cl_boolean)e(logbitp)g(\(const)h(cl_I&)g(n,)g -(const)g(cl_I&)g(x\))480 795 y Fr(Returns)f(true)g(if)g(the)h -Fp(n)p Fr(th)f(bit)g(\(from)g(the)g(righ)m(t\))h(of)g -Fp(x)f Fr(is)h(set.)40 b(Bit)30 b(0)e(is)h(the)g(least)g(signi\014can)m -(t)h(bit.)0 975 y Fp(uintL)f(logcount)f(\(const)h(cl_I&)g(x\))480 -1100 y Fr(Returns)d(the)i(n)m(um)m(b)s(er)c(of)k(one)f(bits)g(in)g -Fp(x)p Fr(,)h(if)f Fp(x)g(>)p Fr(=)f(0,)j(or)e(the)g(n)m(um)m(b)s(er)e -(of)i(zero)h(bits)f(in)g Fp(x)p Fr(,)h(if)f Fp(x)f(<)h -Fr(0.)0 1404 y(The)j(follo)m(wing)i(functions)e(op)s(erate)h(on)f(in)m -(terv)-5 b(als)31 b(of)g(bits)f(in)g(in)m(tegers.)42 -b(The)30 b(t)m(yp)s(e)240 1660 y Fp(struct)46 b(cl_byte)g({)h(uintL)g -(size;)f(uintL)g(position;)g(};)0 1937 y Fr(represen)m(ts)39 -b(the)g(bit)g(in)m(terv)-5 b(al)41 b(con)m(taining)f(the)f(bits)g -Fp(position)p Fn(:)15 b(:)g(:)o Fp(position+size-1)35 -b Fr(of)k(an)g(in)m(teger.)68 b(The)0 2061 y(constructor)31 +Fp(x)e(|)g(~y)f Fr(in)h(C.)-30 3274 y(These)g(op)s(erations)h(are)g +(all)g(a)m(v)-5 b(ailable)33 b(though)d(the)g(function)-30 +3429 y Fp(cl_I)f(boole)g(\(cl_boole)f(op,)h(const)g(cl_I&)g(x,)h(const) +f(cl_I&)g(y\))-30 3561 y Fr(where)35 b Fp(op)f Fr(m)m(ust)g(ha)m(v)m(e) +j(one)e(of)g(the)h(16)g(v)-5 b(alues)35 b(\(eac)m(h)i(one)e(stands)g +(for)g(a)g(function)g(whic)m(h)g(com)m(bines)g(t)m(w)m(o)h(bits)-30 +3671 y(in)m(to)31 b(one)g(bit\):)42 b Fp(boole_clr)p +Fr(,)28 b Fp(boole_set)p Fr(,)g Fp(boole_1)p Fr(,)h Fp(boole_2)p +Fr(,)f Fp(boole_c1)p Fr(,)h Fp(boole_c2)p Fr(,)f Fp(boole_and)p +Fr(,)h Fp(boole_)-30 3781 y(ior)p Fr(,)45 b Fp(boole_xor)p +Fr(,)f Fp(boole_eqv)p Fr(,)g Fp(boole_nand)p Fr(,)f Fp(boole_nor)p +Fr(,)h Fp(boole_andc1)p Fr(,)f Fp(boole_andc2)p Fr(,)g +Fp(boole_orc1)p Fr(,)-30 3890 y Fp(boole_orc2)p Fr(.)-30 +4023 y(Other)30 b(functions)g(that)h(view)f(in)m(tegers)i(as)f(bit)f +(strings:)-30 4178 y Fp(cl_boolean)e(logtest)g(\(const)h(cl_I&)g(x,)g +(const)g(cl_I&)g(y\))450 4287 y Fr(Returns)g(true)i(if)f(some)g(bit)g +(is)h(set)f(in)h(b)s(oth)e Fp(x)h Fr(and)g Fp(y)p Fr(,)g(i.e.)42 +b(if)30 b Fp(logand\(x,y\))d(!=)j(0)p Fr(.)-30 4442 y +Fp(cl_boolean)e(logbitp)g(\(const)h(cl_I&)g(n,)g(const)g(cl_I&)g(x\)) +450 4552 y Fr(Returns)g(true)i(if)f(the)h Fp(n)p Fr(th)e(bit)i(\(from)e +(the)i(righ)m(t\))g(of)f Fp(x)h Fr(is)f(set.)41 b(Bit)32 +b(0)e(is)h(the)f(least)i(signi\014can)m(t)f(bit.)-30 +4707 y Fp(uintL)e(logcount)f(\(const)h(cl_I&)g(x\))450 +4816 y Fr(Returns)g(the)h(n)m(um)m(b)s(er)d(of)j(one)h(bits)e(in)h +Fp(x)p Fr(,)g(if)f Fp(x)h(>)p Fr(=)f(0,)i(or)e(the)h(n)m(um)m(b)s(er)e +(of)i(zero)h(bits)e(in)h Fp(x)p Fr(,)g(if)f Fp(x)h(<)f +Fr(0.)-30 4972 y(The)h(follo)m(wing)i(functions)e(op)s(erate)h(on)f(in) +m(terv)-5 b(als)31 b(of)g(bits)f(in)g(in)m(tegers.)42 +b(The)30 b(t)m(yp)s(e)210 5098 y Fp(struct)46 b(cl_byte)g({)h(uintL)g +(size;)f(uintL)g(position;)g(};)-30 5230 y Fr(represen)m(ts)41 +b(the)h(bit)f(in)m(terv)-5 b(al)43 b(con)m(taining)g(the)e(bits)g +Fp(position)6 b Fr(.)20 b(.)i(.)12 b Fp(position+size-1)37 +b Fr(of)k(an)g(in)m(teger.)75 b(The)-30 5340 y(constructor)31 b Fp(cl_byte\(size,position\))24 b Fr(constructs)31 b(a)f -Fp(cl_byte)p Fr(.)0 2366 y Fp(cl_I)f(ldb)h(\(const)e(cl_I&)h(n,)h -(const)f(cl_byte&)f(b\))480 2490 y Fr(extracts)g(the)f(bits)f(of)h -Fp(n)f Fr(describ)s(ed)g(b)m(y)g(the)h(bit)g(in)m(terv)-5 -b(al)27 b Fp(b)g Fr(and)f(returns)f(them)g(as)i(a)g(nonnegativ)m(e)480 -2615 y(in)m(teger)32 b(with)e Fp(b.size)e Fr(bits.)0 -2794 y Fp(cl_boolean)g(ldb_test)g(\(const)g(cl_I&)h(n,)h(const)f -(cl_byte&)f(b\))480 2919 y Fr(Returns)h(true)i(if)f(some)g(bit)g -(describ)s(ed)f(b)m(y)i(the)f(bit)h(in)m(terv)-5 b(al)31 -b Fp(b)f Fr(is)h(set)g(in)f Fp(n)p Fr(.)0 3099 y Fp(cl_I)f(dpb)h -(\(const)e(cl_I&)h(newbyte,)f(const)h(cl_I&)g(n,)h(const)f(cl_byte&)f -(b\))480 3223 y Fr(Returns)f Fp(n)p Fr(,)h(with)f(the)h(bits)g(describ) -s(ed)e(b)m(y)i(the)f(bit)h(in)m(terv)-5 b(al)29 b Fp(b)e -Fr(replaced)h(b)m(y)g Fp(newbyte)p Fr(.)38 b(Only)27 -b(the)480 3348 y(lo)m(w)m(est)32 b Fp(b.size)d Fr(bits)h(of)h -Fp(newbyte)d Fr(are)j(relev)-5 b(an)m(t.)0 3652 y(The)28 -b(functions)h Fp(ldb)f Fr(and)g Fp(dpb)g Fr(implicitly)h(shift.)40 -b(The)29 b(follo)m(wing)h(functions)e(are)i(their)f(coun)m(terparts)g -(without)0 3777 y(shifting:)0 4081 y Fp(cl_I)g(mask_field)f(\(const)g -(cl_I&)h(n,)h(const)f(cl_byte&)f(b\))480 4206 y Fr(returns)j(an)g(in)m -(teger)j(with)d(the)h(bits)g(describ)s(ed)f(b)m(y)h(the)g(bit)g(in)m -(terv)-5 b(al)33 b Fp(b)e Fr(copied)i(from)d(the)i(corre-)480 -4330 y(sp)s(onding)d(bits)h(in)g Fp(n)p Fr(,)g(the)h(other)g(bits)f -(zero.)0 4510 y Fp(cl_I)f(deposit_field)e(\(const)i(cl_I&)g(newbyte,)f -(const)h(cl_I&)g(n,)g(const)g(cl_byte&)f(b\))480 4634 -y Fr(returns)34 b(an)h(in)m(teger)i(where)d(the)i(bits)f(describ)s(ed)f -(b)m(y)h(the)h(bit)f(in)m(terv)-5 b(al)36 b Fp(b)f Fr(come)g(from)f -Fp(newbyte)480 4759 y Fr(and)c(the)g(other)h(bits)f(come)h(from)d -Fp(n)p Fr(.)0 5063 y(The)i(follo)m(wing)i(relations)f(hold:)180 -5340 y Fp(ldb)e(\(n,)h(b\))g(=)g(mask_field\(n,)d(b\))i(>>)h -(b.position)p Fr(,)p eop -%%Page: 29 31 -29 30 bop 0 -116 a Fr(Chapter)30 b(4:)41 b(F)-8 b(unctions)31 -b(on)f(n)m(um)m(b)s(ers)2463 b(29)180 366 y Fp(dpb)29 -b(\(newbyte,)f(n,)i(b\))g(=)g(deposit_field)d(\(newbyte)h(<<)h -(b.position,)f(n,)i(b\))p Fr(,)180 522 y Fp(deposit_field\(newbyte,n,)o -(b\))24 b(=)30 b(n)g(^)g(mask_field\(n,b\))c(^)31 b -(mask_field\(new_byte,b\))p Fr(.)0 832 y(The)36 b(follo)m(wing)i(op)s -(erations)f(on)g(in)m(tegers)h(as)f(bit)f(strings)h(are)g(e\016cien)m -(t)h(shortcuts)e(for)h(common)e(arithmetic)0 957 y(op)s(erations:)0 -1267 y Fp(cl_boolean)28 b(oddp)h(\(const)f(cl_I&)h(x\))480 -1392 y Fr(Returns)g(true)i(if)f(the)h(least)g(signi\014can)m(t)g(bit)g +Fp(cl_byte)p Fr(.)p eop +%%Page: 22 24 +22 23 bop -30 -116 a Fr(Chapter)30 b(4:)41 b(F)-8 b(unctions)31 +b(on)f(n)m(um)m(b)s(ers)2523 b(22)-30 299 y Fp(cl_I)29 +b(ldb)h(\(const)e(cl_I&)h(n,)h(const)f(cl_byte&)f(b\))450 +408 y Fr(extracts)k(the)e(bits)g(of)h Fp(n)f Fr(describ)s(ed)f(b)m(y)h +(the)h(bit)f(in)m(terv)-5 b(al)32 b Fp(b)e Fr(and)g(returns)f(them)g +(as)i(a)f(nonnegativ)m(e)450 518 y(in)m(teger)i(with)e +Fp(b.size)e Fr(bits.)-30 670 y Fp(cl_boolean)g(ldb_test)g(\(const)g +(cl_I&)h(n,)h(const)f(cl_byte&)f(b\))450 780 y Fr(Returns)h(true)i(if)f +(some)g(bit)g(describ)s(ed)f(b)m(y)i(the)f(bit)h(in)m(terv)-5 +b(al)31 b Fp(b)f Fr(is)h(set)g(in)f Fp(n)p Fr(.)-30 932 +y Fp(cl_I)f(dpb)h(\(const)e(cl_I&)h(newbyte,)f(const)h(cl_I&)g(n,)h +(const)f(cl_byte&)f(b\))450 1041 y Fr(Returns)j Fp(n)p +Fr(,)h(with)f(the)h(bits)f(describ)s(ed)g(b)m(y)g(the)h(bit)g(in)m +(terv)-5 b(al)32 b Fp(b)g Fr(replaced)g(b)m(y)f Fp(newbyte)p +Fr(.)43 b(Only)31 b(the)450 1151 y(lo)m(w)m(est)h Fp(b.size)d +Fr(bits)h(of)h Fp(newbyte)d Fr(are)j(relev)-5 b(an)m(t.)-30 +1303 y(The)33 b(functions)f Fp(ldb)h Fr(and)f Fp(dpb)g +Fr(implicitly)i(shift.)49 b(The)32 b(follo)m(wing)j(functions)e(are)g +(their)g(coun)m(terparts)h(without)-30 1412 y(shifting:)-30 +1564 y Fp(cl_I)29 b(mask_field)f(\(const)g(cl_I&)h(n,)h(const)f +(cl_byte&)f(b\))450 1674 y Fr(returns)35 b(an)g(in)m(teger)j(with)d +(the)h(bits)g(describ)s(ed)f(b)m(y)h(the)g(bit)g(in)m(terv)-5 +b(al)37 b Fp(b)e Fr(copied)i(from)d(the)i(corre-)450 +1784 y(sp)s(onding)29 b(bits)h(in)g Fp(n)p Fr(,)g(the)h(other)g(bits)f +(zero.)-30 1936 y Fp(cl_I)f(deposit_field)e(\(const)i(cl_I&)g(newbyte,) +f(const)h(cl_I&)g(n,)g(const)g(cl_byte&)f(b\))450 2045 +y Fr(returns)e(an)h(in)m(teger)h(where)f(the)g(bits)g(describ)s(ed)f(b) +m(y)h(the)h(bit)f(in)m(terv)-5 b(al)28 b Fp(b)f Fr(come)g(from)e +Fp(newbyte)h Fr(and)450 2155 y(the)31 b(other)f(bits)g(come)h(from)e +Fp(n)p Fr(.)-30 2307 y(The)h(follo)m(wing)i(relations)f(hold:)150 +2438 y Fp(ldb)e(\(n,)h(b\))g(=)g(mask_field\(n,)d(b\))i(>>)h +(b.position)p Fr(,)150 2568 y Fp(dpb)f(\(newbyte,)f(n,)i(b\))g(=)g +(deposit_field)d(\(newbyte)h(<<)h(b.position,)f(n,)i(b\))p +Fr(,)150 2699 y Fp(deposit_field\(newbyte,n,)o(b\))24 +b(=)30 b(n)g(^)g(mask_field\(n,b\))c(^)31 b(mask_field\(new_byte,b\))p +Fr(.)-30 2851 y(The)41 b(follo)m(wing)h(op)s(erations)g(on)f(in)m +(tegers)i(as)e(bit)h(strings)f(are)g(e\016cien)m(t)i(shortcuts)e(for)g +(common)f(arithmetic)-30 2961 y(op)s(erations:)-30 3113 +y Fp(cl_boolean)28 b(oddp)h(\(const)f(cl_I&)h(x\))450 +3222 y Fr(Returns)g(true)i(if)f(the)h(least)g(signi\014can)m(t)g(bit)g (of)f Fp(x)g Fr(is)h(1.)41 b(Equiv)-5 b(alen)m(t)31 b(to)g -Fp(mod\(x,2\))d(!=)i(0)p Fr(.)0 1578 y Fp(cl_boolean)e(evenp)h(\(const) -f(cl_I&)h(x\))480 1702 y Fr(Returns)g(true)i(if)f(the)h(least)g -(signi\014can)m(t)g(bit)g(of)f Fp(x)g Fr(is)h(0.)41 b(Equiv)-5 -b(alen)m(t)31 b(to)g Fp(mod\(x,2\))d(==)i(0)p Fr(.)0 -1888 y Fp(cl_I)f(operator)f(<<)i(\(const)f(cl_I&)g(x,)g(const)g(cl_I&)g -(n\))480 2013 y Fr(Shifts)h Fp(x)g Fr(b)m(y)g Fp(n)g -Fr(bits)g(to)h(the)g(left.)41 b Fp(n)30 b Fr(should)g(b)s(e)f +Fp(mod\(x,2\))d(!=)i(0)p Fr(.)-30 3374 y Fp(cl_boolean)e(evenp)h +(\(const)f(cl_I&)h(x\))450 3484 y Fr(Returns)g(true)i(if)f(the)h(least) +g(signi\014can)m(t)g(bit)g(of)f Fp(x)g Fr(is)h(0.)41 +b(Equiv)-5 b(alen)m(t)31 b(to)g Fp(mod\(x,2\))d(==)i(0)p +Fr(.)-30 3636 y Fp(cl_I)f(operator)f(<<)i(\(const)f(cl_I&)g(x,)g(const) +g(cl_I&)g(n\))450 3746 y Fr(Shifts)h Fp(x)g Fr(b)m(y)g +Fp(n)g Fr(bits)g(to)h(the)g(left.)41 b Fp(n)30 b Fr(should)g(b)s(e)f Fp(>)p Fr(=0.)41 b(Equiv)-5 b(alen)m(t)31 b(to)g Fp(x)f(*)g -(expt\(2,n\))p Fr(.)0 2199 y Fp(cl_I)f(operator)f(>>)i(\(const)f(cl_I&) -g(x,)g(const)g(cl_I&)g(n\))480 2323 y Fr(Shifts)24 b -Fp(x)g Fr(b)m(y)g Fp(n)g Fr(bits)g(to)h(the)g(righ)m(t.)39 -b Fp(n)24 b Fr(should)f(b)s(e)h Fp(>)p Fr(=0.)39 b(Bits)25 -b(shifted)f(out)g(to)h(the)g(righ)m(t)g(are)f(thro)m(wn)480 -2448 y(a)m(w)m(a)m(y)-8 b(.)43 b(Equiv)-5 b(alen)m(t)31 -b(to)g Fp(floor\(x)e(/)h(expt\(2,n\)\))p Fr(.)0 2634 -y Fp(cl_I)f(ash)h(\(const)e(cl_I&)h(x,)h(const)f(cl_I&)g(y\))480 -2759 y Fr(Shifts)34 b Fp(x)h Fr(b)m(y)g Fp(y)f Fr(bits)h(to)h(the)f -(left)h(\(if)f Fp(y>)p Fr(=0\))g(or)g(b)m(y)g Fp(-y)f -Fr(bits)h(to)h(the)f(righ)m(t)h(\(if)f Fp(y<)p Fr(=0\).)54 -b(In)35 b(other)480 2883 y(w)m(ords,)30 b(this)g(returns)g -Fp(floor\(x)e(*)i(expt\(2,y\)\))p Fr(.)0 3069 y Fp(uintL)f -(integer_length)d(\(const)j(cl_I&)g(x\))480 3194 y Fr(Returns)40 -b(the)h(n)m(um)m(b)s(er)e(of)j(bits)f(\(excluding)g(the)h(sign)f(bit\)) -g(needed)g(to)h(represen)m(t)f Fp(x)g Fr(in)f(t)m(w)m(o's)480 -3318 y(complemen)m(t)28 b(notation.)41 b(This)27 b(is)i(the)f(smallest) -h(n)f Fp(>)p Fr(=)f(0)i(suc)m(h)f(that)h(-2)p Fp(^)p -Fr(n)f Fp(<)p Fr(=)g(x)g Fp(<)g Fr(2)p Fp(^)p Fr(n.)40 -b(If)28 b(x)g Fp(>)g Fr(0,)480 3443 y(this)i(is)h(the)f(unique)g(n)g +(expt\(2,n\))p Fr(.)-30 3898 y Fp(cl_I)f(operator)f(>>)i(\(const)f +(cl_I&)g(x,)g(const)g(cl_I&)g(n\))450 4007 y Fr(Shifts)e +Fp(x)g Fr(b)m(y)h Fp(n)f Fr(bits)h(to)g(the)g(righ)m(t.)41 +b Fp(n)27 b Fr(should)g(b)s(e)g Fp(>)p Fr(=0.)40 b(Bits)28 +b(shifted)g(out)g(to)g(the)g(righ)m(t)g(are)g(thro)m(wn)450 +4117 y(a)m(w)m(a)m(y)-8 b(.)43 b(Equiv)-5 b(alen)m(t)31 +b(to)g Fp(floor\(x)e(/)h(expt\(2,n\)\))p Fr(.)-30 4269 +y Fp(cl_I)f(ash)h(\(const)e(cl_I&)h(x,)h(const)f(cl_I&)g(y\))450 +4378 y Fr(Shifts)37 b Fp(x)g Fr(b)m(y)h Fp(y)f Fr(bits)h(to)g(the)g +(left)h(\(if)f Fp(y>)p Fr(=0\))f(or)h(b)m(y)g Fp(-y)f +Fr(bits)g(to)i(the)f(righ)m(t)g(\(if)g Fp(y<)p Fr(=0\).)63 +b(In)37 b(other)450 4488 y(w)m(ords,)30 b(this)g(returns)g +Fp(floor\(x)e(*)i(expt\(2,y\)\))p Fr(.)-30 4640 y Fp(uintL)f +(integer_length)d(\(const)j(cl_I&)g(x\))450 4750 y Fr(Returns)44 +b(the)i(n)m(um)m(b)s(er)d(of)j(bits)f(\(excluding)h(the)g(sign)f(bit\)) +h(needed)f(to)h(represen)m(t)f Fp(x)g Fr(in)g(t)m(w)m(o's)450 +4859 y(complemen)m(t)31 b(notation.)45 b(This)30 b(is)i(the)g(smallest) +f(n)g Fp(>)p Fr(=)g(0)h(suc)m(h)f(that)h(-2)p Fp(^)p +Fr(n)f Fp(<)p Fr(=)g(x)g Fp(<)g Fr(2)p Fp(^)p Fr(n.)44 +b(If)31 b(x)g Fp(>)g Fr(0,)450 4969 y(this)f(is)h(the)f(unique)g(n)g Fp(>)g Fr(0)g(suc)m(h)g(that)h(2)p Fp(^)p Fr(\(n-1\))h -Fp(<)p Fr(=)e(x)g Fp(<)g Fr(2)p Fp(^)p Fr(n.)0 3629 y -Fp(uintL)f(ord2)g(\(const)g(cl_I&)g(x\))480 3753 y(x)36 -b Fr(m)m(ust)g(b)s(e)g(non-zero.)61 b(This)36 b(function)g(returns)g -(the)h(n)m(um)m(b)s(er)d(of)j(0)g(bits)g(at)h(the)f(righ)m(t)g(of)g -Fp(x)f Fr(in)480 3878 y(t)m(w)m(o's)c(complemen)m(t)d(notation.)42 -b(This)30 b(is)g(the)h(largest)h(n)d Fp(>)p Fr(=)h(0)h(suc)m(h)f(that)h -(2)p Fp(^)p Fr(n)f(divides)g Fp(x)p Fr(.)0 4064 y Fp(uintL)f(power2p)f -(\(const)h(cl_I&)g(x\))480 4188 y(x)24 b Fr(m)m(ust)g(b)s(e)g -Fp(>)g Fr(0.)40 b(This)23 b(function)i(c)m(hec)m(ks)h(whether)e -Fp(x)g Fr(is)h(a)g(p)s(o)m(w)m(er)g(of)g(2.)39 b(If)24 -b Fp(x)g Fr(=)h(2)p Fp(^)p Fr(\(n-1\),)i(it)e(returns)480 -4313 y(n.)40 b(Else)31 b(it)g(returns)e(0.)41 b(\(See)31 -b(also)g(the)g(function)f Fp(logp)p Fr(.\))0 4780 y Fm(4.9.2)63 -b(Num)m(b)s(er)30 b(theoretic)g(functions)0 5091 y Fp(uint32)f(gcd)g -(\(uint32)g(a,)g(uint32)g(b\))0 5215 y(cl_I)g(gcd)h(\(const)e(cl_I&)h -(a,)h(const)f(cl_I&)g(b\))480 5340 y Fr(This)h(function)g(returns)f -(the)h(greatest)j(common)28 b(divisor)i(of)h Fp(a)f Fr(and)g -Fp(b)p Fr(,)g(normalized)g(to)h(b)s(e)f Fp(>)p Fr(=)f(0.)p -eop -%%Page: 30 32 -30 31 bop 0 -116 a Fr(Chapter)30 b(4:)41 b(F)-8 b(unctions)31 -b(on)f(n)m(um)m(b)s(ers)2463 b(30)0 366 y Fp(cl_I)29 -b(xgcd)g(\(const)g(cl_I&)g(a,)h(const)f(cl_I&)g(b,)g(cl_I*)g(u,)h -(cl_I*)f(v\))480 491 y Fr(This)h(function)h(\(\\extended)g(gcd"\))h -(returns)e(the)h(greatest)h(common)d(divisor)i Fp(g)f -Fr(of)h Fp(a)g Fr(and)f Fp(b)h Fr(and)480 616 y(at)39 -b(the)f(same)g(time)g(the)g(represen)m(tation)i(of)e -Fp(g)g Fr(as)g(an)g(in)m(tegral)i(linear)f(com)m(bination)f(of)h -Fp(a)f Fr(and)480 740 y Fp(b)p Fr(:)53 b Fp(u)36 b Fr(and)g -Fp(v)g Fr(with)h Fp(u*a+v*b)28 b(=)i(g)p Fr(,)38 b Fp(g)e(>)p -Fr(=)g(0.)60 b Fp(u)36 b Fr(and)g Fp(v)h Fr(will)g(b)s(e)f(normalized)g -(to)h(b)s(e)f(of)h(smallest)480 865 y(p)s(ossible)g(absolute)h(v)-5 -b(alue,)40 b(in)e(the)f(follo)m(wing)i(sense:)55 b(If)37 -b Fp(a)h Fr(and)e Fp(b)i Fr(are)g(non-zero,)i(and)d Fp(abs\(a\))480 -989 y(!=)30 b(abs\(b\))p Fr(,)35 b Fp(u)g Fr(and)f Fp(v)h -Fr(will)h(satisfy)g(the)f(inequalities)i Fp(abs\(u\))29 -b(<=)g(abs\(b\)/\(2*g\))p Fr(,)34 b Fp(abs\(v\))29 b(<=)480 -1114 y(abs\(a\)/\(2*g\))p Fr(.)0 1275 y Fp(cl_I)g(lcm)h(\(const)e -(cl_I&)h(a,)h(const)f(cl_I&)g(b\))480 1400 y Fr(This)h(function)g -(returns)f(the)h(least)i(common)d(m)m(ultiple)h(of)g -Fp(a)g Fr(and)g Fp(b)p Fr(,)g(normalized)g(to)h(b)s(e)f -Fp(>)p Fr(=)g(0.)0 1562 y Fp(cl_boolean)e(logp)h(\(const)f(cl_I&)h(a,)h -(const)f(cl_I&)g(b,)h(cl_RA*)e(l\))0 1686 y(cl_boolean)g(logp)h -(\(const)f(cl_RA&)h(a,)h(const)f(cl_RA&)f(b,)i(cl_RA*)f(l\))480 -1811 y(a)35 b Fr(m)m(ust)g(b)s(e)g Fp(>)h Fr(0.)57 b -Fp(b)36 b Fr(m)m(ust)e(b)s(e)h Fp(>)p Fr(0)h(and)f(!=)h(1.)57 -b(If)36 b(log\(a,b\))i(is)d(rational)i(n)m(um)m(b)s(er,)f(this)f -(function)480 1935 y(returns)29 b(true)h(and)g(sets)h(*l)g(=)f -(log\(a,b\),)j(else)e(it)g(returns)e(false.)0 2325 y -Fm(4.9.3)63 b(Com)m(binatorial)29 b(functions)0 2618 -y Fp(cl_I)g(factorial)f(\(uintL)h(n\))480 2742 y(n)h -Fr(m)m(ust)f(b)s(e)h(a)h(small)f(in)m(teger)h Fp(>)p -Fr(=)f(0.)41 b(This)30 b(function)g(returns)f(the)i(factorial)h -Fp(n)p Fr(!)40 b(=)30 b Fp(1*2*)p Fn(:)15 b(:)g(:)p Fp(*n)p -Fr(.)0 2904 y Fp(cl_I)29 b(doublefactorial)d(\(uintL)j(n\))480 -3028 y(n)44 b Fr(m)m(ust)g(b)s(e)g(a)h(small)f(in)m(teger)i -Fp(>)p Fr(=)e(0.)84 b(This)43 b(function)i(returns)e(the)i -(doublefactorial)h Fp(n)p Fr(!!)83 b(=)480 3153 y Fp(1*3*)p -Fn(:)15 b(:)g(:)p Fp(*n)30 b Fr(or)g Fp(n)p Fr(!!)41 -b(=)30 b Fp(2*4*)p Fn(:)15 b(:)g(:)p Fp(*n)p Fr(,)30 -b(resp)s(ectiv)m(ely)-8 b(.)0 3315 y Fp(cl_I)29 b(binomial)f(\(uintL)h -(n,)h(uintL)f(k\))480 3439 y(n)36 b Fr(and)h Fp(k)f Fr(m)m(ust)g(b)s(e) -g(small)g(in)m(tegers)i Fp(>)p Fr(=)e(0.)60 b(This)36 -b(function)h(returns)e(the)i(binomial)f(co)s(e\016cien)m(t)480 -3494 y Fj(\000)518 3523 y Fi(n)520 3595 y(k)559 3494 -y Fj(\001)622 3564 y Fr(=)828 3528 y Fi(n)p Fh(!)p 728 -3543 261 4 v 728 3595 a Fi(n)p Fh(!\()p Fi(n)p Fg(\000)p -Fi(k)q Fh(\)!)1029 3564 y Fr(for)30 b(0)h Fp(<)p Fr(=)e(k)i -Fp(<)p Fr(=)e(n,)h(0)h(else.)0 4001 y Fs(4.10)68 b(F)-11 -b(unctions)30 b(on)g(\015oating-p)t(oin)l(t)i(n)l(um)l(b)t(ers)0 -4275 y Fr(Recall)27 b(that)g(a)f(\015oating-p)s(oin)m(t)h(n)m(um)m(b)s -(er)d(consists)i(of)g(a)g(sign)g Fp(s)p Fr(,)g(an)g(exp)s(onen)m(t)g -Fp(e)f Fr(and)g(a)i(man)m(tissa)e Fp(m)p Fr(.)39 b(The)25 -b(v)-5 b(alue)0 4400 y(of)31 b(the)f(n)m(um)m(b)s(er)e(is)j -Fp(\(-1\)^s)d(*)i(2^e)g(*)g(m)p Fr(.)0 4674 y(Eac)m(h)h(of)g(the)f -(classes)i Fp(cl_F)p Fr(,)d Fp(cl_SF)p Fr(,)g Fp(cl_FF)p -Fr(,)g Fp(cl_DF)p Fr(,)h Fp(cl_LF)e Fr(de\014nes)i(the)h(follo)m(wing)g -(op)s(erations.)0 4966 y Fk(t)m(yp)s(e)36 b Fp(scale_float)27 -b(\(const)i Fk(t)m(yp)s(e)5 b Fp(&)30 b(x,)g(sintL)f(delta\))0 -5091 y Fk(t)m(yp)s(e)36 b Fp(scale_float)27 b(\(const)i -Fk(t)m(yp)s(e)5 b Fp(&)30 b(x,)g(const)f(cl_I&)g(delta\))480 -5215 y Fr(Returns)35 b Fp(x*2^delta)p Fr(.)57 b(This)35 -b(is)h(more)g(e\016cien)m(t)i(than)e(an)g(explicit)i(m)m(ultiplication) -f(b)s(ecause)f(it)480 5340 y(copies)31 b Fp(x)f Fr(and)g(mo)s(di\014es) -f(the)h(exp)s(onen)m(t.)p eop -%%Page: 31 33 -31 32 bop 0 -116 a Fr(Chapter)30 b(4:)41 b(F)-8 b(unctions)31 -b(on)f(n)m(um)m(b)s(ers)2463 b(31)0 366 y(The)31 b(follo)m(wing)j -(functions)d(pro)m(vide)h(an)g(abstract)h(in)m(terface)g(to)g(the)f -(underlying)f(represen)m(tation)i(of)f(\015oating-)0 -491 y(p)s(oin)m(t)e(n)m(um)m(b)s(ers.)0 792 y Fp(sintL)f -(float_exponent)d(\(const)j Fk(t)m(yp)s(e)5 b Fp(&)30 -b(x\))480 916 y Fr(Returns)g(the)h(exp)s(onen)m(t)g Fp(e)f -Fr(of)h Fp(x)p Fr(.)41 b(F)-8 b(or)32 b Fp(x)e(=)g(0.0)p -Fr(,)g(this)h(is)g(0.)42 b(F)-8 b(or)31 b Fp(x)g Fr(non-zero,)g(this)g -(is)g(the)g(unique)480 1041 y(in)m(teger)h(with)e Fp(2^\(e-1\))e(<=)i -(abs\(x\))f(<)h(2^e)p Fr(.)0 1217 y Fp(sintL)f(float_radix)e(\(const)i -Fk(t)m(yp)s(e)5 b Fp(&)30 b(x\))480 1341 y Fr(Returns)f(the)i(base)g -(of)f(the)h(\015oating-p)s(oin)m(t)g(represen)m(tation.)42 -b(This)30 b(is)g(alw)m(a)m(ys)i Fp(2)p Fr(.)0 1518 y -Fk(t)m(yp)s(e)k Fp(float_sign)27 b(\(const)i Fk(t)m(yp)s(e)5 -b Fp(&)30 b(x\))480 1642 y Fr(Returns)f(the)i(sign)f +Fp(<)p Fr(=)e(x)g Fp(<)g Fr(2)p Fp(^)p Fr(n.)-30 5121 +y Fp(uintL)f(ord2)g(\(const)g(cl_I&)g(x\))450 5230 y(x)e +Fr(m)m(ust)f(b)s(e)h(non-zero.)40 b(This)27 b(function)g(returns)f(the) +i(n)m(um)m(b)s(er)d(of)j(0)g(bits)f(at)h(the)g(righ)m(t)g(of)f +Fp(x)g Fr(in)g(t)m(w)m(o's)450 5340 y(complemen)m(t)j(notation.)42 +b(This)29 b(is)i(the)f(largest)i(n)e Fp(>)p Fr(=)f(0)i(suc)m(h)f(that)h +(2)p Fp(^)p Fr(n)f(divides)g Fp(x)p Fr(.)p eop +%%Page: 23 25 +23 24 bop -30 -116 a Fr(Chapter)30 b(4:)41 b(F)-8 b(unctions)31 +b(on)f(n)m(um)m(b)s(ers)2523 b(23)-30 299 y Fp(uintL)29 +b(power2p)f(\(const)h(cl_I&)g(x\))450 408 y(x)f Fr(m)m(ust)e(b)s(e)i +Fp(>)f Fr(0.)41 b(This)27 b(function)g(c)m(hec)m(ks)j(whether)d +Fp(x)h Fr(is)g(a)g(p)s(o)m(w)m(er)g(of)g(2.)40 b(If)28 +b Fp(x)f Fr(=)h(2)p Fp(^)p Fr(\(n-1\),)i(it)e(returns)450 +518 y(n.)40 b(Else)31 b(it)g(returns)e(0.)41 b(\(See)31 +b(also)g(the)g(function)f Fp(logp)p Fr(.\))-30 736 y +Fn(4.9.2)63 b(Num)m(b)s(er)40 b(theoretic)h(functions)-30 +949 y Fp(uint32)29 b(gcd)g(\(uint32)g(a,)g(uint32)g(b\))-30 +1058 y(cl_I)g(gcd)h(\(const)e(cl_I&)h(a,)h(const)f(cl_I&)g(b\))450 +1168 y Fr(This)h(function)g(returns)f(the)h(greatest)j(common)28 +b(divisor)i(of)h Fp(a)f Fr(and)g Fp(b)p Fr(,)g(normalized)g(to)h(b)s(e) +f Fp(>)p Fr(=)f(0.)-30 1323 y Fp(cl_I)g(xgcd)g(\(const)g(cl_I&)g(a,)h +(const)f(cl_I&)g(b,)g(cl_I*)g(u,)h(cl_I*)f(v\))450 1433 +y Fr(This)34 b(function)h(\(\\extended)h(gcd"\))g(returns)e(the)h +(greatest)i(common)d(divisor)h Fp(g)f Fr(of)i Fp(a)e +Fr(and)h Fp(b)g Fr(and)450 1542 y(at)30 b(the)g(same)f(time)g(the)h +(represen)m(tation)g(of)g Fp(g)f Fr(as)h(an)g(in)m(tegral)h(linear)f +(com)m(bination)g(of)f Fp(a)g Fr(and)g Fp(b)p Fr(:)40 +b Fp(u)450 1652 y Fr(and)32 b Fp(v)g Fr(with)g Fp(u*a+v*b)d(=)h(g)p +Fr(,)j Fp(g)f(>)p Fr(=)g(0.)48 b Fp(u)32 b Fr(and)g Fp(v)g +Fr(will)h(b)s(e)f(normalized)g(to)h(b)s(e)f(of)h(smallest)f(p)s +(ossible)450 1761 y(absolute)d(v)-5 b(alue,)29 b(in)e(the)h(follo)m +(wing)h(sense:)40 b(If)27 b Fp(a)h Fr(and)f Fp(b)g Fr(are)i(non-zero,)g +(and)e Fp(abs\(a\))i(!=)g(abs\(b\))p Fr(,)e Fp(u)450 +1871 y Fr(and)j Fp(v)g Fr(will)h(satisfy)f(the)h(inequalities)h +Fp(abs\(u\))c(<=)i(abs\(b\)/\(2*g\))p Fr(,)d Fp(abs\(v\))i(<=)h +(abs\(a\)/\(2*g\))p Fr(.)-30 2026 y Fp(cl_I)f(lcm)h(\(const)e(cl_I&)h +(a,)h(const)f(cl_I&)g(b\))450 2136 y Fr(This)h(function)g(returns)f +(the)h(least)i(common)d(m)m(ultiple)h(of)g Fp(a)g Fr(and)g +Fp(b)p Fr(,)g(normalized)g(to)h(b)s(e)f Fp(>)p Fr(=)g(0.)-30 +2291 y Fp(cl_boolean)e(logp)h(\(const)f(cl_I&)h(a,)h(const)f(cl_I&)g +(b,)h(cl_RA*)e(l\))-30 2400 y(cl_boolean)g(logp)h(\(const)f(cl_RA&)h +(a,)h(const)f(cl_RA&)f(b,)i(cl_RA*)f(l\))450 2510 y(a)38 +b Fr(m)m(ust)g(b)s(e)f Fp(>)i Fr(0.)65 b Fp(b)38 b Fr(m)m(ust)f(b)s(e)h +Fp(>)p Fr(0)h(and)f(!=)g(1.)66 b(If)38 b(log\(a,b\))i(is)f(rational)g +(n)m(um)m(b)s(er,)g(this)f(function)450 2619 y(returns)29 +b(true)h(and)g(sets)h(*l)g(=)f(log\(a,b\),)j(else)e(it)g(returns)e +(false.)-30 2837 y Fn(4.9.3)63 b(Com)m(binatorial)40 +b(functions)-30 3050 y Fp(cl_I)29 b(factorial)f(\(uintL)h(n\))450 +3160 y(n)h Fr(m)m(ust)f(b)s(e)h(a)h(small)f(in)m(teger)h +Fp(>)p Fr(=)f(0.)41 b(This)30 b(function)g(returns)f(the)i(factorial)h +Fp(n)p Fr(!)40 b(=)30 b Fp(1*2*...)n(*n)p Fr(.)-30 3315 +y Fp(cl_I)f(doublefactorial)d(\(uintL)j(n\))450 3425 +y(n)48 b Fr(m)m(ust)e(b)s(e)i(a)g(small)f(in)m(teger)j +Fp(>)p Fr(=)d(0.)94 b(This)47 b(function)h(returns)e(the)i +(doublefactorial)i Fp(n)p Fr(!!)93 b(=)450 3534 y Fp(1*3*...)n(*n)30 +b Fr(or)g Fp(n)p Fr(!!)41 b(=)30 b Fp(2*4*...)n(*n)p +Fr(,)g(resp)s(ectiv)m(ely)-8 b(.)-30 3689 y Fp(cl_I)29 +b(binomial)f(\(uintL)h(n,)h(uintL)f(k\))450 3799 y(n)40 +b Fr(and)g Fp(k)g Fr(m)m(ust)g(b)s(e)f(small)h(in)m(tegers)i +Fp(>)p Fr(=)e(0.)71 b(This)40 b(function)g(returns)g(the)g(binomial)g +(co)s(e\016cien)m(t)450 3839 y Fk(\000)488 3868 y Fj(n)490 +3940 y(k)529 3839 y Fk(\001)592 3908 y Fr(=)798 3873 +y Fj(n)p Fi(!)p 698 3888 261 4 v 698 3940 a Fj(n)p Fi(!\()p +Fj(n)p Fh(\000)p Fj(k)q Fi(\)!)999 3908 y Fr(for)30 b(0)h +Fp(<)p Fr(=)e(k)i Fp(<)p Fr(=)e(n,)h(0)h(else.)-30 4159 +y Fs(4.10)68 b(F)-11 b(unctions)44 b(on)h(\015oating-p)t(oin)l(t)h(n)l +(um)l(b)t(ers)-30 4350 y Fr(Recall)31 b(that)f(a)f(\015oating-p)s(oin)m +(t)i(n)m(um)m(b)s(er)c(consists)j(of)f(a)h(sign)f Fp(s)p +Fr(,)h(an)f(exp)s(onen)m(t)g Fp(e)g Fr(and)g(a)g(man)m(tissa)h +Fp(m)p Fr(.)40 b(The)28 b(v)-5 b(alue)-30 4459 y(of)31 +b(the)f(n)m(um)m(b)s(er)e(is)j Fp(\(-1\)^s)d(*)i(2^e)g(*)g(m)p +Fr(.)-30 4592 y(Eac)m(h)h(of)g(the)f(classes)i Fp(cl_F)p +Fr(,)d Fp(cl_SF)p Fr(,)g Fp(cl_FF)p Fr(,)g Fp(cl_DF)p +Fr(,)h Fp(cl_LF)e Fr(de\014nes)i(the)h(follo)m(wing)g(op)s(erations.) +-30 4747 y Fl(t)m(yp)s(e)36 b Fp(scale_float)27 b(\(const)i +Fl(t)m(yp)s(e)5 b Fp(&)30 b(x,)g(sintL)f(delta\))-30 +4856 y Fl(t)m(yp)s(e)36 b Fp(scale_float)27 b(\(const)i +Fl(t)m(yp)s(e)5 b Fp(&)30 b(x,)g(const)f(cl_I&)g(delta\))450 +4966 y Fr(Returns)40 b Fp(x*2^delta)p Fr(.)70 b(This)40 +b(is)h(more)f(e\016cien)m(t)j(than)d(an)h(explicit)i(m)m(ultiplication) +e(b)s(ecause)g(it)450 5075 y(copies)31 b Fp(x)f Fr(and)g(mo)s(di\014es) +f(the)h(exp)s(onen)m(t.)-30 5230 y(The)36 b(follo)m(wing)j(functions)d +(pro)m(vide)h(an)g(abstract)h(in)m(terface)g(to)g(the)f(underlying)f +(represen)m(tation)i(of)f(\015oating-)-30 5340 y(p)s(oin)m(t)30 +b(n)m(um)m(b)s(ers.)p eop +%%Page: 24 26 +24 25 bop -30 -116 a Fr(Chapter)30 b(4:)41 b(F)-8 b(unctions)31 +b(on)f(n)m(um)m(b)s(ers)2523 b(24)-30 299 y Fp(sintL)29 +b(float_exponent)d(\(const)j Fl(t)m(yp)s(e)5 b Fp(&)30 +b(x\))450 408 y Fr(Returns)j(the)g(exp)s(onen)m(t)h Fp(e)f +Fr(of)h Fp(x)p Fr(.)50 b(F)-8 b(or)34 b Fp(x)c(=)g(0.0)p +Fr(,)k(this)f(is)h(0.)50 b(F)-8 b(or)35 b Fp(x)e Fr(non-zero,)i(this)f +(is)f(the)h(unique)450 518 y(in)m(teger)e(with)e Fp(2^\(e-1\))e(<=)i +(abs\(x\))f(<)h(2^e)p Fr(.)-30 692 y Fp(sintL)f(float_radix)e(\(const)i +Fl(t)m(yp)s(e)5 b Fp(&)30 b(x\))450 802 y Fr(Returns)f(the)i(base)g(of) +f(the)h(\015oating-p)s(oin)m(t)g(represen)m(tation.)42 +b(This)30 b(is)g(alw)m(a)m(ys)i Fp(2)p Fr(.)-30 976 y +Fl(t)m(yp)s(e)k Fp(float_sign)27 b(\(const)i Fl(t)m(yp)s(e)5 +b Fp(&)30 b(x\))450 1086 y Fr(Returns)f(the)i(sign)f Fp(s)g Fr(of)h Fp(x)f Fr(as)h(a)f(\015oat.)42 b(The)30 b(v)-5 b(alue)31 b(is)f(1)h(for)f Fp(x)g(>)p Fr(=)g(0,)h(-1)g(for)f -Fp(x)g(<)g Fr(0.)0 1818 y Fp(uintL)f(float_digits)e(\(const)i -Fk(t)m(yp)s(e)5 b Fp(&)30 b(x\))480 1943 y Fr(Returns)24 -b(the)h(n)m(um)m(b)s(er)e(of)i(man)m(tissa)g(bits)f(in)h(the)g -(\015oating-p)s(oin)m(t)h(represen)m(tation)g(of)f Fp(x)p -Fr(,)h(including)480 2067 y(the)31 b(hidden)e(bit.)40 -b(The)30 b(v)-5 b(alue)31 b(only)g(dep)s(ends)d(on)i(the)h(t)m(yp)s(e)f -(of)h Fp(x)p Fr(,)f(not)h(on)f(its)h(v)-5 b(alue.)0 2243 -y Fp(uintL)29 b(float_precision)d(\(const)j Fk(t)m(yp)s(e)5 -b Fp(&)30 b(x\))480 2368 y Fr(Returns)21 b(the)h(n)m(um)m(b)s(er)d(of)j +Fp(x)g(<)g Fr(0.)-30 1260 y Fp(uintL)f(float_digits)e(\(const)i +Fl(t)m(yp)s(e)5 b Fp(&)30 b(x\))450 1370 y Fr(Returns)f(the)h(n)m(um)m +(b)s(er)e(of)i(man)m(tissa)g(bits)g(in)g(the)g(\015oating-p)s(oin)m(t)h +(represen)m(tation)g(of)f Fp(x)p Fr(,)g(including)450 +1479 y(the)h(hidden)e(bit.)40 b(The)30 b(v)-5 b(alue)31 +b(only)g(dep)s(ends)d(on)i(the)h(t)m(yp)s(e)f(of)h Fp(x)p +Fr(,)f(not)h(on)f(its)h(v)-5 b(alue.)-30 1654 y Fp(uintL)29 +b(float_precision)d(\(const)j Fl(t)m(yp)s(e)5 b Fp(&)30 +b(x\))450 1763 y Fr(Returns)c(the)h(n)m(um)m(b)s(er)d(of)j (signi\014can)m(t)h(man)m(tissa)f(bits)g(in)f(the)h(\015oating-p)s(oin) -m(t)h(represen)m(tation)g(of)f Fp(x)p Fr(.)480 2493 y(Since)32 -b(denormalized)f(n)m(um)m(b)s(ers)e(are)j(not)f(supp)s(orted,)g(this)g -(is)h(the)f(same)g(as)h Fp(float_digits\(x\))480 2617 -y Fr(if)e Fp(x)g Fr(is)h(non-zero,)g(and)f(0)g(if)h Fp(x)f -Fr(=)g(0.)0 2918 y(The)h(complete)h(in)m(ternal)h(represen)m(tation)g -(of)f(a)g(\015oat)g(is)g(enco)s(ded)f(in)h(the)g(t)m(yp)s(e)f -Fp(cl_decoded_float)d Fr(\(or)k Fp(cl_)0 3042 y(decoded_sfloat)p -Fr(,)39 b Fp(cl_decoded_ffloat)p Fr(,)f Fp(cl_decoded_dfloat)p -Fr(,)h Fp(cl_decoded_lfloat)p Fr(,)f(resp)s(ectiv)m(ely\),)0 -3167 y(de\014ned)29 b(b)m(y)240 3421 y Fp(struct)46 b(cl_decoded_)p -Fk(t)m(yp)s(e)5 b Fp(float)44 b({)622 3525 y Fk(t)m(yp)s(e)53 -b Fp(mantissa;)45 b(cl_I)i(exponent;)e Fk(t)m(yp)s(e)53 -b Fp(sign;)240 3628 y(};)0 3903 y Fr(and)30 b(returned)f(b)m(y)h(the)h -(function)0 4204 y Fp(cl_decoded_)p Fk(t)m(yp)s(e)5 b -Fp(float)26 b(decode_float)h(\(const)i Fk(t)m(yp)s(e)5 -b Fp(&)30 b(x\))480 4329 y Fr(F)-8 b(or)38 b Fp(x)f Fr(non-zero,)j -(this)d(returns)f Fp(\(-1\)^s)p Fr(,)h Fp(e)p Fr(,)i -Fp(m)e Fr(with)g Fp(x)30 b(=)g(\(-1\)^s)f(*)h(2^e)f(*)h(m)37 -b Fr(and)g Fp(0.5)29 b(<=)h(m)g(<)480 4453 y(1.0)p Fr(.)63 -b(F)-8 b(or)39 b Fp(x)f Fr(=)g(0,)i(it)f(returns)e Fp(\(-1\)^s)p -Fr(=1,)i Fp(e)p Fr(=0,)h Fp(m)p Fr(=0.)64 b Fp(e)37 b -Fr(is)i(the)f(same)f(as)i(returned)e(b)m(y)h(the)480 -4578 y(function)30 b Fp(float_exponent)p Fr(.)0 4878 -y(A)g(complete)h(deco)s(ding)g(in)f(terms)f(of)i(in)m(tegers)g(is)g -(pro)m(vided)f(as)g(t)m(yp)s(e)240 5132 y Fp(struct)46 -b(cl_idecoded_float)d({)622 5236 y(cl_I)j(mantissa;)g(cl_I)g(exponent;) -g(cl_I)g(sign;)240 5340 y(};)p eop -%%Page: 32 34 -32 33 bop 0 -116 a Fr(Chapter)30 b(4:)41 b(F)-8 b(unctions)31 -b(on)f(n)m(um)m(b)s(ers)2463 b(32)0 366 y(b)m(y)30 b(the)h(follo)m -(wing)h(function:)0 670 y Fp(cl_idecoded_float)26 b -(integer_decode_float)e(\(const)29 b Fk(t)m(yp)s(e)5 -b Fp(&)31 b(x\))480 794 y Fr(F)-8 b(or)33 b Fp(x)g Fr(non-zero,)h(this) -e(returns)g Fp(\(-1\)^s)p Fr(,)f Fp(e)p Fr(,)j Fp(m)e -Fr(with)g Fp(x)e(=)g(\(-1\)^s)f(*)h(2^e)f(*)h(m)j Fr(and)f -Fp(m)g Fr(an)h(in)m(teger)480 919 y(with)e Fp(float_digits\(x\))c -Fr(bits.)43 b(F)-8 b(or)32 b Fp(x)f Fr(=)g(0,)h(it)g(returns)e -Fp(\(-1\)^s)p Fr(=1,)g Fp(e)p Fr(=0,)i Fp(m)p Fr(=0.)43 -b(W)-10 b(ARNING:)480 1043 y(The)35 b(exp)s(onen)m(t)h -Fp(e)f Fr(is)h(not)g(the)g(same)f(as)h(the)g(one)g(returned)f(b)m(y)g -(the)h(functions)f Fp(decode_float)480 1168 y Fr(and)30 -b Fp(float_exponent)p Fr(.)0 1471 y(Some)f(other)i(function,)f -(implemen)m(ted)f(only)i(for)f(class)h Fp(cl_F)p Fr(:)0 -1774 y Fp(cl_F)e(float_sign)f(\(const)g(cl_F&)h(x,)h(const)f(cl_F&)g -(y\))480 1899 y Fr(This)34 b(returns)g(a)i(\015oating)g(p)s(oin)m(t)f -(n)m(um)m(b)s(er)e(whose)i(precision)h(and)e(absolute)i(v)-5 -b(alue)36 b(is)f(that)h(of)f Fp(y)480 2023 y Fr(and)30 -b(whose)g(sign)g(is)h(that)g(of)f Fp(x)p Fr(.)41 b(If)30 -b Fp(x)g Fr(is)g(zero,)h(it)g(is)g(treated)g(as)g(p)s(ositiv)m(e.)41 -b(Same)30 b(for)g Fp(y)p Fr(.)0 2491 y Fs(4.11)68 b(Con)l(v)l(ersion)32 -b(functions)0 2925 y Fm(4.11.1)63 b(Con)m(v)m(ersion)31 -b(to)f(\015oating-p)s(oin)m(t)h(n)m(um)m(b)s(ers)0 3201 -y Fr(The)f(t)m(yp)s(e)g Fp(cl_float_format_t)c Fr(describ)s(es)k(a)g -(\015oating-p)s(oin)m(t)i(format.)0 3505 y Fp(cl_float_format_t)26 -b(cl_float_format)g(\(uintL)j(n\))480 3629 y Fr(Returns)40 -b(the)h(smallest)g(\015oat)h(format)e(whic)m(h)h(guaran)m(tees)h(at)g -(least)g Fp(n)f Fr(decimal)g(digits)g(in)g(the)480 3754 -y(man)m(tissa)30 b(\(after)i(the)e(decimal)g(p)s(oin)m(t\).)0 -3932 y Fp(cl_float_format_t)c(cl_float_format)g(\(const)j(cl_F&)f(x\)) -480 4057 y Fr(Returns)h(the)i(\015oating)g(p)s(oin)m(t)g(format)e(of)i -Fp(x)p Fr(.)0 4236 y Fp(cl_float_format_t)26 b(cl_default_float_format) -480 4360 y Fr(Global)41 b(v)-5 b(ariable:)60 b(the)40 -b(default)g(\015oat)g(format)f(used)g(when)g(con)m(v)m(erting)i -(rational)g(n)m(um)m(b)s(ers)c(to)480 4485 y(\015oats.)0 -4788 y(T)-8 b(o)37 b(con)m(v)m(ert)i(a)f(real)f(n)m(um)m(b)s(er)e(to)j -(a)f(\015oat,)j(eac)m(h)e(of)f(the)g(t)m(yp)s(es)g Fp(cl_R)p -Fr(,)h Fp(cl_F)p Fr(,)g Fp(cl_I)p Fr(,)g Fp(cl_RA)p Fr(,)f -Fp(int)p Fr(,)h Fp(unsigned)0 4912 y(int)p Fr(,)30 b -Fp(float)p Fr(,)f Fp(double)g Fr(de\014nes)g(the)i(follo)m(wing)g(op)s -(erations:)0 5215 y Fp(cl_F)e(cl_float)f(\(const)h Fk(t)m(yp)s(e)5 -b Fp(&x,)30 b(cl_float_format_t)25 b(f\))480 5340 y Fr(Returns)k -Fp(x)h Fr(as)h(a)g(\015oat)g(of)f(format)g Fp(f)p Fr(.)p -eop -%%Page: 33 35 -33 34 bop 0 -116 a Fr(Chapter)30 b(4:)41 b(F)-8 b(unctions)31 -b(on)f(n)m(um)m(b)s(ers)2463 b(33)0 366 y Fp(cl_F)29 -b(cl_float)f(\(const)h Fk(t)m(yp)s(e)5 b Fp(&x,)30 b(const)f(cl_F&)g -(y\))480 491 y Fr(Returns)g Fp(x)h Fr(in)h(the)f(\015oat)h(format)f(of) -g Fp(y)p Fr(.)0 667 y Fp(cl_F)f(cl_float)f(\(const)h -Fk(t)m(yp)s(e)5 b Fp(&x\))480 792 y Fr(Returns)30 b Fp(x)g -Fr(as)h(a)g(\015oat)h(of)f(format)f Fp(cl_default_float_format)24 -b Fr(if)31 b(it)g(is)g(an)g(exact)h(n)m(um)m(b)s(er,)d(or)480 -916 y Fp(x)h Fr(itself)h(if)g(it)f(is)h(already)g(a)g(\015oat.)0 -1217 y(Of)f(course,)h(con)m(v)m(erting)h(a)f(n)m(um)m(b)s(er)d(to)j(a)f -(\015oat)i(can)e(lose)h(precision.)0 1491 y(Ev)m(ery)g(\015oating-p)s -(oin)m(t)g(format)f(has)g(some)g(c)m(haracteristic)j(n)m(um)m(b)s(ers:) -0 1792 y Fp(cl_F)c(most_positive_float)c(\(cl_float_format_t)h(f\))480 -1916 y Fr(Returns)j(the)i(largest)h(\(most)e(p)s(ositiv)m(e\))i +m(t)h(represen)m(tation)g(of)f Fp(x)p Fr(.)450 1873 y(Since)j +(denormalized)e(n)m(um)m(b)s(ers)g(are)h(not)h(supp)s(orted,)e(this)i +(is)f(the)h(same)f(as)h Fp(float_digits\(x\))25 b Fr(if)450 +1983 y Fp(x)30 b Fr(is)g(non-zero,)i(and)d(0)i(if)f Fp(x)h +Fr(=)f(0.)-30 2164 y(The)63 b(complete)h(in)m(ternal)h(represen)m +(tation)f(of)g(a)g(\015oat)g(is)g(enco)s(ded)f(in)h(the)g(t)m(yp)s(e)f +Fp(cl_decoded_float)-30 2274 y Fr(\(or)110 b Fp(cl_decoded_sfloat)p +Fr(,)125 b Fp(cl_decoded_ffloat)p Fr(,)g Fp(cl_decoded_dfloat)p +Fr(,)f Fp(cl_decoded_lfloat)p Fr(,)-30 2383 y(resp)s(ectiv)m(ely\),)32 +b(de\014ned)d(b)m(y)210 2527 y Fp(struct)46 b(cl_decoded_)p +Fl(t)m(yp)s(e)5 b Fp(float)44 b({)592 2631 y Fl(t)m(yp)s(e)53 +b Fp(mantissa;)45 b(cl_I)i(exponent;)e Fl(t)m(yp)s(e)53 +b Fp(sign;)210 2735 y(};)-30 2884 y Fr(and)30 b(returned)f(b)m(y)h(the) +h(function)-30 3066 y Fp(cl_decoded_)p Fl(t)m(yp)s(e)5 +b Fp(float)26 b(decode_float)h(\(const)i Fl(t)m(yp)s(e)5 +b Fp(&)30 b(x\))450 3175 y Fr(F)-8 b(or)26 b Fp(x)e Fr(non-zero,)j +(this)d(returns)g Fp(\(-1\)^s)p Fr(,)h Fp(e)p Fr(,)g +Fp(m)g Fr(with)f Fp(x)30 b(=)g(\(-1\)^s)f(*)h(2^e)g(*)g(m)24 +b Fr(and)g Fp(0.5)30 b(<=)g(m)g(<)g(1.0)p Fr(.)450 3285 +y(F)-8 b(or)35 b Fp(x)f Fr(=)h(0,)h(it)f(returns)e Fp(\(-1\)^s)p +Fr(=1,)h Fp(e)p Fr(=0,)i Fp(m)p Fr(=0.)53 b Fp(e)34 b +Fr(is)g(the)h(same)f(as)h(returned)e(b)m(y)i(the)f(function)450 +3395 y Fp(float_exponent)p Fr(.)-30 3576 y(A)c(complete)h(deco)s(ding)g +(in)f(terms)f(of)i(in)m(tegers)g(is)g(pro)m(vided)f(as)g(t)m(yp)s(e)210 +3760 y Fp(struct)46 b(cl_idecoded_float)d({)592 3864 +y(cl_I)j(mantissa;)g(cl_I)g(exponent;)g(cl_I)g(sign;)210 +3967 y(};)-30 4117 y Fr(b)m(y)30 b(the)h(follo)m(wing)h(function:)-30 +4299 y Fp(cl_idecoded_float)26 b(integer_decode_float)e(\(const)29 +b Fl(t)m(yp)s(e)5 b Fp(&)31 b(x\))450 4408 y Fr(F)-8 +b(or)38 b Fp(x)e Fr(non-zero,)k(this)d(returns)f Fp(\(-1\)^s)p +Fr(,)h Fp(e)p Fr(,)h Fp(m)f Fr(with)g Fp(x)30 b(=)g(\(-1\)^s)e(*)i(2^e) +g(*)g(m)37 b Fr(and)f Fp(m)h Fr(an)g(in)m(teger)450 4518 +y(with)e Fp(float_digits\(x\))30 b Fr(bits.)54 b(F)-8 +b(or)36 b Fp(x)e Fr(=)h(0,)h(it)g(returns)d Fp(\(-1\)^s)p +Fr(=1,)i Fp(e)p Fr(=0,)h Fp(m)p Fr(=0.)54 b(W)-10 b(ARNING:)450 +4627 y(The)27 b(exp)s(onen)m(t)h Fp(e)f Fr(is)h(not)f(the)h(same)f(as)h +(the)g(one)g(returned)e(b)m(y)h(the)h(functions)f Fp(decode_float)e +Fr(and)450 4737 y Fp(float_exponent)p Fr(.)-30 4919 y(Some)k(other)i +(function,)f(implemen)m(ted)f(only)i(for)f(class)h Fp(cl_F)p +Fr(:)-30 5101 y Fp(cl_F)e(float_sign)f(\(const)g(cl_F&)h(x,)h(const)f +(cl_F&)g(y\))450 5210 y Fr(This)d(returns)g(a)i(\015oating)g(p)s(oin)m +(t)f(n)m(um)m(b)s(er)e(whose)h(precision)i(and)e(absolute)i(v)-5 +b(alue)28 b(is)f(that)h(of)f Fp(y)g Fr(and)450 5320 y(whose)j(sign)h +(is)f(that)h(of)f Fp(x)p Fr(.)41 b(If)30 b Fp(x)g Fr(is)g(zero,)i(it)f +(is)f(treated)h(as)g(p)s(ositiv)m(e.)42 b(Same)29 b(for)h +Fp(y)p Fr(.)p eop +%%Page: 25 27 +25 26 bop -30 -116 a Fr(Chapter)30 b(4:)41 b(F)-8 b(unctions)31 +b(on)f(n)m(um)m(b)s(ers)2523 b(25)-30 299 y Fs(4.11)68 +b(Con)l(v)l(ersion)46 b(functions)-30 612 y Fn(4.11.1)63 +b(Con)m(v)m(ersion)41 b(to)g(\015oating-p)s(oin)m(t)h(n)m(um)m(b)s(ers) +-30 821 y Fr(The)30 b(t)m(yp)s(e)g Fp(cl_float_format_t)c +Fr(describ)s(es)k(a)g(\015oating-p)s(oin)m(t)i(format.)-30 +1003 y Fp(cl_float_format_t)26 b(cl_float_format)g(\(uintL)j(n\))450 +1113 y Fr(Returns)45 b(the)g(smallest)h(\015oat)g(format)f(whic)m(h)h +(guaran)m(tees)g(at)h(least)g Fp(n)e Fr(decimal)g(digits)h(in)g(the)450 +1222 y(man)m(tissa)30 b(\(after)i(the)e(decimal)g(p)s(oin)m(t\).)-30 +1397 y Fp(cl_float_format_t)c(cl_float_format)g(\(const)j(cl_F&)f(x\)) +450 1507 y Fr(Returns)h(the)i(\015oating)g(p)s(oin)m(t)g(format)e(of)i +Fp(x)p Fr(.)-30 1682 y Fp(cl_float_format_t)26 b +(cl_default_float_format)450 1792 y Fr(Global)d(v)-5 +b(ariable:)37 b(the)23 b(default)f(\015oat)g(format)g(used)f(when)g +(con)m(v)m(erting)j(rational)f(n)m(um)m(b)s(ers)c(to)k(\015oats.)-30 +1974 y(T)-8 b(o)30 b(con)m(v)m(ert)h(a)f(real)g(n)m(um)m(b)s(er)d(to)j +(a)g(\015oat,)g(eac)m(h)h(of)e(the)h(t)m(yp)s(es)f Fp(cl_R)p +Fr(,)g Fp(cl_F)p Fr(,)f Fp(cl_I)p Fr(,)h Fp(cl_RA)p Fr(,)g +Fp(int)p Fr(,)f Fp(unsigned)h(int)p Fr(,)-30 2084 y Fp(float)p +Fr(,)g Fp(double)g Fr(de\014nes)g(the)i(follo)m(wing)h(op)s(erations:) +-30 2267 y Fp(cl_F)d(cl_float)f(\(const)h Fl(t)m(yp)s(e)5 +b Fp(&x,)30 b(cl_float_format_t)25 b(f\))450 2376 y Fr(Returns)k +Fp(x)h Fr(as)h(a)g(\015oat)g(of)f(format)g Fp(f)p Fr(.)-30 +2551 y Fp(cl_F)f(cl_float)f(\(const)h Fl(t)m(yp)s(e)5 +b Fp(&x,)30 b(const)f(cl_F&)g(y\))450 2661 y Fr(Returns)g +Fp(x)h Fr(in)h(the)f(\015oat)h(format)f(of)g Fp(y)p Fr(.)-30 +2836 y Fp(cl_F)f(cl_float)f(\(const)h Fl(t)m(yp)s(e)5 +b Fp(&x\))450 2945 y Fr(Returns)29 b Fp(x)g Fr(as)h(a)g(\015oat)g(of)f +(format)g Fp(cl_default_float_format)23 b Fr(if)30 b(it)g(is)g(an)f +(exact)i(n)m(um)m(b)s(er,)d(or)h Fp(x)450 3055 y Fr(itself)i(if)g(it)f +(is)h(already)g(a)g(\015oat.)-30 3238 y(Of)f(course,)h(con)m(v)m +(erting)h(a)f(n)m(um)m(b)s(er)d(to)j(a)f(\015oat)i(can)e(lose)h +(precision.)-30 3388 y(Ev)m(ery)g(\015oating-p)s(oin)m(t)g(format)f +(has)g(some)g(c)m(haracteristic)j(n)m(um)m(b)s(ers:)-30 +3571 y Fp(cl_F)c(most_positive_float)c(\(cl_float_format_t)h(f\))450 +3680 y Fr(Returns)j(the)i(largest)h(\(most)e(p)s(ositiv)m(e\))i (\015oating)f(p)s(oin)m(t)f(n)m(um)m(b)s(er)e(in)i(\015oat)h(format)f -Fp(f)p Fr(.)0 2092 y Fp(cl_F)f(most_negative_float)c -(\(cl_float_format_t)h(f\))480 2217 y Fr(Returns)j(the)i(smallest)g +Fp(f)p Fr(.)-30 3855 y Fp(cl_F)f(most_negative_float)c +(\(cl_float_format_t)h(f\))450 3965 y Fr(Returns)j(the)i(smallest)g (\(most)f(negativ)m(e\))j(\015oating)e(p)s(oin)m(t)f(n)m(um)m(b)s(er)e -(in)i(\015oat)h(format)f Fp(f)p Fr(.)0 2393 y Fp(cl_F)f -(least_positive_float)c(\(cl_float_format_t)g(f\))480 -2517 y Fr(Returns)39 b(the)i(least)g(p)s(ositiv)m(e)g(\015oating)g(p)s -(oin)m(t)f(n)m(um)m(b)s(er)e(\(i.e.)71 b Fp(>)40 b Fr(0)h(but)e -(closest)j(to)f(0\))f(in)g(\015oat)480 2642 y(format)30 -b Fp(f)p Fr(.)0 2818 y Fp(cl_F)f(least_negative_float)c -(\(cl_float_format_t)g(f\))480 2943 y Fr(Returns)38 b(the)h(least)h -(negativ)m(e)h(\015oating)f(p)s(oin)m(t)f(n)m(um)m(b)s(er)d(\(i.e.)67 -b Fp(<)39 b Fr(0)g(but)f(closest)j(to)e(0\))h(in)e(\015oat)480 -3067 y(format)30 b Fp(f)p Fr(.)0 3243 y Fp(cl_F)f(float_epsilon)e -(\(cl_float_format_t)e(f\))480 3368 y Fr(Returns)k(the)i(smallest)g +(in)i(\015oat)h(format)f Fp(f)p Fr(.)-30 4140 y Fp(cl_F)f +(least_positive_float)c(\(cl_float_format_t)g(f\))450 +4249 y Fr(Returns)g(the)h(least)h(p)s(ositiv)m(e)g(\015oating)g(p)s +(oin)m(t)e(n)m(um)m(b)s(er)f(\(i.e.)40 b Fp(>)26 b Fr(0)g(but)f +(closest)i(to)g(0\))g(in)e(\015oat)i(format)450 4359 +y Fp(f)p Fr(.)-30 4534 y Fp(cl_F)i(least_negative_float)c +(\(cl_float_format_t)g(f\))450 4644 y Fr(Returns)e(the)i(least)h +(negativ)m(e)g(\015oating)g(p)s(oin)m(t)e(n)m(um)m(b)s(er)e(\(i.e.)40 +b Fp(<)24 b Fr(0)h(but)e(closest)j(to)f(0\))g(in)g(\015oat)g(format)450 +4753 y Fp(f)p Fr(.)-30 4928 y Fp(cl_F)k(float_epsilon)e +(\(cl_float_format_t)e(f\))450 5038 y Fr(Returns)k(the)i(smallest)g (\015oating)g(p)s(oin)m(t)f(n)m(um)m(b)s(er)e(e)j Fp(>)f -Fr(0)h(suc)m(h)f(that)h Fp(1+e)e(!=)h(1)p Fr(.)0 3544 -y Fp(cl_F)f(float_negative_epsilon)c(\(cl_float_format_t)g(f\))480 -3668 y Fr(Returns)k(the)i(smallest)g(\015oating)g(p)s(oin)m(t)f(n)m(um) +Fr(0)h(suc)m(h)f(that)h Fp(1+e)e(!=)h(1)p Fr(.)-30 5213 +y Fp(cl_F)f(float_negative_epsilon)24 b(\(cl_float_format_t)i(f\))450 +5322 y Fr(Returns)j(the)i(smallest)g(\015oating)g(p)s(oin)m(t)f(n)m(um) m(b)s(er)e(e)j Fp(>)f Fr(0)h(suc)m(h)f(that)h Fp(1-e)e(!=)h(1)p -Fr(.)0 4091 y Fm(4.11.2)63 b(Con)m(v)m(ersion)31 b(to)f(rational)g(n)m -(um)m(b)s(ers)0 4365 y Fr(Eac)m(h)h(of)g(the)f(classes)i -Fp(cl_R)p Fr(,)d Fp(cl_RA)p Fr(,)g Fp(cl_F)g Fr(de\014nes)h(the)g -(follo)m(wing)i(op)s(eration:)0 4666 y Fp(cl_RA)d(rational)f(\(const)h -Fk(t)m(yp)s(e)5 b Fp(&)30 b(x\))480 4790 y Fr(Returns)g(the)h(v)-5 -b(alue)32 b(of)f Fp(x)f Fr(as)i(an)e(exact)j(n)m(um)m(b)s(er.)40 -b(If)31 b Fp(x)f Fr(is)h(already)h(an)f(exact)h(n)m(um)m(b)s(er,)d -(this)i(is)g Fp(x)p Fr(.)480 4915 y(If)f Fp(x)g Fr(is)g(a)h -(\015oating-p)s(oin)m(t)g(n)m(um)m(b)s(er,)d(the)j(v)-5 -b(alue)30 b(is)h(a)f(rational)i(n)m(um)m(b)s(er)c(whose)i(denominator)f -(is)i(a)480 5039 y(p)s(o)m(w)m(er)f(of)h(2.)0 5340 y(In)f(order)g(to)h -(con)m(v)m(ert)h(bac)m(k,)f(sa)m(y)-8 b(,)32 b Fp -(\(cl_F\)\(cl_R\)"1/3")25 b Fr(to)31 b Fp(1/3)p Fr(,)f(there)h(is)f -(the)h(function)p eop -%%Page: 34 36 -34 35 bop 0 -116 a Fr(Chapter)30 b(4:)41 b(F)-8 b(unctions)31 -b(on)f(n)m(um)m(b)s(ers)2463 b(34)0 366 y Fp(cl_RA)29 -b(rationalize)e(\(const)i(cl_R&)g(x\))480 491 y Fr(If)i -Fp(x)h Fr(is)g(a)g(\015oating-p)s(oin)m(t)i(n)m(um)m(b)s(er,)c(it)i -(actually)i(represen)m(ts)e(an)g(in)m(terv)-5 b(al)33 -b(of)f(real)g(n)m(um)m(b)s(ers,)f(and)480 616 y(this)43 -b(function)g(returns)f(the)h(rational)i(n)m(um)m(b)s(er)40 -b(with)j(smallest)h(denominator)e(\(and)h(smallest)480 -740 y(n)m(umerator,)31 b(in)h(magnitude\))f(whic)m(h)h(lies)g(in)g -(this)g(in)m(terv)-5 b(al.)46 b(If)31 b Fp(x)h Fr(is)g(already)g(an)g -(exact)h(n)m(um)m(b)s(er,)480 865 y(this)d(function)g(returns)f -Fp(x)p Fr(.)0 1185 y(If)h Fp(x)g Fr(is)g(an)m(y)h(\015oat,)g(one)g(has) -180 1470 y Fp(cl_float\(rational\(x\),x\))24 b(=)30 b(x)180 -1630 y(cl_float\(rationalize\(x\),)o(x\))24 b(=)30 b(x)0 -2175 y Fs(4.12)68 b(Random)31 b(n)l(um)l(b)t(er)f(generators)0 -2460 y Fr(A)c(random)f(generator)j(is)e(a)h(mac)m(hine)f(whic)m(h)g -(pro)s(duces)f(\(pseudo-\)random)g(n)m(um)m(b)s(ers.)37 -b(The)26 b(include)g(\014le)g Fp()34 -b Fr(de\014nes)i(a)i(class)f Fp(cl_random_state)c Fr(whic)m(h)j(con)m -(tains)i(the)g(state)g(of)f(a)g(random)e(generator.)61 -b(If)0 2709 y(y)m(ou)31 b(mak)m(e)g(a)g(cop)m(y)h(of)f(the)g(random)e -(n)m(um)m(b)s(er)f(generator,)k(the)f(original)h(one)f(and)f(the)h(cop) -m(y)h(will)f(pro)s(duce)f(the)0 2834 y(same)g(sequence)h(of)f(random)f -(n)m(um)m(b)s(ers.)0 3118 y(The)e(follo)m(wing)i(functions)e(return)f -(\(pseudo-\)random)g(n)m(um)m(b)s(ers)f(in)i(di\013eren)m(t)h(formats.) -39 b(Calling)28 b(one)g(of)f(these)0 3243 y(mo)s(di\014es)i(the)h -(state)i(of)e(the)h(random)e(n)m(um)m(b)s(er)f(generator)j(in)f(a)h -(complicated)g(but)f(deterministic)g(w)m(a)m(y)-8 b(.)0 -3528 y(The)30 b(global)i(v)-5 b(ariable)240 3792 y Fp(cl_random_state) -44 b(cl_default_random_state)0 4076 y Fr(con)m(tains)25 -b(a)e(default)h(random)d(n)m(um)m(b)s(er)g(generator.)40 -b(It)23 b(is)h(used)e(when)h(the)g(functions)g(b)s(elo)m(w)h(are)f -(called)i(without)0 4201 y Fp(cl_random_state)h Fr(argumen)m(t.)0 -4521 y Fp(uint32)j(random32)f(\(cl_random_state&)d(randomstate\))0 -4646 y(uint32)k(random32)f(\(\))480 4770 y Fr(Returns)h(a)i(random)e -(unsigned)g(32-bit)j(n)m(um)m(b)s(er.)38 b(All)31 b(bits)f(are)h -(equally)g(random.)0 4966 y Fp(cl_I)e(random_I)f(\(cl_random_state&)e -(randomstate,)h(const)i(cl_I&)g(n\))0 5091 y(cl_I)g(random_I)f(\(const) -h(cl_I&)g(n\))480 5215 y(n)i Fr(m)m(ust)g(b)s(e)g(an)h(in)m(teger)h -Fp(>)f Fr(0.)45 b(This)31 b(function)g(returns)g(a)h(random)e(in)m -(teger)j Fp(x)f Fr(in)f(the)h(range)h Fp(0)d(<=)480 5340 -y(x)g(<)g(n)p Fr(.)p eop -%%Page: 35 37 -35 36 bop 0 -116 a Fr(Chapter)30 b(4:)41 b(F)-8 b(unctions)31 -b(on)f(n)m(um)m(b)s(ers)2463 b(35)0 366 y Fp(cl_F)29 -b(random_F)f(\(cl_random_state&)e(randomstate,)h(const)i(cl_F&)g(n\))0 -491 y(cl_F)g(random_F)f(\(const)h(cl_F&)g(n\))480 616 -y(n)36 b Fr(m)m(ust)g(b)s(e)g(a)h(\015oat)g Fp(>)g Fr(0.)60 -b(This)36 b(function)g(returns)g(a)h(random)e(\015oating-p)s(oin)m(t)j -(n)m(um)m(b)s(er)c(of)j(the)480 740 y(same)30 b(format)f(as)i -Fp(n)f Fr(in)g(the)h(range)f Fp(0)h(<=)e(x)h(<)g(n)p -Fr(.)0 932 y Fp(cl_R)f(random_R)f(\(cl_random_state&)e(randomstate,)h -(const)i(cl_R&)g(n\))0 1057 y(cl_R)g(random_R)f(\(const)h(cl_R&)g(n\)) -480 1181 y Fr(Beha)m(v)m(es)j(lik)m(e)g Fp(random_I)c -Fr(if)i Fp(n)g Fr(is)h(an)f(in)m(teger)i(and)e(lik)m(e)h -Fp(random_F)d Fr(if)j Fp(n)f Fr(is)g(a)h(\015oat.)0 1709 -y Fs(4.13)68 b(Obfuscating)31 b(op)t(erators)0 1991 y -Fr(The)i(mo)s(difying)f(C/C)p Fp(++)h Fr(op)s(erators)h -Fp(+=)p Fr(,)g Fp(-=)p Fr(,)g Fp(*=)p Fr(,)h Fp(/=)p -Fr(,)f Fp(&=)p Fr(,)g Fp(|=)p Fr(,)g Fp(^=)p Fr(,)g Fp(<<=)p -Fr(,)g Fp(>>=)f Fr(are)h(not)g(a)m(v)-5 b(ailable)36 -b(b)m(y)e(default)0 2116 y(b)s(ecause)41 b(their)g(use)g(tends)g(to)g -(mak)m(e)g(programs)f(unreadable.)72 b(It)41 b(is)h(trivial)g(to)g(get) -g(a)m(w)m(a)m(y)h(without)e(them.)0 2240 y(Ho)m(w)m(ev)m(er,)33 -b(if)d(y)m(ou)h(feel)g(that)g(y)m(ou)g(absolutely)g(need)f(these)h(op)s -(erators)f(to)h(get)h(happ)m(y)-8 b(,)30 b(then)g(add)240 -2502 y Fp(#define)46 b(WANT_OBFUSCATING_OPERATO)o(RS)0 -2785 y Fr(to)34 b(the)g(b)s(eginning)f(of)h(y)m(our)f(source)h -(\014les,)h(b)s(efore)e(the)h(inclusion)f(of)h(an)m(y)g(CLN)f(include)g -(\014les.)51 b(This)33 b(\015ag)h(will)0 2910 y(enable)d(the)f(follo)m -(wing)i(op)s(erators:)0 3192 y(F)-8 b(or)31 b(the)g(classes)g -Fp(cl_N)p Fr(,)f Fp(cl_R)p Fr(,)f Fp(cl_RA)p Fr(,)g Fp(cl_F)p -Fr(,)h Fp(cl_SF)p Fr(,)f Fp(cl_FF)p Fr(,)g Fp(cl_DF)p -Fr(,)g Fp(cl_LF)p Fr(:)0 3509 y Fk(t)m(yp)s(e)5 b Fp(&)30 -b(operator)e(+=)i(\()p Fk(t)m(yp)s(e)5 b Fp(&,)30 b(const)f -Fk(t)m(yp)s(e)5 b Fp(&\))0 3633 y Fk(t)m(yp)s(e)g Fp(&)30 -b(operator)e(-=)i(\()p Fk(t)m(yp)s(e)5 b Fp(&,)30 b(const)f -Fk(t)m(yp)s(e)5 b Fp(&\))0 3758 y Fk(t)m(yp)s(e)g Fp(&)30 -b(operator)e(*=)i(\()p Fk(t)m(yp)s(e)5 b Fp(&,)30 b(const)f -Fk(t)m(yp)s(e)5 b Fp(&\))0 3883 y Fk(t)m(yp)s(e)g Fp(&)30 -b(operator)e(/=)i(\()p Fk(t)m(yp)s(e)5 b Fp(&,)30 b(const)f -Fk(t)m(yp)s(e)5 b Fp(&\))0 4165 y Fr(F)-8 b(or)31 b(the)g(class)g -Fp(cl_I)p Fr(:)0 4482 y Fk(t)m(yp)s(e)5 b Fp(&)30 b(operator)e(+=)i(\() -p Fk(t)m(yp)s(e)5 b Fp(&,)30 b(const)f Fk(t)m(yp)s(e)5 -b Fp(&\))0 4606 y Fk(t)m(yp)s(e)g Fp(&)30 b(operator)e(-=)i(\()p -Fk(t)m(yp)s(e)5 b Fp(&,)30 b(const)f Fk(t)m(yp)s(e)5 -b Fp(&\))0 4731 y Fk(t)m(yp)s(e)g Fp(&)30 b(operator)e(*=)i(\()p -Fk(t)m(yp)s(e)5 b Fp(&,)30 b(const)f Fk(t)m(yp)s(e)5 -b Fp(&\))0 4855 y Fk(t)m(yp)s(e)g Fp(&)30 b(operator)e(&=)i(\()p -Fk(t)m(yp)s(e)5 b Fp(&,)30 b(const)f Fk(t)m(yp)s(e)5 -b Fp(&\))0 4980 y Fk(t)m(yp)s(e)g Fp(&)30 b(operator)e(|=)i(\()p -Fk(t)m(yp)s(e)5 b Fp(&,)30 b(const)f Fk(t)m(yp)s(e)5 -b Fp(&\))0 5104 y Fk(t)m(yp)s(e)g Fp(&)30 b(operator)e(^=)i(\()p -Fk(t)m(yp)s(e)5 b Fp(&,)30 b(const)f Fk(t)m(yp)s(e)5 -b Fp(&\))0 5229 y Fk(t)m(yp)s(e)g Fp(&)30 b(operator)e(<<=)i(\()p -Fk(t)m(yp)s(e)5 b Fp(&,)30 b(const)f Fk(t)m(yp)s(e)5 -b Fp(&\))0 5353 y Fk(t)m(yp)s(e)g Fp(&)30 b(operator)e(>>=)i(\()p -Fk(t)m(yp)s(e)5 b Fp(&,)30 b(const)f Fk(t)m(yp)s(e)5 -b Fp(&\))p eop -%%Page: 36 38 -36 37 bop 0 -116 a Fr(Chapter)30 b(4:)41 b(F)-8 b(unctions)31 -b(on)f(n)m(um)m(b)s(ers)2463 b(36)0 366 y(F)-8 b(or)31 -b(the)g(classes)g Fp(cl_N)p Fr(,)f Fp(cl_R)p Fr(,)f Fp(cl_RA)p -Fr(,)g Fp(cl_I)p Fr(,)h Fp(cl_F)p Fr(,)f Fp(cl_SF)p Fr(,)g -Fp(cl_FF)p Fr(,)h Fp(cl_DF)p Fr(,)f Fp(cl_LF)p Fr(:)0 -665 y Fk(t)m(yp)s(e)5 b Fp(&)30 b(operator)e(++)i(\()p -Fk(t)m(yp)s(e)5 b Fp(&)30 b(x\))480 790 y Fr(The)g(pre\014x)f(op)s -(erator)i Fp(++x)p Fr(.)0 964 y Fp(void)e(operator)f(++)i(\()p -Fk(t)m(yp)s(e)5 b Fp(&)30 b(x,)g(int\))480 1089 y Fr(The)g(p)s -(ost\014x)f(op)s(erator)i Fp(x++)p Fr(.)0 1263 y Fk(t)m(yp)s(e)5 -b Fp(&)30 b(operator)e(--)i(\()p Fk(t)m(yp)s(e)5 b Fp(&)30 -b(x\))480 1388 y Fr(The)g(pre\014x)f(op)s(erator)i Fp(--x)p -Fr(.)0 1562 y Fp(void)e(operator)f(--)i(\()p Fk(t)m(yp)s(e)5 -b Fp(&)30 b(x,)g(int\))480 1687 y Fr(The)g(p)s(ost\014x)f(op)s(erator)i -Fp(x--)p Fr(.)0 1985 y(Note)j(that)e(b)m(y)g(using)g(these)h -(obfuscating)g(op)s(erators,)g(y)m(ou)f(w)m(ouldn't)g(gain)h -(e\016ciency:)46 b(In)31 b(CLN)h(`)p Fp(x)e(+=)g(y;)p -Fr(')i(is)0 2110 y(exactly)g(the)f(same)e(as)i(`)p Fp(x)f(=)g(x+y;)p -Fr(',)g(not)h(more)e(e\016cien)m(t.)p eop -%%Page: 37 39 -37 38 bop 0 -116 a Fr(Chapter)30 b(5:)41 b(Input/Output)2784 -b(37)0 366 y Fo(5)80 b(Input/Output)0 933 y Fs(5.1)68 -b(In)l(ternal)32 b(and)e(prin)l(ted)g(represen)l(tation)0 -1209 y Fr(All)h(computations)f(deal)h(with)f(the)h(in)m(ternal)g -(represen)m(tations)g(of)g(the)f(n)m(um)m(b)s(ers.)0 -1484 y(Ev)m(ery)i(n)m(um)m(b)s(er)d(has)j(an)f(external)i(represen)m -(tation)g(as)f(a)g(sequence)g(of)g(ASCI)s(I)e(c)m(haracters.)46 -b(Sev)m(eral)33 b(external)0 1609 y(represen)m(tations)e(ma)m(y)f -(denote)h(the)g(same)f(n)m(um)m(b)s(er,)e(for)i(example,)g +Fr(.)p eop +%%Page: 26 28 +26 27 bop -30 -116 a Fr(Chapter)30 b(4:)41 b(F)-8 b(unctions)31 +b(on)f(n)m(um)m(b)s(ers)2523 b(26)-30 299 y Fn(4.11.2)63 +b(Con)m(v)m(ersion)41 b(to)g(rational)g(n)m(um)m(b)s(ers)-30 +488 y Fr(Eac)m(h)31 b(of)g(the)f(classes)i Fp(cl_R)p +Fr(,)d Fp(cl_RA)p Fr(,)g Fp(cl_F)g Fr(de\014nes)h(the)g(follo)m(wing)i +(op)s(eration:)-30 639 y Fp(cl_RA)d(rational)f(\(const)h +Fl(t)m(yp)s(e)5 b Fp(&)30 b(x\))450 749 y Fr(Returns)j(the)h(v)-5 +b(alue)35 b(of)f Fp(x)f Fr(as)h(an)g(exact)i(n)m(um)m(b)s(er.)49 +b(If)33 b Fp(x)h Fr(is)g(already)g(an)g(exact)h(n)m(um)m(b)s(er,)e +(this)h(is)g Fp(x)p Fr(.)450 858 y(If)g Fp(x)g Fr(is)g(a)g +(\015oating-p)s(oin)m(t)i(n)m(um)m(b)s(er,)d(the)h(v)-5 +b(alue)35 b(is)f(a)h(rational)g(n)m(um)m(b)s(er)d(whose)i(denominator)f +(is)i(a)450 968 y(p)s(o)m(w)m(er)30 b(of)h(2.)-30 1119 +y(In)f(order)g(to)h(con)m(v)m(ert)h(bac)m(k,)f(sa)m(y)-8 +b(,)32 b Fp(\(cl_F\)\(cl_R\)"1/3")25 b Fr(to)31 b Fp(1/3)p +Fr(,)f(there)h(is)f(the)h(function)-30 1271 y Fp(cl_RA)e(rationalize)e +(\(const)i(cl_R&)g(x\))450 1380 y Fr(If)36 b Fp(x)f Fr(is)h(a)h +(\015oating-p)s(oin)m(t)g(n)m(um)m(b)s(er,)f(it)g(actually)i(represen)m +(ts)e(an)g(in)m(terv)-5 b(al)37 b(of)f(real)h(n)m(um)m(b)s(ers,)f(and) +450 1490 y(this)d(function)g(returns)e(the)i(rational)i(n)m(um)m(b)s +(er)30 b(with)j(smallest)g(denominator)f(\(and)h(smallest)g(n)m(u-)450 +1600 y(merator,)e(in)f(magnitude\))g(whic)m(h)g(lies)i(in)e(this)h(in)m +(terv)-5 b(al.)42 b(If)30 b Fp(x)h Fr(is)f(already)i(an)e(exact)i(n)m +(um)m(b)s(er,)d(this)450 1709 y(function)h(returns)f +Fp(x)p Fr(.)-30 1861 y(If)h Fp(x)g Fr(is)g(an)m(y)h(\015oat,)g(one)g +(has)150 1991 y Fp(cl_float\(rational\(x\),x\))24 b(=)30 +b(x)150 2122 y(cl_float\(rationalize\(x\),)o(x\))24 b(=)30 +b(x)-30 2367 y Fs(4.12)68 b(Random)46 b(n)l(um)l(b)t(er)e(generators) +-30 2556 y Fr(A)31 b(random)e(generator)k(is)e(a)g(mac)m(hine)g(whic)m +(h)g(pro)s(duces)f(\(pseudo-\)random)f(n)m(um)m(b)s(ers.)41 +b(The)30 b(include)h(\014le)g Fp()c +Fr(de\014nes)h(a)i(class)g Fp(cl_random_state)25 b Fr(whic)m(h)k(con)m +(tains)h(the)g(state)h(of)e(a)h(random)d(generator.)42 +b(If)29 b(y)m(ou)-30 2775 y(mak)m(e)i(a)g(cop)m(y)h(of)f(the)h(random)d +(n)m(um)m(b)s(er)f(generator,)33 b(the)e(original)h(one)g(and)e(the)h +(cop)m(y)h(will)f(pro)s(duce)f(the)i(same)-30 2885 y(sequence)f(of)f +(random)f(n)m(um)m(b)s(ers.)-30 3015 y(The)j(follo)m(wing)i(functions)d +(return)h(\(pseudo-\)random)e(n)m(um)m(b)s(ers)g(in)i(di\013eren)m(t)h +(formats.)45 b(Calling)33 b(one)g(of)f(these)-30 3125 +y(mo)s(di\014es)d(the)h(state)i(of)e(the)h(random)e(n)m(um)m(b)s(er)f +(generator)j(in)f(a)h(complicated)g(but)f(deterministic)g(w)m(a)m(y)-8 +b(.)-30 3255 y(The)30 b(global)i(v)-5 b(ariable)210 3380 +y Fp(cl_random_state)44 b(cl_default_random_state)-30 +3511 y Fr(con)m(tains)29 b(a)f(default)f(random)f(n)m(um)m(b)s(er)f +(generator.)41 b(It)28 b(is)f(used)g(when)g(the)g(functions)h(b)s(elo)m +(w)f(are)h(called)h(without)-30 3620 y Fp(cl_random_state)d +Fr(argumen)m(t.)-30 3772 y Fp(uint32)j(random32)f(\(cl_random_state&)d +(randomstate\))-30 3881 y(uint32)k(random32)f(\(\))450 +3991 y Fr(Returns)h(a)i(random)e(unsigned)g(32-bit)j(n)m(um)m(b)s(er.) +38 b(All)31 b(bits)f(are)h(equally)g(random.)-30 4143 +y Fp(cl_I)e(random_I)f(\(cl_random_state&)e(randomstate,)h(const)i +(cl_I&)g(n\))-30 4252 y(cl_I)g(random_I)f(\(const)h(cl_I&)g(n\))450 +4362 y(n)i Fr(m)m(ust)e(b)s(e)h(an)h(in)m(teger)h Fp(>)f +Fr(0.)42 b(This)31 b(function)f(returns)g(a)h(random)e(in)m(teger)j +Fp(x)f Fr(in)f(the)h(range)g Fp(0)g(<=)e(x)450 4471 y(<)h(n)p +Fr(.)-30 4623 y Fp(cl_F)f(random_F)f(\(cl_random_state&)e(randomstate,) +h(const)i(cl_F&)g(n\))-30 4732 y(cl_F)g(random_F)f(\(const)h(cl_F&)g +(n\))450 4842 y(n)d Fr(m)m(ust)f(b)s(e)h(a)h(\015oat)g +Fp(>)f Fr(0.)40 b(This)26 b(function)g(returns)f(a)i(random)d +(\015oating-p)s(oin)m(t)k(n)m(um)m(b)s(er)c(of)j(the)g(same)450 +4952 y(format)j(as)g Fp(n)g Fr(in)g(the)h(range)g Fp(0)f(<=)f(x)i(<)f +(n)p Fr(.)-30 5103 y Fp(cl_R)f(random_R)f(\(cl_random_state&)e +(randomstate,)h(const)i(cl_R&)g(n\))-30 5213 y(cl_R)g(random_R)f +(\(const)h(cl_R&)g(n\))450 5322 y Fr(Beha)m(v)m(es)j(lik)m(e)g +Fp(random_I)c Fr(if)i Fp(n)g Fr(is)h(an)f(in)m(teger)i(and)e(lik)m(e)h +Fp(random_F)d Fr(if)j Fp(n)f Fr(is)g(a)h(\015oat.)p eop +%%Page: 27 29 +27 28 bop -30 -116 a Fr(Chapter)30 b(4:)41 b(F)-8 b(unctions)31 +b(on)f(n)m(um)m(b)s(ers)2523 b(27)-30 299 y Fs(4.13)68 +b(Obfuscating)46 b(op)t(erators)-30 491 y Fr(The)36 b(mo)s(difying)g +(C/C)p Fp(++)g Fr(op)s(erators)h Fp(+=)p Fr(,)h Fp(-=)p +Fr(,)g Fp(*=)p Fr(,)g Fp(/=)p Fr(,)g Fp(&=)p Fr(,)g Fp(|=)p +Fr(,)g Fp(^=)p Fr(,)h Fp(<<=)p Fr(,)e Fp(>>=)f Fr(are)i(not)f(a)m(v)-5 +b(ailable)39 b(b)m(y)e(default)-30 601 y(b)s(ecause)45 +b(their)f(use)g(tends)h(to)g(mak)m(e)g(programs)e(unreadable.)83 +b(It)44 b(is)h(trivial)h(to)f(get)h(a)m(w)m(a)m(y)g(without)f(them.)-30 +711 y(Ho)m(w)m(ev)m(er,)33 b(if)d(y)m(ou)h(feel)g(that)g(y)m(ou)g +(absolutely)g(need)f(these)h(op)s(erators)f(to)h(get)h(happ)m(y)-8 +b(,)30 b(then)g(add)210 839 y Fp(#define)46 b(WANT_OBFUSCATING_OPERATO) +o(RS)-30 974 y Fr(to)37 b(the)g(b)s(eginning)f(of)h(y)m(our)g(source)g +(\014les,)h(b)s(efore)f(the)g(inclusion)f(of)h(an)m(y)g(CLN)f(include)h +(\014les.)60 b(This)36 b(\015ag)h(will)-30 1083 y(enable)31 +b(the)f(follo)m(wing)i(op)s(erators:)-30 1218 y(F)-8 +b(or)31 b(the)g(classes)g Fp(cl_N)p Fr(,)f Fp(cl_R)p +Fr(,)f Fp(cl_RA)p Fr(,)g Fp(cl_F)p Fr(,)h Fp(cl_SF)p +Fr(,)f Fp(cl_FF)p Fr(,)g Fp(cl_DF)p Fr(,)g Fp(cl_LF)p +Fr(:)-30 1377 y Fl(t)m(yp)s(e)5 b Fp(&)30 b(operator)e(+=)i(\()p +Fl(t)m(yp)s(e)5 b Fp(&,)30 b(const)f Fl(t)m(yp)s(e)5 +b Fp(&\))-30 1487 y Fl(t)m(yp)s(e)g Fp(&)30 b(operator)e(-=)i(\()p +Fl(t)m(yp)s(e)5 b Fp(&,)30 b(const)f Fl(t)m(yp)s(e)5 +b Fp(&\))-30 1597 y Fl(t)m(yp)s(e)g Fp(&)30 b(operator)e(*=)i(\()p +Fl(t)m(yp)s(e)5 b Fp(&,)30 b(const)f Fl(t)m(yp)s(e)5 +b Fp(&\))-30 1706 y Fl(t)m(yp)s(e)g Fp(&)30 b(operator)e(/=)i(\()p +Fl(t)m(yp)s(e)5 b Fp(&,)30 b(const)f Fl(t)m(yp)s(e)5 +b Fp(&\))-30 1841 y Fr(F)-8 b(or)31 b(the)g(class)g Fp(cl_I)p +Fr(:)-30 2000 y Fl(t)m(yp)s(e)5 b Fp(&)30 b(operator)e(+=)i(\()p +Fl(t)m(yp)s(e)5 b Fp(&,)30 b(const)f Fl(t)m(yp)s(e)5 +b Fp(&\))-30 2110 y Fl(t)m(yp)s(e)g Fp(&)30 b(operator)e(-=)i(\()p +Fl(t)m(yp)s(e)5 b Fp(&,)30 b(const)f Fl(t)m(yp)s(e)5 +b Fp(&\))-30 2219 y Fl(t)m(yp)s(e)g Fp(&)30 b(operator)e(*=)i(\()p +Fl(t)m(yp)s(e)5 b Fp(&,)30 b(const)f Fl(t)m(yp)s(e)5 +b Fp(&\))-30 2329 y Fl(t)m(yp)s(e)g Fp(&)30 b(operator)e(&=)i(\()p +Fl(t)m(yp)s(e)5 b Fp(&,)30 b(const)f Fl(t)m(yp)s(e)5 +b Fp(&\))-30 2438 y Fl(t)m(yp)s(e)g Fp(&)30 b(operator)e(|=)i(\()p +Fl(t)m(yp)s(e)5 b Fp(&,)30 b(const)f Fl(t)m(yp)s(e)5 +b Fp(&\))-30 2548 y Fl(t)m(yp)s(e)g Fp(&)30 b(operator)e(^=)i(\()p +Fl(t)m(yp)s(e)5 b Fp(&,)30 b(const)f Fl(t)m(yp)s(e)5 +b Fp(&\))-30 2658 y Fl(t)m(yp)s(e)g Fp(&)30 b(operator)e(<<=)i(\()p +Fl(t)m(yp)s(e)5 b Fp(&,)30 b(const)f Fl(t)m(yp)s(e)5 +b Fp(&\))-30 2767 y Fl(t)m(yp)s(e)g Fp(&)30 b(operator)e(>>=)i(\()p +Fl(t)m(yp)s(e)5 b Fp(&,)30 b(const)f Fl(t)m(yp)s(e)5 +b Fp(&\))-30 2902 y Fr(F)-8 b(or)31 b(the)g(classes)g +Fp(cl_N)p Fr(,)f Fp(cl_R)p Fr(,)f Fp(cl_RA)p Fr(,)g Fp(cl_I)p +Fr(,)h Fp(cl_F)p Fr(,)f Fp(cl_SF)p Fr(,)g Fp(cl_FF)p +Fr(,)h Fp(cl_DF)p Fr(,)f Fp(cl_LF)p Fr(:)-30 3061 y Fl(t)m(yp)s(e)5 +b Fp(&)30 b(operator)e(++)i(\()p Fl(t)m(yp)s(e)5 b Fp(&)30 +b(x\))450 3171 y Fr(The)g(pre\014x)f(op)s(erator)i Fp(++x)p +Fr(.)-30 3330 y Fp(void)e(operator)f(++)i(\()p Fl(t)m(yp)s(e)5 +b Fp(&)30 b(x,)g(int\))450 3440 y Fr(The)g(p)s(ost\014x)f(op)s(erator)i +Fp(x++)p Fr(.)-30 3599 y Fl(t)m(yp)s(e)5 b Fp(&)30 b(operator)e(--)i +(\()p Fl(t)m(yp)s(e)5 b Fp(&)30 b(x\))450 3709 y Fr(The)g(pre\014x)f +(op)s(erator)i Fp(--x)p Fr(.)-30 3868 y Fp(void)e(operator)f(--)i(\()p +Fl(t)m(yp)s(e)5 b Fp(&)30 b(x,)g(int\))450 3978 y Fr(The)g(p)s +(ost\014x)f(op)s(erator)i Fp(x--)p Fr(.)-30 4137 y(Note)37 +b(that)g(b)m(y)f(using)g(these)h(obfuscating)f(op)s(erators,)i(y)m(ou)f +(w)m(ouldn't)f(gain)h(e\016ciency:)53 b(In)35 b(CLN)h(`)p +Fp(x)30 b(+=)g(y;)p Fr(')36 b(is)-30 4247 y(exactly)c(the)f(same)e(as)i +(`)p Fp(x)f(=)g(x+y;)p Fr(',)g(not)h(more)e(e\016cien)m(t.)p +eop +%%Page: 28 30 +28 29 bop -30 -116 a Fr(Chapter)30 b(5:)41 b(Input/Output)2844 +b(28)-30 299 y Fo(5)80 b(Input/Output)-30 758 y Fs(5.1)68 +b(In)l(ternal)46 b(and)f(prin)l(ted)g(represen)l(tation)-30 +973 y Fr(All)31 b(computations)f(deal)h(with)f(the)h(in)m(ternal)g +(represen)m(tations)g(of)g(the)f(n)m(um)m(b)s(ers.)-30 +1130 y(Ev)m(ery)36 b(n)m(um)m(b)s(er)d(has)j(an)f(external)i(represen)m +(tation)g(as)f(a)g(sequence)g(of)g(ASCI)s(I)e(c)m(haracters.)58 +b(Sev)m(eral)37 b(external)-30 1239 y(represen)m(tations)31 +b(ma)m(y)f(denote)h(the)g(same)f(n)m(um)m(b)s(er,)e(for)i(example,)g Fp(")p Fr(20.0)p Fp(")i Fr(and)d Fp(")p Fr(20.000)p Fp(")p -Fr(.)0 1884 y(Con)m(v)m(erting)38 b(an)g(in)m(ternal)g(to)g(an)f -(external)i(represen)m(tation)f(is)g(called)g(\\prin)m(ting",)j(con)m -(v)m(erting)e(an)e(external)0 2009 y(to)43 b(an)e(in)m(ternal)i -(represen)m(tation)g(is)f(called)h(\\reading".)76 b(In)41 -b(CLN,)h(it)g(is)g(alw)m(a)m(ys)i(true)d(that)i(con)m(v)m(ersion)g(of)0 -2133 y(an)d(in)m(ternal)g(to)g(an)g(external)g(represen)m(tation)h(and) -e(then)g(bac)m(k)i(to)f(an)g(in)m(ternal)g(represen)m(tation)h(will)f -(yield)0 2258 y(the)34 b(same)e(in)m(ternal)j(represen)m(tation.)50 -b(Sym)m(b)s(olically:)d Fp(read\(print\(x\)\))27 b(==)i(x)p -Fr(.)50 b(This)33 b(is)g(called)i(\\prin)m(t-read)0 2382 -y(consistency".)0 2658 y(Di\013eren)m(t)d(t)m(yp)s(es)e(of)h(n)m(um)m -(b)s(ers)d(ha)m(v)m(e)j(di\013eren)m(t)g(external)g(represen)m(tations) -h(\(case)f(is)g(insigni\014can)m(t\):)0 2959 y(In)m(tegers)167 -b(External)30 b(represen)m(tation:)41 b Fk(sign)p Fp({)p -Fk(digit)r Fp(}+)p Fr(.)g(The)29 b(reader)g(also)i(accepts)g(the)e -(Common)e(Lisp)i(syn-)480 3084 y(taxes)39 b Fk(sign)p -Fp({)p Fk(digit)r Fp(}+.)f Fr(with)h(a)f(trailing)i(dot)e(for)h -(decimal)f(in)m(tegers)i(and)d(the)i Fp(#)p Fk(n)p Fp(R)p -Fr(,)g Fp(#b)p Fr(,)i Fp(#o)p Fr(,)f Fp(#x)480 3208 y -Fr(pre\014xes.)0 3386 y(Rational)32 b(n)m(um)m(b)s(ers)480 -3510 y(External)37 b(represen)m(tation:)56 b Fk(sign)p -Fp({)p Fk(digit)r Fp(}+/{)p Fk(digit)r Fp(}+)p Fr(.)k(The)37 -b Fp(#)p Fk(n)p Fp(R)p Fr(,)h Fp(#b)p Fr(,)g Fp(#o)p -Fr(,)h Fp(#x)d Fr(pre\014xes)g(are)i(al-)480 3635 y(lo)m(w)m(ed)32 -b(here)e(as)g(w)m(ell.)0 3812 y(Floating-p)s(oin)m(t)j(n)m(um)m(b)s -(ers)480 3937 y(External)48 b(represen)m(tation:)76 b -Fk(sign)p Fp({)p Fk(digit)r Fp(})p Fr(*)p Fk(exp)s(onen)m(t)50 -b Fr(or)d Fk(sign)p Fp({)p Fk(digit)r Fp(})p Fr(*)p Fp(.{)p -Fk(digit)r Fp(})p Fr(*)p Fk(exp)s(onen)m(t)k Fr(or)480 -4061 y Fk(sign)p Fp({)p Fk(digit)r Fp(})p Fr(*)p Fp(.{)p -Fk(digit)r Fp(}+)p Fr(.)40 b(A)26 b(precision)g(sp)s(eci\014er)f(of)h -(the)h(form)p 2684 4061 28 4 v 57 w Fk(prec)k Fr(ma)m(y)26 -b(b)s(e)f(app)s(ended.)37 b(There)480 4186 y(m)m(ust)h(b)s(e)h(at)i -(least)g(one)e(digit)i(in)e(the)h(non-exp)s(onen)m(t)f(part.)69 -b(The)39 b(exp)s(onen)m(t)g(has)h(the)f(syn)m(tax)480 -4310 y Fk(expmark)m(er)d(expsign)30 b Fp({)p Fk(digit)r -Fp(}+)p Fr(.)41 b(The)30 b(exp)s(onen)m(t)g(mark)m(er)g(is)660 -4461 y(`)p Fp(s)p Fr(')h(for)f(short-\015oats,)660 4612 -y(`)p Fp(f)p Fr(')h(for)f(single-\015oats,)660 4763 y(`)p -Fp(d)p Fr(')h(for)f(double-\015oats,)660 4914 y(`)p Fp(L)p -Fr(')h(for)f(long-\015oats,)480 5091 y(or)25 b(`)p Fp(e)p -Fr(',)i(whic)m(h)e(denotes)h(a)g(default)f(\015oat)h(format.)39 -b(The)25 b(precision)g(sp)s(ecifying)g(su\016x)g(has)g(the)g(syn-)480 -5215 y(tax)p 638 5215 V 57 w Fk(prec)30 b Fr(where)23 -b Fk(prec)30 b Fr(denotes)24 b(the)g(n)m(um)m(b)s(er)e(of)i(v)-5 -b(alid)25 b(man)m(tissa)f(digits)g(\(in)g(decimal,)i(excluding)480 -5340 y(leading)31 b(zero)s(es\),)h(cf.)41 b(also)31 b(function)f(`)p -Fp(cl_float_format)p Fr('.)p eop -%%Page: 38 40 -38 39 bop 0 -116 a Fr(Chapter)30 b(5:)41 b(Input/Output)2784 -b(38)0 366 y(Complex)29 b(n)m(um)m(b)s(ers)480 491 y(External)i -(represen)m(tation:)660 646 y(In)h(algebraic)i(notation:)46 -b Fk(realpart)r Fp(+)p Fk(imagpart)r Fp(i)p Fr(.)g(Of)32 -b(course,)h(if)g Fk(imagpart)h Fr(is)e(negativ)m(e,)k(its)660 -771 y(prin)m(ted)23 b(represen)m(tation)h(b)s(egins)f(with)g(a)h(`)p -Fp(-)p Fr(',)h(and)e(the)h(`)p Fp(+)p Fr(')f(b)s(et)m(w)m(een)h -Fk(realpart)i Fr(and)d Fk(imagpart)660 895 y Fr(ma)m(y)37 -b(b)s(e)h(omitted.)63 b(Note)39 b(that)g(this)e(notation)j(cannot)e(b)s -(e)f(used)g(when)g(the)h Fk(imagpart)i Fr(is)660 1020 -y(rational)c(and)f(the)g(rational)h(n)m(um)m(b)s(er's)d(base)i(is)g -Fp(>)p Fr(18,)i(b)s(ecause)e(the)g(`)p Fp(i)p Fr(')g(is)g(then)g(read)f -(as)i(a)660 1144 y(digit.)660 1299 y(In)30 b(Common)e(Lisp)h(notation:) -42 b Fp(#C\()p Fk(realpart)32 b(imagpart)r Fp(\))p Fr(.)0 -1799 y Fs(5.2)68 b(Input)30 b(functions)0 2078 y Fr(Including)24 -b Fp()e Fr(de\014nes)i(a)h(t)m(yp)s(e)g Fp(cl_istream)p -Fr(,)e(whic)m(h)h(is)h(the)g(t)m(yp)s(e)g(of)g(the)g(\014rst)f(argumen) -m(t)g(to)h(all)h(input)0 2203 y(functions.)38 b(Unless)24 -b(y)m(ou)g(build)f(and)g(use)g(CLN)g(with)h(the)g(macro)f(CL)p -2375 2203 28 4 v 32 w(IO)p 2511 2203 V 33 w(STDIO)f(b)s(eing)i -(de\014ned,)g Fp(cl_istream)0 2327 y Fr(is)30 b(the)h(same)f(as)g -Fp(istream&)p Fr(.)0 2607 y(The)g(v)-5 b(ariable)180 -2887 y Fp(cl_istream)28 b(cl_stdin)0 3197 y Fr(con)m(tains)k(the)e -(standard)g(input)f(stream.)0 3476 y(These)h(are)h(the)f(simple)g -(input)f(functions:)0 3787 y Fp(int)g(freadchar)f(\(cl_istream)g -(stream\))480 3911 y Fr(Reads)33 b(a)h(c)m(haracter)h(from)c -Fp(stream)p Fr(.)48 b(Returns)32 b Fp(cl_EOF)f Fr(\(not)j(a)g(`)p -Fp(char)p Fr('!\))48 b(if)33 b(the)h(end)e(of)i(stream)480 -4036 y(w)m(as)d(encoun)m(tered)g(or)f(an)g(error)g(o)s(ccurred.)0 -4221 y Fp(int)f(funreadchar)f(\(cl_istream)f(stream,)h(int)i(c\))480 -4346 y Fr(Puts)37 b(bac)m(k)i Fp(c)f Fr(on)m(to)h Fp(stream)p -Fr(.)61 b Fp(c)38 b Fr(m)m(ust)e(b)s(e)i(the)g(result)g(of)g(the)g -(last)g Fp(freadchar)e Fr(op)s(eration)i(on)480 4471 -y Fp(stream)p Fr(.)0 4781 y(Eac)m(h)d(of)g(the)g(classes)g -Fp(cl_N)p Fr(,)g Fp(cl_R)p Fr(,)g Fp(cl_RA)p Fr(,)f Fp(cl_I)p -Fr(,)h Fp(cl_F)p Fr(,)f Fp(cl_SF)p Fr(,)h Fp(cl_FF)p -Fr(,)f Fp(cl_DF)p Fr(,)h Fp(cl_LF)e Fr(de\014nes,)i(in)f -Fp()p Fr(,)29 -b(the)i(follo)m(wing)h(input)d(function:)0 5215 y Fp(cl_istream)f -(operator>>)f(\(cl_istream)g(stream,)i Fk(t)m(yp)s(e)5 -b Fp(&)30 b(result\))480 5340 y Fr(Reads)g(a)h(n)m(um)m(b)s(er)d(from)h +Fr(.)-30 1397 y(Con)m(v)m(erting)34 b(an)f(in)m(ternal)h(to)g(an)e +(external)i(represen)m(tation)h(is)e(called)h(\\prin)m(ting",)h(con)m +(v)m(erting)f(an)f(external)h(to)-30 1506 y(an)24 b(in)m(ternal)h +(represen)m(tation)g(is)f(called)h(\\reading".)40 b(In)24 +b(CLN,)f(it)i(is)f(alw)m(a)m(ys)i(true)e(that)h(con)m(v)m(ersion)g(of)f +(an)g(in)m(ternal)-30 1616 y(to)j(an)e(external)i(represen)m(tation)g +(and)e(then)h(bac)m(k)g(to)h(an)e(in)m(ternal)i(represen)m(tation)g +(will)f(yield)g(the)g(same)f(in)m(ternal)-30 1725 y(represen)m(tation.) +42 b(Sym)m(b)s(olically:)f Fp(read\(print\(x\)\))26 b(==)k(x)p +Fr(.)40 b(This)30 b(is)g(called)i(\\prin)m(t-read)e(consistency".)-30 +1882 y(Di\013eren)m(t)i(t)m(yp)s(es)e(of)h(n)m(um)m(b)s(ers)d(ha)m(v)m +(e)j(di\013eren)m(t)g(external)g(represen)m(tations)h(\(case)f(is)g +(insigni\014can)m(t\):)-30 2076 y(In)m(tegers)167 b(External)35 +b(represen)m(tation:)50 b Fl(sign)p Fp({)p Fl(digit)r +Fp(}+)p Fr(.)j(The)34 b(reader)g(also)h(accepts)h(the)f(Common)d(Lisp)h +(syn-)450 2185 y(taxes)43 b Fl(sign)p Fp({)p Fl(digit)r +Fp(}+.)g Fr(with)f(a)h(trailing)g(dot)g(for)f(decimal)g(in)m(tegers)i +(and)e(the)h Fp(#)p Fl(n)p Fp(R)p Fr(,)h Fp(#b)p Fr(,)h +Fp(#o)p Fr(,)h Fp(#x)450 2295 y Fr(pre\014xes.)-30 2477 +y(Rational)32 b(n)m(um)m(b)s(ers)450 2586 y(External)26 +b(represen)m(tation:)39 b Fl(sign)p Fp({)p Fl(digit)r +Fp(}+/{)p Fl(digit)r Fp(}+)p Fr(.)g(The)25 b Fp(#)p Fl(n)p +Fp(R)p Fr(,)h Fp(#b)p Fr(,)g Fp(#o)p Fr(,)g Fp(#x)f Fr(pre\014xes)g +(are)h(allo)m(w)m(ed)450 2696 y(here)k(as)h(w)m(ell.)-30 +2878 y(Floating-p)s(oin)m(t)i(n)m(um)m(b)s(ers)450 2988 +y(External)58 b(represen)m(tation:)96 b Fl(sign)p Fp({)p +Fl(digit)r Fp(})p Fr(*)p Fl(exp)s(onen)m(t)60 b Fr(or)d +Fl(sign)p Fp({)p Fl(digit)r Fp(})p Fr(*)p Fp(.{)p Fl(digit)r +Fp(})p Fr(*)p Fl(exp)s(onen)m(t)k Fr(or)450 3097 y Fl(sign)p +Fp({)p Fl(digit)r Fp(})p Fr(*)p Fp(.{)p Fl(digit)r Fp(}+)p +Fr(.)45 b(A)31 b(precision)h(sp)s(eci\014er)f(of)h(the)f(form)p +2693 3097 28 4 v 63 w Fl(prec)37 b Fr(ma)m(y)31 b(b)s(e)g(app)s(ended.) +42 b(There)450 3207 y(m)m(ust)g(b)s(e)h(at)h(least)h(one)e(digit)h(in)f +(the)h(non-exp)s(onen)m(t)f(part.)80 b(The)42 b(exp)s(onen)m(t)i(has)f +(the)g(syn)m(tax)450 3316 y Fl(expmark)m(er)36 b(expsign)30 +b Fp({)p Fl(digit)r Fp(}+)p Fr(.)41 b(The)30 b(exp)s(onen)m(t)g(mark)m +(er)g(is)630 3462 y(`)p Fp(s)p Fr(')h(for)f(short-\015oats,)630 +3608 y(`)p Fp(f)p Fr(')h(for)f(single-\015oats,)630 3754 +y(`)p Fp(d)p Fr(')h(for)f(double-\015oats,)630 3900 y(`)p +Fp(L)p Fr(')h(for)f(long-\015oats,)450 4082 y(or)23 b(`)p +Fp(e)p Fr(',)h(whic)m(h)f(denotes)g(a)g(default)f(\015oat)i(format.)37 +b(The)22 b(precision)h(sp)s(ecifying)g(su\016x)e(has)i(the)f(syn)m(tax) +p 450 4191 V 477 4191 a Fl(prec)48 b Fr(where)41 b Fl(prec)48 +b Fr(denotes)42 b(the)g(n)m(um)m(b)s(er)e(of)i(v)-5 b(alid)43 +b(man)m(tissa)f(digits)g(\(in)h(decimal,)i(excluding)450 +4301 y(leading)31 b(zero)s(es\),)h(cf.)41 b(also)31 b(function)f(`)p +Fp(cl_float_format)p Fr('.)-30 4483 y(Complex)f(n)m(um)m(b)s(ers)450 +4592 y(External)i(represen)m(tation:)630 4738 y(In)36 +b(algebraic)j(notation:)54 b Fl(realpart)r Fp(+)p Fl(imagpart)r +Fp(i)p Fr(.)60 b(Of)37 b(course,)h(if)f Fl(imagpart)i +Fr(is)e(negativ)m(e,)k(its)630 4848 y(prin)m(ted)28 b(represen)m +(tation)i(b)s(egins)e(with)g(a)h(`)p Fp(-)p Fr(',)g(and)f(the)g(`)p +Fp(+)p Fr(')h(b)s(et)m(w)m(een)g Fl(realpart)i Fr(and)d +Fl(imagpart)630 4957 y Fr(ma)m(y)41 b(b)s(e)h(omitted.)75 +b(Note)43 b(that)g(this)e(notation)j(cannot)e(b)s(e)f(used)g(when)g +(the)h Fl(imagpart)i Fr(is)630 5067 y(rational)c(and)e(the)i(rational)g +(n)m(um)m(b)s(er's)c(base)j(is)g Fp(>)p Fr(18,)j(b)s(ecause)d(the)g(`)p +Fp(i)p Fr(')g(is)g(then)g(read)f(as)i(a)630 5177 y(digit.)630 +5322 y(In)30 b(Common)e(Lisp)h(notation:)42 b Fp(#C\()p +Fl(realpart)32 b(imagpart)r Fp(\))p Fr(.)p eop +%%Page: 29 31 +29 30 bop -30 -116 a Fr(Chapter)30 b(5:)41 b(Input/Output)2844 +b(29)-30 299 y Fs(5.2)68 b(Input)44 b(functions)-30 491 +y Fr(Including)28 b Fp()e Fr(de\014nes)h(a)i(t)m(yp)s(e)g +Fp(cl_istream)p Fr(,)d(whic)m(h)i(is)h(the)g(t)m(yp)s(e)f(of)h(the)g +(\014rst)e(argumen)m(t)h(to)h(all)h(input)-30 601 y(functions.)40 +b(Unless)28 b(y)m(ou)h(build)f(and)g(use)g(CLN)h(with)f(the)h(macro)f +(CL)p 2391 601 28 4 v 32 w(IO)p 2527 601 V 33 w(STDIO)f(b)s(eing)i +(de\014ned,)f Fp(cl_istream)-30 710 y Fr(is)i(the)h(same)f(as)g +Fp(istream&)p Fr(.)-30 844 y(The)g(v)-5 b(ariable)150 +978 y Fp(cl_istream)28 b(cl_stdin)-30 1137 y Fr(con)m(tains)k(the)e +(standard)g(input)f(stream.)-30 1271 y(These)h(are)h(the)f(simple)g +(input)f(functions:)-30 1430 y Fp(int)g(freadchar)f(\(cl_istream)g +(stream\))450 1539 y Fr(Reads)37 b(a)f(c)m(haracter)j(from)c +Fp(stream)p Fr(.)57 b(Returns)35 b Fp(cl_EOF)g Fr(\(not)i(a)g(`)p +Fp(char)p Fr('!\))59 b(if)36 b(the)h(end)f(of)h(stream)450 +1649 y(w)m(as)31 b(encoun)m(tered)g(or)f(an)g(error)g(o)s(ccurred.)-30 +1807 y Fp(int)f(funreadchar)f(\(cl_istream)f(stream,)h(int)i(c\))450 +1917 y Fr(Puts)41 b(bac)m(k)h Fp(c)f Fr(on)m(to)i Fp(stream)p +Fr(.)72 b Fp(c)41 b Fr(m)m(ust)f(b)s(e)h(the)h(result)f(of)g(the)h +(last)g Fp(freadchar)d Fr(op)s(eration)j(on)450 2027 +y Fp(stream)p Fr(.)-30 2185 y(Eac)m(h)d(of)f(the)g(classes)h +Fp(cl_N)p Fr(,)g Fp(cl_R)p Fr(,)g Fp(cl_RA)p Fr(,)g Fp(cl_I)p +Fr(,)g Fp(cl_F)p Fr(,)g Fp(cl_SF)p Fr(,)g Fp(cl_FF)p +Fr(,)g Fp(cl_DF)p Fr(,)f Fp(cl_LF)f Fr(de\014nes,)i(in)f +Fp()p Fr(,)29 +b(the)i(follo)m(wing)h(input)d(function:)-30 2453 y Fp(cl_istream)f +(operator>>)f(\(cl_istream)g(stream,)i Fl(t)m(yp)s(e)5 +b Fp(&)30 b(result\))450 2563 y Fr(Reads)g(a)h(n)m(um)m(b)s(er)d(from)h Fp(stream)g Fr(and)h(stores)g(it)h(in)f(the)h Fp(result)p -Fr(.)p eop -%%Page: 39 41 -39 40 bop 0 -116 a Fr(Chapter)30 b(5:)41 b(Input/Output)2784 -b(39)0 366 y(The)30 b(most)g(\015exible)g(input)g(functions,)g -(de\014ned)f(in)h Fp()p -Fr(,)28 b(are)j(the)f(follo)m(wing:)0 659 y Fp(cl_N)f(read_complex)e -(\(cl_istream)h(stream,)g(const)h(cl_read_flags&)d(flags\))0 -783 y(cl_R)j(read_real)f(\(cl_istream)f(stream,)i(const)g -(cl_read_flags&)d(flags\))0 908 y(cl_F)j(read_float)f(\(cl_istream)f -(stream,)h(const)h(cl_read_flags&)e(flags\))0 1033 y(cl_RA)i -(read_rational)e(\(cl_istream)g(stream,)h(const)h(cl_read_flags&)e -(flags\))0 1157 y(cl_I)i(read_integer)e(\(cl_istream)h(stream,)g(const) -h(cl_read_flags&)d(flags\))480 1282 y Fr(Reads)d(a)g(n)m(um)m(b)s(er)e -(from)h Fp(stream)p Fr(.)36 b(The)23 b Fp(flags)e Fr(are)i(parameters)g -(whic)m(h)f(a\013ect)j(the)e(input)f(syn)m(tax.)480 1406 -y(Whitespace)32 b(b)s(efore)e(the)g(n)m(um)m(b)s(er)e(is)j(silen)m(tly) -h(skipp)s(ed.)0 1568 y Fp(cl_N)d(read_complex)e(\(const)i -(cl_read_flags&)d(flags,)j(const)g(char)g(*)h(string,)f(const)g(char)g -(*)0 1692 y(string_limit,)e(const)i(char)g(*)h(*)g(end_of_parse\))0 -1817 y(cl_R)f(read_real)f(\(const)h(cl_read_flags&)d(flags,)j(const)g -(char)g(*)h(string,)e(const)h(char)h(*)0 1941 y(string_limit,)d(const)i -(char)g(*)h(*)g(end_of_parse\))0 2066 y(cl_F)f(read_float)f(\(const)g -(cl_read_flags&)f(flags,)i(const)g(char)g(*)h(string,)e(const)h(char)g -(*)0 2190 y(string_limit,)e(const)i(char)g(*)h(*)g(end_of_parse\))0 -2315 y(cl_RA)f(read_rational)e(\(const)h(cl_read_flags&)f(flags,)h -(const)h(char)h(*)g(string,)e(const)h(char)g(*)0 2439 -y(string_limit,)e(const)i(char)g(*)h(*)g(end_of_parse\))0 -2564 y(cl_I)f(read_integer)e(\(const)i(cl_read_flags&)d(flags,)j(const) -g(char)g(*)h(string,)f(const)g(char)g(*)0 2688 y(string_limit,)e(const) -i(char)g(*)h(*)g(end_of_parse\))480 2813 y Fr(Reads)g(a)h(n)m(um)m(b)s -(er)d(from)h(a)i(string)f(in)g(memory)-8 b(.)39 b(The)30 -b Fp(flags)f Fr(are)i(parameters)f(whic)m(h)g(a\013ect)i(the)480 -2938 y(input)26 b(syn)m(tax.)40 b(The)27 b(string)g(starts)g(at)h -Fp(string)d Fr(and)h(ends)g(at)i Fp(string_limit)c Fr(\(exclusiv)m(e)29 -b(limit\).)480 3062 y Fp(string_limit)24 b Fr(ma)m(y)j(also)h(b)s(e)e -Fp(NULL)p Fr(,)h(denoting)h(the)f(en)m(tire)h(string,)g(i.e.)40 -b(equiv)-5 b(alen)m(t)29 b(to)f Fp(string_)480 3187 y(limit)h(=)h -(string)f(+)h(strlen\(string\))p Fr(.)57 b(If)37 b Fp(end_of_parse)d -Fr(is)j Fp(NULL)p Fr(,)h(the)g(string)f(in)g(memory)480 -3311 y(m)m(ust)26 b(con)m(tain)i(exactly)h(one)f(n)m(um)m(b)s(er)d(and) -h(nothing)h(more,)g(else)h(a)g(fatal)g(error)f(will)g(b)s(e)g -(signalled.)480 3436 y(If)33 b Fp(end_of_parse)c Fr(is)k(not)h -Fp(NULL)p Fr(,)f Fp(*end_of_parse)c Fr(will)k(b)s(e)g(assigned)g(a)h(p) -s(oin)m(ter)f(past)g(the)g(last)480 3560 y(parsed)h(c)m(haracter)i -(\(i.e.)55 b Fp(string_limit)31 b Fr(if)k(nothing)f(came)h(after)g(the) -g(n)m(um)m(b)s(er\).)51 b(Whitespace)480 3685 y(is)30 -b(not)h(allo)m(w)m(ed.)0 3977 y(The)f(structure)g Fp(cl_read_flags)d -Fr(con)m(tains)k(the)g(follo)m(wing)g(\014elds:)0 4270 -y Fp(cl_read_syntax_t)26 b(syntax)480 4394 y Fr(The)c(p)s(ossible)f -(results)h(of)h(the)f(read)g(op)s(eration.)38 b(P)m(ossible)23 -b(v)-5 b(alues)23 b(are)f Fp(syntax_number)p Fr(,)f Fp(syntax_)480 -4519 y(real)p Fr(,)37 b Fp(syntax_rational)p Fr(,)e Fp(syntax_integer)p +Fr(.)-30 2721 y(The)f(most)g(\015exible)g(input)g(functions,)g +(de\014ned)f(in)h Fp()p +Fr(,)28 b(are)j(the)f(follo)m(wing:)-30 2880 y Fp(cl_N)f(read_complex)e +(\(cl_istream)h(stream,)g(const)h(cl_read_flags&)d(flags\))-30 +2990 y(cl_R)j(read_real)f(\(cl_istream)f(stream,)i(const)g +(cl_read_flags&)d(flags\))-30 3099 y(cl_F)j(read_float)f(\(cl_istream)f +(stream,)h(const)h(cl_read_flags&)e(flags\))-30 3209 +y(cl_RA)i(read_rational)e(\(cl_istream)g(stream,)h(const)h +(cl_read_flags&)e(flags\))-30 3318 y(cl_I)i(read_integer)e +(\(cl_istream)h(stream,)g(const)h(cl_read_flags&)d(flags\))450 +3428 y Fr(Reads)i(a)g(n)m(um)m(b)s(er)e(from)g Fp(stream)p +Fr(.)38 b(The)27 b Fp(flags)g Fr(are)h(parameters)f(whic)m(h)h +(a\013ect)h(the)f(input)f(syn)m(tax.)450 3538 y(Whitespace)32 +b(b)s(efore)e(the)g(n)m(um)m(b)s(er)e(is)j(silen)m(tly)h(skipp)s(ed.) +-30 3696 y Fp(cl_N)d(read_complex)e(\(const)i(cl_read_flags&)d(flags,)j +(const)g(char)g(*)h(string,)f(const)g(char)g(*)-30 3806 +y(string_limit,)e(const)i(char)g(*)h(*)g(end_of_parse\))-30 +3915 y(cl_R)f(read_real)f(\(const)h(cl_read_flags&)d(flags,)j(const)g +(char)g(*)h(string,)e(const)h(char)h(*)-30 4025 y(string_limit,)d +(const)i(char)g(*)h(*)g(end_of_parse\))-30 4134 y(cl_F)f(read_float)f +(\(const)g(cl_read_flags&)f(flags,)i(const)g(char)g(*)h(string,)e +(const)h(char)g(*)-30 4244 y(string_limit,)e(const)i(char)g(*)h(*)g +(end_of_parse\))-30 4354 y(cl_RA)f(read_rational)e(\(const)h +(cl_read_flags&)f(flags,)h(const)h(char)h(*)g(string,)e(const)h(char)g +(*)-30 4463 y(string_limit,)e(const)i(char)g(*)h(*)g(end_of_parse\))-30 +4573 y(cl_I)f(read_integer)e(\(const)i(cl_read_flags&)d(flags,)j(const) +g(char)g(*)h(string,)f(const)g(char)g(*)-30 4682 y(string_limit,)e +(const)i(char)g(*)h(*)g(end_of_parse\))450 4792 y Fr(Reads)k(a)h(n)m +(um)m(b)s(er)d(from)g(a)j(string)f(in)g(memory)-8 b(.)50 +b(The)34 b Fp(flags)e Fr(are)j(parameters)e(whic)m(h)h(a\013ect)i(the) +450 4902 y(input)31 b(syn)m(tax.)46 b(The)31 b(string)h(starts)g(at)h +Fp(string)d Fr(and)i(ends)f(at)h Fp(string_limit)d Fr(\(exclusiv)m(e)34 +b(limit\).)450 5011 y Fp(string_limit)29 b Fr(ma)m(y)i(also)i(b)s(e)f +Fp(NULL)p Fr(,)f(denoting)i(the)f(en)m(tire)h(string,)g(i.e.)47 +b(equiv)-5 b(alen)m(t)33 b(to)g Fp(string_)450 5121 y(limit)c(=)h +(string)f(+)h(strlen\(string\))p Fr(.)75 b(If)42 b Fp(end_of_parse)e +Fr(is)j Fp(NULL)p Fr(,)j(the)d(string)g(in)g(memory)450 +5230 y(m)m(ust)30 b(con)m(tain)j(exactly)g(one)f(n)m(um)m(b)s(er)d(and) +i(nothing)g(more,)g(else)i(a)f(fatal)g(error)f(will)h(b)s(e)f +(signalled.)450 5340 y(If)37 b Fp(end_of_parse)d Fr(is)k(not)g +Fp(NULL)p Fr(,)g Fp(*end_of_parse)c Fr(will)k(b)s(e)f(assigned)h(a)g(p) +s(oin)m(ter)g(past)f(the)h(last)p eop +%%Page: 30 32 +30 31 bop -30 -116 a Fr(Chapter)30 b(5:)41 b(Input/Output)2844 +b(30)450 299 y(parsed)32 b(c)m(haracter)h(\(i.e.)48 b +Fp(string_limit)29 b Fr(if)j(nothing)g(came)g(after)h(the)g(n)m(um)m(b) +s(er\).)44 b(Whitespace)34 b(is)450 408 y(not)d(allo)m(w)m(ed.)-30 +565 y(The)f(structure)g Fp(cl_read_flags)d Fr(con)m(tains)k(the)g +(follo)m(wing)g(\014elds:)-30 721 y Fp(cl_read_syntax_t)26 +b(syntax)450 830 y Fr(The)i(p)s(ossible)f(results)h(of)g(the)h(read)f +(op)s(eration.)40 b(P)m(ossible)29 b(v)-5 b(alues)28 +b(are)h Fp(syntax_number)p Fr(,)c Fp(syntax_)450 940 +y(real)p Fr(,)49 b Fp(syntax_rational)p Fr(,)e Fp(syntax_integer)p Fr(,)g Fp(syntax_float)p Fr(,)g Fp(syntax_sfloat)p Fr(,)g -Fp(syntax_)480 4643 y(ffloat)p Fr(,)29 b Fp(syntax_dfloat)p -Fr(,)e Fp(syntax_lfloat)p Fr(.)0 4805 y Fp(cl_read_lsyntax_t)f(lsyntax) -480 4929 y Fr(Sp)s(eci\014es)e(the)i(language-dep)s(enden)m(t)g(syn)m -(tax)f(v)-5 b(arian)m(t)26 b(for)f(the)g(read)g(op)s(eration.)40 -b(P)m(ossible)26 b(v)-5 b(alues)480 5054 y(are)480 5215 -y Fp(lsyntax_standard)960 5340 y Fr(accept)32 b(standard)d(algebraic)j -(notation)g(only)-8 b(,)31 b(no)g(complex)f(n)m(um)m(b)s(ers,)p -eop -%%Page: 40 42 -40 41 bop 0 -116 a Fr(Chapter)30 b(5:)41 b(Input/Output)2784 -b(40)480 366 y Fp(lsyntax_algebraic)960 491 y Fr(accept)32 -b(the)e(algebraic)i(notation)g Fk(x)6 b Fp(+)p Fk(y)i -Fp(i)30 b Fr(for)g(complex)g(n)m(um)m(b)s(ers,)480 679 -y Fp(lsyntax_commonlisp)960 804 y Fr(accept)44 b(the)f -Fp(#b)p Fr(,)i Fp(#o)p Fr(,)g Fp(#x)d Fr(syn)m(taxes)h(for)g(binary)-8 -b(,)45 b(o)s(ctal,)i(hexadecimal)c(n)m(um)m(b)s(ers,)960 -928 y Fp(#)p Fk(base)5 b Fp(R)42 b Fr(for)g(rational)h(n)m(um)m(b)s -(ers)d(in)h(a)i(giv)m(en)g(base,)i Fp(#c\()p Fk(realpart)33 -b(imagpart)r Fp(\))41 b Fr(for)960 1053 y(complex)30 -b(n)m(um)m(b)s(ers,)480 1241 y Fp(lsyntax_all)960 1365 -y Fr(accept)i(all)f(of)g(these)f(extensions.)0 1553 y -Fp(unsigned)e(int)i(rational_base)480 1678 y Fr(The)g(base)g(in)g(whic) -m(h)h(rational)g(n)m(um)m(b)s(ers)d(are)j(read.)0 1866 -y Fp(cl_float_format_t)26 b(float_flags.default_flo)o(at_f)o(orm)o(at) -480 1990 y Fr(The)k(\015oat)h(format)f(used)f(when)h(reading)g +Fp(syntax_)450 1050 y(ffloat)p Fr(,)29 b Fp(syntax_dfloat)p +Fr(,)e Fp(syntax_lfloat)p Fr(.)-30 1206 y Fp(cl_read_lsyntax_t)f +(lsyntax)450 1315 y Fr(Sp)s(eci\014es)31 b(the)g(language-dep)s(enden)m +(t)h(syn)m(tax)g(v)-5 b(arian)m(t)32 b(for)f(the)h(read)f(op)s +(eration.)43 b(P)m(ossible)33 b(v)-5 b(alues)450 1425 +y(are)450 1581 y Fp(lsyntax_standard)930 1691 y Fr(accept)32 +b(standard)d(algebraic)j(notation)g(only)-8 b(,)31 b(no)g(complex)f(n)m +(um)m(b)s(ers,)450 1847 y Fp(lsyntax_algebraic)930 1957 +y Fr(accept)i(the)e(algebraic)i(notation)g Fl(x)6 b Fp(+)p +Fl(y)i Fp(i)30 b Fr(for)g(complex)g(n)m(um)m(b)s(ers,)450 +2113 y Fp(lsyntax_commonlisp)930 2222 y Fr(accept)49 +b(the)g Fp(#b)p Fr(,)j Fp(#o)p Fr(,)g Fp(#x)47 b Fr(syn)m(taxes)i(for)f +(binary)-8 b(,)52 b(o)s(ctal,)i(hexadecimal)48 b(n)m(um)m(b)s(ers,)930 +2332 y Fp(#)p Fl(base)5 b Fp(R)25 b Fr(for)f(rational)i(n)m(um)m(b)s +(ers)d(in)h(a)i(giv)m(en)g(base,)g Fp(#c\()p Fl(realpart)32 +b(imagpart)r Fp(\))24 b Fr(for)h(com-)930 2441 y(plex)30 +b(n)m(um)m(b)s(ers,)450 2598 y Fp(lsyntax_all)930 2707 +y Fr(accept)i(all)f(of)g(these)f(extensions.)-30 2863 +y Fp(unsigned)e(int)i(rational_base)450 2973 y Fr(The)g(base)g(in)g +(whic)m(h)h(rational)g(n)m(um)m(b)s(ers)d(are)j(read.)-30 +3129 y Fp(cl_float_format_t)26 b(float_flags.default_flo)o(at_f)o(orm)o +(at)450 3239 y Fr(The)k(\015oat)h(format)f(used)f(when)h(reading)g (\015oats)h(with)f(exp)s(onen)m(t)g(mark)m(er)g(`)p Fp(e)p -Fr('.)0 2178 y Fp(cl_float_format_t)c(float_flags.default_lfl)o(oat_)o -(for)o(mat)480 2303 y Fr(The)k(\015oat)h(format)f(used)f(when)h +Fr('.)-30 3395 y Fp(cl_float_format_t)c(float_flags.default_lfl)o(oat_) +o(for)o(mat)450 3505 y Fr(The)k(\015oat)h(format)f(used)f(when)h (reading)g(\015oats)h(with)f(exp)s(onen)m(t)g(mark)m(er)g(`)p -Fp(l)p Fr('.)0 2491 y Fp(cl_boolean)e(float_flags.mantissa_de)o(pen)o -(dent)o(_flo)o(at_)o(form)o(at)480 2615 y Fr(When)k(this)g(\015ag)g(is) -g(true,)g(\015oats)h(sp)s(eci\014ed)e(with)g(more)g(digits)i(than)f -(corresp)s(onding)f(to)h(the)g(ex-)480 2740 y(p)s(onen)m(t)25 -b(mark)m(er)f(they)i(con)m(tain,)h(but)e(without)p 2123 -2740 28 4 v 58 w Fk(nnn)f Fr(su\016x,)h(will)h(get)g(a)g(precision)f -(corresp)s(onding)480 2864 y(to)31 b(their)g(n)m(um)m(b)s(er)d(of)i -(signi\014can)m(t)h(digits.)0 3374 y Fs(5.3)68 b(Output)30 -b(functions)0 3655 y Fr(Including)40 b Fp()d -Fr(de\014nes)j(a)h(t)m(yp)s(e)f Fp(cl_ostream)p Fr(,)h(whic)m(h)f(is)g -(the)h(t)m(yp)s(e)f(of)h(the)f(\014rst)g(argumen)m(t)g(to)h(all)0 -3780 y(output)e(functions.)66 b(Unless)39 b(y)m(ou)g(build)f(and)g(use) -h(CLN)f(with)h(the)g(macro)g(CL)p 2847 3780 V 32 w(IO)p -2983 3780 V 32 w(STDIO)f(b)s(eing)h(de\014ned,)0 3904 -y Fp(cl_ostream)28 b Fr(is)i(the)h(same)e(as)i Fp(ostream&)p -Fr(.)0 4185 y(The)f(v)-5 b(ariable)180 4466 y Fp(cl_ostream)28 -b(cl_stdout)0 4778 y Fr(con)m(tains)k(the)e(standard)g(output)g -(stream.)0 5059 y(The)g(v)-5 b(ariable)180 5340 y Fp(cl_ostream)28 -b(cl_stderr)p eop -%%Page: 41 43 -41 42 bop 0 -116 a Fr(Chapter)30 b(5:)41 b(Input/Output)2784 -b(41)0 366 y(con)m(tains)32 b(the)e(standard)g(error)g(output)g -(stream.)0 643 y(These)g(are)h(the)f(simple)g(output)g(functions:)0 -948 y Fp(void)f(fprintchar)f(\(cl_ostream)f(stream,)h(char)i(c\))480 -1072 y Fr(Prin)m(ts)g(the)h(c)m(haracter)h Fp(x)e Fr(literally)i(on)e -(the)h Fp(stream)p Fr(.)0 1252 y Fp(void)e(fprint)g(\(cl_ostream)e -(stream,)i(const)f(char)i(*)g(string\))480 1376 y Fr(Prin)m(ts)g(the)h +Fp(l)p Fr('.)-30 3661 y Fp(cl_boolean)e(float_flags.mantissa_de)o(pen)o +(dent)o(_flo)o(at_)o(form)o(at)450 3770 y Fr(When)h(this)g(\015ag)h(is) +f(true,)g(\015oats)h(sp)s(eci\014ed)e(with)h(more)g(digits)g(than)g +(corresp)s(onding)g(to)g(the)h(exp)s(o-)450 3880 y(nen)m(t)g(mark)m(er) +e(they)i(con)m(tain,)h(but)e(without)p 2018 3880 28 4 +v 62 w Fl(nnn)e Fr(su\016x,)i(will)h(get)h(a)e(precision)h(corresp)s +(onding)e(to)450 3990 y(their)i(n)m(um)m(b)s(er)e(of)j(signi\014can)m +(t)g(digits.)-30 4242 y Fs(5.3)68 b(Output)45 b(functions)-30 +4433 y Fr(Including)24 b Fp()f Fr(de\014nes)h(a)h(t)m(yp)s(e)g +Fp(cl_ostream)p Fr(,)f(whic)m(h)g(is)h(the)h(t)m(yp)s(e)f(of)g(the)g +(\014rst)f(argumen)m(t)h(to)g(all)h(output)-30 4543 y(functions.)40 +b(Unless)28 b(y)m(ou)h(build)f(and)g(use)g(CLN)h(with)f(the)h(macro)f +(CL)p 2391 4543 V 32 w(IO)p 2527 4543 V 33 w(STDIO)f(b)s(eing)i +(de\014ned,)f Fp(cl_ostream)-30 4652 y Fr(is)i(the)h(same)f(as)g +Fp(ostream&)p Fr(.)-30 4785 y(The)g(v)-5 b(ariable)150 +4918 y Fp(cl_ostream)28 b(cl_stdout)-30 5074 y Fr(con)m(tains)k(the)e +(standard)g(output)g(stream.)-30 5207 y(The)g(v)-5 b(ariable)150 +5340 y Fp(cl_ostream)28 b(cl_stderr)p eop +%%Page: 31 33 +31 32 bop -30 -116 a Fr(Chapter)30 b(5:)41 b(Input/Output)2844 +b(31)-30 299 y(con)m(tains)32 b(the)e(standard)g(error)g(output)g +(stream.)-30 444 y(These)g(are)h(the)f(simple)g(output)g(functions:)-30 +618 y Fp(void)f(fprintchar)f(\(cl_ostream)f(stream,)h(char)i(c\))450 +728 y Fr(Prin)m(ts)g(the)h(c)m(haracter)h Fp(x)e Fr(literally)i(on)e +(the)h Fp(stream)p Fr(.)-30 897 y Fp(void)e(fprint)g(\(cl_ostream)e +(stream,)i(const)f(char)i(*)g(string\))450 1007 y Fr(Prin)m(ts)g(the)h Fp(string)d Fr(literally)33 b(on)d(the)g Fp(stream)p -Fr(.)0 1556 y Fp(void)f(fprintdecimal)e(\(cl_ostream)g(stream,)i(int)g -(x\))0 1681 y(void)g(fprintdecimal)e(\(cl_ostream)g(stream,)i(const)g -(cl_I&)g(x\))480 1805 y Fr(Prin)m(ts)h(the)h(in)m(teger)h -Fp(x)e Fr(in)g(decimal)g(on)g(the)h Fp(stream)p Fr(.)0 -1985 y Fp(void)e(fprintbinary)e(\(cl_ostream)h(stream,)g(const)h(cl_I&) -g(x\))480 2110 y Fr(Prin)m(ts)h(the)h(in)m(teger)h Fp(x)e +Fr(.)-30 1176 y Fp(void)f(fprintdecimal)e(\(cl_ostream)g(stream,)i(int) +g(x\))-30 1286 y(void)g(fprintdecimal)e(\(cl_ostream)g(stream,)i(const) +g(cl_I&)g(x\))450 1396 y Fr(Prin)m(ts)h(the)h(in)m(teger)h +Fp(x)e Fr(in)g(decimal)g(on)g(the)h Fp(stream)p Fr(.)-30 +1565 y Fp(void)e(fprintbinary)e(\(cl_ostream)h(stream,)g(const)h(cl_I&) +g(x\))450 1675 y Fr(Prin)m(ts)h(the)h(in)m(teger)h Fp(x)e Fr(in)g(binary)f(\(base)i(2,)g(without)g(pre\014x\))e(on)h(the)h -Fp(stream)p Fr(.)0 2289 y Fp(void)e(fprintoctal)f(\(cl_ostream)f -(stream,)h(const)h(cl_I&)g(x\))480 2414 y Fr(Prin)m(ts)h(the)h(in)m +Fp(stream)p Fr(.)-30 1844 y Fp(void)e(fprintoctal)f(\(cl_ostream)f +(stream,)h(const)h(cl_I&)g(x\))450 1954 y Fr(Prin)m(ts)h(the)h(in)m (teger)h Fp(x)e Fr(in)g(o)s(ctal)h(\(base)g(8,)g(without)g(pre\014x\))e -(on)i(the)f Fp(stream)p Fr(.)0 2594 y Fp(void)f(fprinthexadecimal)d -(\(cl_ostream)h(stream,)i(const)f(cl_I&)h(x\))480 2718 +(on)i(the)f Fp(stream)p Fr(.)-30 2123 y Fp(void)f(fprinthexadecimal)d +(\(cl_ostream)h(stream,)i(const)f(cl_I&)h(x\))450 2233 y Fr(Prin)m(ts)h(the)h(in)m(teger)h Fp(x)e Fr(in)g(hexadecimal)g (\(base)h(16,)h(without)e(pre\014x\))g(on)g(the)h Fp(stream)p -Fr(.)0 3023 y(Eac)m(h)k(of)g(the)g(classes)g Fp(cl_N)p -Fr(,)g Fp(cl_R)p Fr(,)g Fp(cl_RA)p Fr(,)f Fp(cl_I)p Fr(,)h -Fp(cl_F)p Fr(,)f Fp(cl_SF)p Fr(,)h Fp(cl_FF)p Fr(,)f -Fp(cl_DF)p Fr(,)h Fp(cl_LF)e Fr(de\014nes,)i(in)f Fp()p Fr(,)29 b(the)i(follo)m(wing)h -(output)e(functions:)0 3451 y Fp(void)f(fprint)g(\(cl_ostream)e -(stream,)i(const)f Fk(t)m(yp)s(e)5 b Fp(&)31 b(x\))0 -3576 y(cl_ostream)d(operator<<)f(\(cl_ostream)g(stream,)i(const)g -Fk(t)m(yp)s(e)5 b Fp(&)30 b(x\))480 3700 y Fr(Prin)m(ts)38 -b(the)h(n)m(um)m(b)s(er)d Fp(x)i Fr(on)g(the)h Fp(stream)p -Fr(.)63 b(The)38 b(output)g(ma)m(y)g(dep)s(end)f(on)h(the)h(global)g -(prin)m(ter)480 3825 y(settings)k(in)e(the)h(v)-5 b(ariable)43 -b Fp(cl_default_print_flags)p Fr(.)69 b(The)42 b Fp(ostream)e -Fr(\015ags)i(and)f(settings)480 3950 y(\(\015ags,)31 -b(width)f(and)g(lo)s(cale\))i(are)f(ignored.)0 4254 y(The)f(most)g -(\015exible)g(output)g(function,)g(de\014ned)g(in)g Fp()p Fr(,)28 b(are)j(the)f(follo)m(wing:)240 -4510 y Fp(void)47 b(print_complex)92 b(\(cl_ostream)44 -b(stream,)i(const)g(cl_print_flags&)e(flags,)1242 4614 -y(const)j(cl_N&)f(z\);)240 4717 y(void)h(print_real)236 -b(\(cl_ostream)44 b(stream,)i(const)g(cl_print_flags&)e(flags,)1242 -4821 y(const)j(cl_R&)f(z\);)240 4925 y(void)h(print_float)188 -b(\(cl_ostream)44 b(stream,)i(const)g(cl_print_flags&)e(flags,)1242 -5029 y(const)j(cl_F&)f(z\);)240 5132 y(void)h(print_rational)d -(\(cl_ostream)g(stream,)i(const)g(cl_print_flags&)e(flags,)1242 -5236 y(const)j(cl_RA&)f(z\);)240 5340 y(void)h(print_integer)92 -b(\(cl_ostream)44 b(stream,)i(const)g(cl_print_flags&)e(flags,)p -eop -%%Page: 42 44 -42 43 bop 0 -116 a Fr(Chapter)30 b(5:)41 b(Input/Output)2784 -b(42)1242 366 y Fp(const)47 b(cl_I&)f(z\);)0 640 y Fr(Prin)m(ts)30 +Fr(.)-30 2408 y(Eac)m(h)39 b(of)f(the)g(classes)h Fp(cl_N)p +Fr(,)g Fp(cl_R)p Fr(,)g Fp(cl_RA)p Fr(,)g Fp(cl_I)p Fr(,)g +Fp(cl_F)p Fr(,)g Fp(cl_SF)p Fr(,)g Fp(cl_FF)p Fr(,)g +Fp(cl_DF)p Fr(,)f Fp(cl_LF)f Fr(de\014nes,)i(in)f Fp()p Fr(,)29 b(the)i(follo)m(wing)h +(output)e(functions:)-30 2692 y Fp(void)f(fprint)g(\(cl_ostream)e +(stream,)i(const)f Fl(t)m(yp)s(e)5 b Fp(&)31 b(x\))-30 +2801 y(cl_ostream)d(operator<<)f(\(cl_ostream)g(stream,)i(const)g +Fl(t)m(yp)s(e)5 b Fp(&)30 b(x\))450 2911 y Fr(Prin)m(ts)42 +b(the)g(n)m(um)m(b)s(er)e Fp(x)i Fr(on)g(the)g Fp(stream)p +Fr(.)75 b(The)41 b(output)h(ma)m(y)g(dep)s(end)e(on)i(the)h(global)g +(prin)m(ter)450 3021 y(settings)23 b(in)e(the)h(v)-5 +b(ariable)22 b Fp(cl_default_print_flags)p Fr(.)32 b(The)21 +b Fp(ostream)f Fr(\015ags)h(and)h(settings)g(\(\015ags,)450 +3130 y(width)30 b(and)f(lo)s(cale\))k(are)e(ignored.)-30 +3305 y(The)f(most)g(\015exible)g(output)g(function,)g(de\014ned)g(in)g +Fp()p Fr(,)28 b(are)j(the)f(follo)m +(wing:)210 3444 y Fp(void)47 b(print_complex)92 b(\(cl_ostream)44 +b(stream,)i(const)g(cl_print_flags&)e(flags,)1212 3548 +y(const)j(cl_N&)f(z\);)210 3651 y(void)h(print_real)236 +b(\(cl_ostream)44 b(stream,)i(const)g(cl_print_flags&)e(flags,)1212 +3755 y(const)j(cl_R&)f(z\);)210 3859 y(void)h(print_float)188 +b(\(cl_ostream)44 b(stream,)i(const)g(cl_print_flags&)e(flags,)1212 +3963 y(const)j(cl_F&)f(z\);)210 4066 y(void)h(print_rational)d +(\(cl_ostream)g(stream,)i(const)g(cl_print_flags&)e(flags,)1212 +4170 y(const)j(cl_RA&)f(z\);)210 4274 y(void)h(print_integer)92 +b(\(cl_ostream)44 b(stream,)i(const)g(cl_print_flags&)e(flags,)1212 +4378 y(const)j(cl_I&)f(z\);)-30 4522 y Fr(Prin)m(ts)30 b(the)h(n)m(um)m(b)s(er)d Fp(x)i Fr(on)g(the)h Fp(stream)p Fr(.)39 b(The)30 b Fp(flags)f Fr(are)h(parameters)g(whic)m(h)g -(a\013ect)i(the)f(output.)0 914 y(The)f(structure)g(t)m(yp)s(e)g -Fp(cl_print_flags)d Fr(con)m(tains)k(the)g(follo)m(wing)h(\014elds:)0 -1213 y Fp(unsigned)c(int)i(rational_base)480 1338 y Fr(The)g(base)g(in) +(a\013ect)i(the)f(output.)-30 4667 y(The)f(structure)g(t)m(yp)s(e)g +Fp(cl_print_flags)d Fr(con)m(tains)k(the)g(follo)m(wing)h(\014elds:)-30 +4842 y Fp(unsigned)c(int)i(rational_base)450 4951 y Fr(The)g(base)g(in) g(whic)m(h)h(rational)g(n)m(um)m(b)s(ers)d(are)j(prin)m(ted.)40 -b(Default)32 b(is)e Fp(10)p Fr(.)0 1512 y Fp(cl_boolean)e -(rational_readably)480 1637 y Fr(If)i(this)h(\015ag)g(is)g(true,)g -(rational)h(n)m(um)m(b)s(ers)c(are)j(prin)m(ted)f(with)h(radix)f(sp)s -(eci\014ers)g(in)g(Common)f(Lisp)480 1761 y(syn)m(tax)i(\()p -Fp(#)p Fk(n)p Fp(R)f Fr(or)g Fp(#b)g Fr(or)g Fp(#o)g +b(Default)32 b(is)e Fp(10)p Fr(.)-30 5121 y Fp(cl_boolean)e +(rational_readably)450 5230 y Fr(If)34 b(this)h(\015ag)h(is)f(true,)h +(rational)g(n)m(um)m(b)s(ers)c(are)k(prin)m(ted)e(with)h(radix)f(sp)s +(eci\014ers)h(in)f(Common)f(Lisp)450 5340 y(syn)m(tax)e(\()p +Fp(#)p Fl(n)p Fp(R)f Fr(or)g Fp(#b)g Fr(or)g Fp(#o)g Fr(or)g Fp(#x)g Fr(pre\014xes,)g(trailing)h(dot\).)41 -b(Default)32 b(is)e(false.)0 1936 y Fp(cl_boolean)e(float_readably)480 -2060 y Fr(If)i(this)g(\015ag)g(is)g(true,)h(t)m(yp)s(e)f(sp)s(eci\014c) -g(exp)s(onen)m(t)g(mark)m(ers)f(ha)m(v)m(e)j(precedence)e(o)m(v)m(er)i -('E'.)f(Default)g(is)480 2185 y(false.)0 2359 y Fp(cl_float_format_t)26 -b(default_float_format)480 2484 y Fr(Floating)35 b(p)s(oin)m(t)e(n)m -(um)m(b)s(ers)d(of)j(this)g(format)g(will)g(b)s(e)f(prin)m(ted)h(using) -f(the)h('E')g(exp)s(onen)m(t)g(mark)m(er.)480 2608 y(Default)e(is)g -Fp(cl_float_format_ffloat)p Fr(.)0 2782 y Fp(cl_boolean)d -(complex_readably)480 2907 y Fr(If)37 b(this)f(\015ag)i(is)f(true,)h -(complex)f(n)m(um)m(b)s(ers)e(will)i(b)s(e)f(prin)m(ted)h(using)f(the)i -(Common)c(Lisp)i(syn)m(tax)480 3031 y Fp(#C\()p Fk(realpart)c(imagpart) -r Fp(\))p Fr(.)40 b(Default)32 b(is)e(false.)0 3206 y -Fp(cl_string)e(univpoly_varname)480 3330 y Fr(Univ)-5 -b(ariate)31 b(p)s(olynomials)f(with)f(no)h(explicit)h(indeterminate)f -(name)f(will)i(b)s(e)e(prin)m(ted)h(using)f(this)480 -3455 y(v)-5 b(ariable)31 b(name.)40 b(Default)31 b(is)g -Fp("x")p Fr(.)0 3754 y(The)38 b(global)i(v)-5 b(ariable)40 -b Fp(cl_default_print_flags)32 b Fr(con)m(tains)40 b(the)f(default)g(v) --5 b(alues,)41 b(used)d(b)m(y)g(the)h(function)0 3878 -y Fp(fprint)p Fr(.)p eop -%%Page: 43 45 -43 44 bop 0 -116 a Fr(Chapter)30 b(6:)41 b(Rings)3120 -b(43)0 366 y Fo(6)80 b(Rings)0 754 y Fr(CLN)30 b(has)g(a)h(class)g(of)g -(abstract)g(rings.)1433 1010 y Fp(Ring)1338 1113 y(cl_ring)1290 -1217 y()0 1494 y Fr(Rings)f(can)h(b)s(e)f(compared)f(for)h -(equalit)m(y:)0 1798 y Fp(bool)f(operator==)f(\(const)g(cl_ring&,)g -(const)h(cl_ring&\))0 1923 y(bool)g(operator!=)f(\(const)g(cl_ring&,)g -(const)h(cl_ring&\))480 2047 y Fr(These)h(compare)g(t)m(w)m(o)i(rings)e -(for)g(equalit)m(y)-8 b(.)0 2352 y(Giv)m(en)31 b(a)g(ring)f +b(Default)32 b(is)e(false.)p eop +%%Page: 32 34 +32 33 bop -30 -116 a Fr(Chapter)30 b(5:)41 b(Input/Output)2844 +b(32)-30 299 y Fp(cl_boolean)28 b(float_readably)450 +408 y Fr(If)34 b(this)g(\015ag)h(is)f(true,)i(t)m(yp)s(e)e(sp)s +(eci\014c)g(exp)s(onen)m(t)h(mark)m(ers)e(ha)m(v)m(e)j(precedence)f(o)m +(v)m(er)g('E'.)g(Default)h(is)450 518 y(false.)-30 677 +y Fp(cl_float_format_t)26 b(default_float_format)450 +787 y Fr(Floating)40 b(p)s(oin)m(t)d(n)m(um)m(b)s(ers)e(of)j(this)f +(format)g(will)h(b)s(e)f(prin)m(ted)g(using)g(the)h('E')g(exp)s(onen)m +(t)f(mark)m(er.)450 897 y(Default)31 b(is)g Fp(cl_float_format_ffloat)p +Fr(.)-30 1056 y Fp(cl_boolean)d(complex_readably)450 +1166 y Fr(If)41 b(this)g(\015ag)g(is)h(true,)i(complex)c(n)m(um)m(b)s +(ers)f(will)j(b)s(e)e(prin)m(ted)h(using)g(the)g(Common)e(Lisp)h(syn)m +(tax)450 1275 y Fp(#C\()p Fl(realpart)32 b(imagpart)r +Fp(\))p Fr(.)40 b(Default)32 b(is)e(false.)-30 1435 y +Fp(cl_string)e(univpoly_varname)450 1544 y Fr(Univ)-5 +b(ariate)37 b(p)s(olynomials)d(with)i(no)f(explicit)i(indeterminate)e +(name)f(will)i(b)s(e)f(prin)m(ted)g(using)g(this)450 +1654 y(v)-5 b(ariable)31 b(name.)40 b(Default)31 b(is)g +Fp("x")p Fr(.)-30 1813 y(The)43 b(global)j(v)-5 b(ariable)45 +b Fp(cl_default_print_flags)37 b Fr(con)m(tains)46 b(the)e(default)g(v) +-5 b(alues,)48 b(used)43 b(b)m(y)h(the)g(function)-30 +1923 y Fp(fprint)p Fr(.)p eop +%%Page: 33 35 +33 34 bop -30 -116 a Fr(Chapter)30 b(6:)41 b(Rings)3180 +b(33)-30 299 y Fo(6)80 b(Rings)-30 533 y Fr(CLN)30 b(has)g(a)h(class)g +(of)g(abstract)g(rings.)1403 662 y Fp(Ring)1308 765 y(cl_ring)1260 +869 y()-30 1004 y Fr(Rings)f(can)h(b)s(e)f(compared)f(for)h +(equalit)m(y:)-30 1163 y Fp(bool)f(operator==)f(\(const)g(cl_ring&,)g +(const)h(cl_ring&\))-30 1273 y(bool)g(operator!=)f(\(const)g(cl_ring&,) +g(const)h(cl_ring&\))450 1382 y Fr(These)h(compare)g(t)m(w)m(o)i(rings) +e(for)g(equalit)m(y)-8 b(.)-30 1542 y(Giv)m(en)31 b(a)g(ring)f Fp(R)p Fr(,)g(the)h(follo)m(wing)h(mem)m(b)s(ers)27 b(can)k(b)s(e)f -(used.)0 2656 y Fp(void)f(R->fprint)f(\(cl_ostream)f(stream,)i(const)g -(cl_ring_element&)d(x\))0 2780 y(cl_boolean)i(R->equal)g(\(const)g -(cl_ring_element&)e(x,)k(const)f(cl_ring_element&)d(y\))0 -2905 y(cl_ring_element)g(R->zero)j(\(\))0 3030 y(cl_boolean)f(R->zerop) -g(\(const)g(cl_ring_element&)e(x\))0 3154 y(cl_ring_element)g(R->plus)j -(\(const)f(cl_ring_element&)e(x,)k(const)f(cl_ring_element&)d(y\))0 -3279 y(cl_ring_element)g(R->minus)i(\(const)h(cl_ring_element&)d(x,)k -(const)f(cl_ring_element&)d(y\))0 3403 y(cl_ring_element)g(R->uminus)i -(\(const)h(cl_ring_element&)d(x\))0 3528 y(cl_ring_element)g(R->one)j -(\(\))0 3652 y(cl_ring_element)d(R->canonhom)i(\(const)g(cl_I&)h(x\))0 -3777 y(cl_ring_element)d(R->mul)j(\(const)g(cl_ring_element&)c(x,)30 -b(const)f(cl_ring_element&)d(y\))0 3901 y(cl_ring_element)g(R->square)i -(\(const)h(cl_ring_element&)d(x\))0 4026 y(cl_ring_element)g -(R->expt_pos)i(\(const)g(cl_ring_element&)e(x,)k(const)f(cl_I&)g(y\))0 -4302 y Fr(The)h(follo)m(wing)i(rings)e(are)g(built-in.)0 -4607 y Fp(cl_null_ring)d(cl_0_ring)480 4731 y Fr(The)j(n)m(ull)g(ring,) -h(con)m(taining)g(only)g(zero.)0 4911 y Fp(cl_complex_ring)26 -b(cl_C_ring)480 5036 y Fr(The)k(ring)g(of)h(complex)f(n)m(um)m(b)s +(used.)-30 1701 y Fp(void)f(R->fprint)f(\(cl_ostream)f(stream,)i(const) +g(cl_ring_element&)d(x\))-30 1811 y(cl_boolean)i(R->equal)g(\(const)g +(cl_ring_element&)e(x,)k(const)f(cl_ring_element&)d(y\))-30 +1920 y(cl_ring_element)g(R->zero)j(\(\))-30 2030 y(cl_boolean)f +(R->zerop)g(\(const)g(cl_ring_element&)e(x\))-30 2139 +y(cl_ring_element)g(R->plus)j(\(const)f(cl_ring_element&)e(x,)k(const)f +(cl_ring_element&)d(y\))-30 2249 y(cl_ring_element)g(R->minus)i +(\(const)h(cl_ring_element&)d(x,)k(const)f(cl_ring_element&)d(y\))-30 +2359 y(cl_ring_element)g(R->uminus)i(\(const)h(cl_ring_element&)d(x\)) +-30 2468 y(cl_ring_element)g(R->one)j(\(\))-30 2578 y(cl_ring_element)d +(R->canonhom)h(\(const)i(cl_I&)g(x\))-30 2687 y(cl_ring_element)d +(R->mul)j(\(const)g(cl_ring_element&)c(x,)30 b(const)f +(cl_ring_element&)d(y\))-30 2797 y(cl_ring_element)g(R->square)i +(\(const)h(cl_ring_element&)d(x\))-30 2907 y(cl_ring_element)g +(R->expt_pos)h(\(const)i(cl_ring_element&)d(x,)k(const)f(cl_I&)g(y\)) +-30 3041 y Fr(The)h(follo)m(wing)i(rings)e(are)g(built-in.)-30 +3200 y Fp(cl_null_ring)d(cl_0_ring)450 3310 y Fr(The)j(n)m(ull)g(ring,) +h(con)m(taining)g(only)g(zero.)-30 3469 y Fp(cl_complex_ring)26 +b(cl_C_ring)450 3579 y Fr(The)k(ring)g(of)h(complex)f(n)m(um)m(b)s (ers.)38 b(This)29 b(corresp)s(onds)g(to)j(the)e(t)m(yp)s(e)h -Fp(cl_N)p Fr(.)0 5215 y Fp(cl_real_ring)c(cl_R_ring)480 -5340 y Fr(The)j(ring)g(of)h(real)g(n)m(um)m(b)s(ers.)38 +Fp(cl_N)p Fr(.)-30 3738 y Fp(cl_real_ring)c(cl_R_ring)450 +3848 y Fr(The)j(ring)g(of)h(real)g(n)m(um)m(b)s(ers.)38 b(This)29 b(corresp)s(onds)g(to)i(the)g(t)m(yp)s(e)g -Fp(cl_R)p Fr(.)p eop -%%Page: 44 46 -44 45 bop 0 -116 a Fr(Chapter)30 b(6:)41 b(Rings)3120 -b(44)0 366 y Fp(cl_rational_ring)26 b(cl_RA_ring)480 -491 y Fr(The)k(ring)g(of)h(rational)g(n)m(um)m(b)s(ers.)38 +Fp(cl_R)p Fr(.)-30 4007 y Fp(cl_rational_ring)26 b(cl_RA_ring)450 +4117 y Fr(The)k(ring)g(of)h(rational)g(n)m(um)m(b)s(ers.)38 b(This)30 b(corresp)s(onds)f(to)i(the)g(t)m(yp)s(e)f -Fp(cl_RA)p Fr(.)0 665 y Fp(cl_integer_ring)c(cl_I_ring)480 -790 y Fr(The)k(ring)g(of)h(in)m(tegers.)41 b(This)30 +Fp(cl_RA)p Fr(.)-30 4276 y Fp(cl_integer_ring)c(cl_I_ring)450 +4386 y Fr(The)k(ring)g(of)h(in)m(tegers.)41 b(This)30 b(corresp)s(onds)f(to)i(the)g(t)m(yp)s(e)f Fp(cl_I)p -Fr(.)0 1089 y(T)m(yp)s(e)g(tests)h(can)g(b)s(e)e(p)s(erformed)f(for)i +Fr(.)-30 4545 y(T)m(yp)s(e)g(tests)h(can)g(b)s(e)e(p)s(erformed)f(for)i (an)m(y)h(of)g Fp(cl_C_ring)p Fr(,)d Fp(cl_R_ring)p Fr(,)g -Fp(cl_RA_ring)p Fr(,)g Fp(cl_I_ring)p Fr(:)0 1388 y Fp(cl_boolean)g -(instanceof)f(\(const)i(cl_number&)e(x,)j(const)f(cl_number_ring&)d -(R\))480 1512 y Fr(T)-8 b(ests)31 b(whether)f(the)g(giv)m(en)i(n)m(um)m -(b)s(er)c(is)i(an)g(elemen)m(t)h(of)g(the)f(n)m(um)m(b)s(er)e(ring)i -(R.)p eop -%%Page: 45 47 -45 46 bop 0 -116 a Fr(Chapter)30 b(7:)41 b(Mo)s(dular)30 -b(in)m(tegers)2670 b(45)0 366 y Fo(7)80 b(Mo)t(dular)32 -b(in)l(tegers)0 1011 y Fs(7.1)68 b(Mo)t(dular)30 b(in)l(teger)i(rings)0 -1292 y Fr(CLN)24 b(implemen)m(ts)f(mo)s(dular)g(in)m(tegers,)k(i.e.)40 -b(in)m(tegers)26 b(mo)s(dulo)d(a)i(\014xed)f(in)m(teger)i(N.)f(The)g -(mo)s(dulus)d(is)i(explicitly)0 1417 y(part)34 b(of)f(ev)m(ery)i(mo)s -(dular)d(in)m(teger.)52 b(CLN)33 b(do)s(esn't)g(allo)m(w)i(y)m(ou)g(to) -f(\(acciden)m(tally\))j(mix)c(elemen)m(ts)h(of)f(di\013eren)m(t)0 -1541 y(mo)s(dular)20 b(rings,)k(e.g.)39 b Fp(\(3)30 b(mod)f(4\))h(+)g -(\(2)g(mod)f(5\))22 b Fr(will)g(result)g(in)g(a)h(run)m(time)e(error.) -37 b(\(Ideally)23 b(one)g(w)m(ould)f(imagine)0 1666 y(a)28 -b(generic)g(data)g(t)m(yp)s(e)f Fp(cl_MI\(N\))p Fr(,)f(but)g(C)p -Fp(++)g Fr(do)s(esn't)h(ha)m(v)m(e)i(generic)f(t)m(yp)s(es.)39 -b(So)28 b(one)f(has)g(to)h(liv)m(e)g(with)f(run)m(time)0 -1790 y(c)m(hec)m(ks.\))0 2072 y(The)j(class)h(of)g(mo)s(dular)d(in)m -(teger)k(rings)e(is)1433 2332 y Fp(Ring)1338 2436 y(cl_ring)1290 -2540 y()1481 2644 y(|)1481 2748 y(|)1051 2851 -y(Modular)46 b(integer)g(ring)1195 2955 y(cl_modint_ring)1147 -3059 y()0 3340 y Fr(and)30 b(the)g(class)h(of)g(all)g -(mo)s(dular)e(in)m(tegers)i(\(elemen)m(ts)g(of)g(mo)s(dular)d(in)m -(teger)k(rings\))e(is)1195 3601 y Fp(Modular)45 b(integer)1433 -3705 y(cl_MI)1147 3808 y()0 4090 y Fr(Mo)s(dular)30 -b(in)m(teger)i(rings)e(are)g(constructed)h(using)f(the)h(function)0 -4404 y Fp(cl_modint_ring)26 b(cl_find_modint_ring)g(\(const)i(cl_I&)h -(N\))480 4528 y Fr(This)23 b(function)h(returns)e(the)i(mo)s(dular)e -(ring)i(`)p Fp(Z/NZ)p Fr('.)37 b(It)24 b(tak)m(es)i(care)e(of)g -(\014nding)f(out)h(ab)s(out)f(sp)s(ecial)480 4653 y(cases)34 -b(of)f Fp(N)p Fr(,)g(lik)m(e)h(p)s(o)m(w)m(ers)f(of)g(t)m(w)m(o)i(and)d -(o)s(dd)g(n)m(um)m(b)s(ers)e(for)j(whic)m(h)f(Mon)m(tgomery)i(m)m -(ultiplication)480 4777 y(will)39 b(b)s(e)f(a)h(win,)h(and)e -(precomputes)f(an)m(y)h(necessary)h(auxiliary)h(data)f(for)f(computing) -g(mo)s(dulo)480 4902 y Fp(N)p Fr(.)45 b(There)32 b(is)f(a)i(cac)m(he)g -(table)g(of)f(rings,)g(indexed)g(b)m(y)g Fp(N)f Fr(\(or,)i(more)e -(precisely)-8 b(,)34 b(b)m(y)e Fp(abs\(N\))p Fr(\).)44 -b(This)480 5026 y(ensures)29 b(that)i(the)g(precomputation)f(costs)h -(are)g(reduced)e(to)j(a)e(minim)m(um.)0 5340 y(Mo)s(dular)g(in)m(teger) -i(rings)e(can)g(b)s(e)g(compared)f(for)i(equalit)m(y:)p -eop -%%Page: 46 48 -46 47 bop 0 -116 a Fr(Chapter)30 b(7:)41 b(Mo)s(dular)30 -b(in)m(tegers)2670 b(46)0 366 y Fp(bool)29 b(operator==)f(\(const)g -(cl_modint_ring&,)e(const)j(cl_modint_ring&\))0 491 y(bool)g -(operator!=)f(\(const)g(cl_modint_ring&,)e(const)j(cl_modint_ring&\)) -480 616 y Fr(These)e(compare)g(t)m(w)m(o)h(mo)s(dular)e(in)m(teger)i -(rings)f(for)g(equalit)m(y)-8 b(.)42 b(Tw)m(o)27 b(di\013eren)m(t)h -(calls)g(to)g Fp(cl_find_)480 740 y(modint_ring)34 b -Fr(with)i(the)h(same)f(argumen)m(t)g(necessarily)h(return)f(the)h(same) -f(ring)g(b)s(ecause)h(it)g(is)480 865 y(memoized)29 b(in)h(the)h(cac)m -(he)h(table.)0 1318 y Fs(7.2)68 b(F)-11 b(unctions)30 -b(on)g(mo)t(dular)g(in)l(tegers)0 1593 y Fr(Giv)m(en)h(a)g(mo)s(dular)d -(in)m(teger)k(ring)e Fp(R)p Fr(,)h(the)f(follo)m(wing)i(mem)m(b)s(ers)c -(can)i(b)s(e)g(used.)0 1893 y Fp(cl_I)f(R->modulus)480 -2017 y Fr(This)h(is)g(the)h(ring's)f(mo)s(dulus,)e(normalized)i(to)h(b) -s(e)e(nonnegativ)m(e:)43 b Fp(abs\(N\))p Fr(.)0 2193 -y Fp(cl_MI)29 b(R->zero\(\))480 2317 y Fr(This)h(returns)f -Fp(0)h(mod)f(N)p Fr(.)0 2493 y Fp(cl_MI)g(R->one\(\))480 -2617 y Fr(This)h(returns)f Fp(1)h(mod)f(N)p Fr(.)0 2793 -y Fp(cl_MI)g(R->canonhom)e(\(const)i(cl_I&)g(x\))480 -2917 y Fr(This)h(returns)f Fp(x)h(mod)f(N)p Fr(.)0 3093 -y Fp(cl_I)g(R->retract)f(\(const)g(cl_MI&)h(x\))480 3217 -y Fr(This)20 b(is)h(a)g(partial)g(in)m(v)m(erse)h(function)e(to)i -Fp(R->canonhom)p Fr(.)34 b(It)21 b(returns)e(the)i(standard)f(represen) -m(tativ)m(e)480 3342 y(\()p Fp(>=0)p Fr(,)30 b Fp(random\(cl_random_stat) -o(e&)24 b(randomstate\))0 3642 y(cl_MI)29 b(R->random\(\))480 -3766 y Fr(This)h(returns)f(a)h(random)f(in)m(teger)j(mo)s(dulo)d -Fp(N)p Fr(.)0 4066 y(The)h(follo)m(wing)i(op)s(erations)e(are)h -(de\014ned)e(on)i(mo)s(dular)d(in)m(tegers.)0 4366 y -Fp(cl_modint_ring)e(x.ring)j(\(\))480 4491 y Fr(Returns)g(the)i(ring)f -(to)h(whic)m(h)f(the)h(mo)s(dular)d(in)m(teger)k Fp(x)e -Fr(b)s(elongs.)0 4666 y Fp(cl_MI)f(operator+)f(\(const)g(cl_MI&,)h -(const)g(cl_MI&\))480 4791 y Fr(Returns)j(the)h(sum)f(of)h(t)m(w)m(o)h -(mo)s(dular)d(in)m(tegers.)51 b(One)32 b(of)i(the)f(argumen)m(ts)f(ma)m -(y)h(also)h(b)s(e)f(a)g(plain)480 4915 y(in)m(teger.)0 -5091 y Fp(cl_MI)c(operator-)f(\(const)g(cl_MI&,)h(const)g(cl_MI&\))480 -5215 y Fr(Returns)k(the)h(di\013erence)h(of)f(t)m(w)m(o)i(mo)s(dular)c -(in)m(tegers.)53 b(One)33 b(of)i(the)f(argumen)m(ts)f(ma)m(y)h(also)h -(b)s(e)f(a)480 5340 y(plain)c(in)m(teger.)p eop -%%Page: 47 49 -47 48 bop 0 -116 a Fr(Chapter)30 b(7:)41 b(Mo)s(dular)30 -b(in)m(tegers)2670 b(47)0 366 y Fp(cl_MI)29 b(operator-)f(\(const)g -(cl_MI&\))480 491 y Fr(Returns)h(the)i(negativ)m(e)i(of)d(a)h(mo)s -(dular)d(in)m(teger.)0 663 y Fp(cl_MI)h(operator*)f(\(const)g(cl_MI&,)h -(const)g(cl_MI&\))480 787 y Fr(Returns)37 b(the)i(pro)s(duct)e(of)h(t)m -(w)m(o)i(mo)s(dular)c(in)m(tegers.)65 b(One)38 b(of)g(the)h(argumen)m -(ts)e(ma)m(y)h(also)h(b)s(e)f(a)480 912 y(plain)30 b(in)m(teger.)0 -1084 y Fp(cl_MI)f(square)g(\(const)f(cl_MI&\))480 1208 -y Fr(Returns)h(the)i(square)f(of)h(a)f(mo)s(dular)f(in)m(teger.)0 -1380 y Fp(cl_MI)g(recip)g(\(const)g(cl_MI&)f(x\))480 -1505 y Fr(Returns)c(the)i(recipro)s(cal)f Fp(x^-1)f Fr(of)i(a)f(mo)s -(dular)e(in)m(teger)k Fp(x)p Fr(.)38 b Fp(x)25 b Fr(m)m(ust)f(b)s(e)h -(coprime)f(to)i(the)f(mo)s(dulus,)480 1629 y(otherwise)31 -b(an)f(error)g(message)h(is)f(issued.)0 1801 y Fp(cl_MI)f(div)g -(\(const)g(cl_MI&)g(x,)h(const)e(cl_MI&)h(y\))480 1926 -y Fr(Returns)j(the)h(quotien)m(t)h Fp(x*y^-1)e Fr(of)h(t)m(w)m(o)h(mo)s -(dular)d(in)m(tegers)j Fp(x)p Fr(,)g Fp(y)p Fr(.)48 b -Fp(y)33 b Fr(m)m(ust)e(b)s(e)i(coprime)f(to)i(the)480 -2050 y(mo)s(dulus,)28 b(otherwise)j(an)f(error)g(message)g(is)h -(issued.)0 2222 y Fp(cl_MI)e(expt_pos)f(\(const)h(cl_MI&)f(x,)i(const)f -(cl_I&)g(y\))480 2347 y(y)h Fr(m)m(ust)f(b)s(e)h Fp(>)g -Fr(0.)41 b(Returns)30 b Fp(x^y)p Fr(.)0 2519 y Fp(cl_MI)f(expt)g -(\(const)g(cl_MI&)f(x,)i(const)f(cl_I&)g(y\))480 2643 -y Fr(Returns)d Fp(x^y)p Fr(.)39 b(If)26 b Fp(y)h Fr(is)g(negativ)m(e,)j -Fp(x)d Fr(m)m(ust)f(b)s(e)h(coprime)f(to)i(the)f(mo)s(dulus,)e(else)j -(an)f(error)g(message)480 2768 y(is)j(issued.)0 2940 -y Fp(cl_MI)f(operator<<)f(\(const)g(cl_MI&)h(x,)h(const)f(cl_I&)f(y\)) -480 3064 y Fr(Returns)h Fp(x*2^y)p Fr(.)0 3236 y Fp(cl_MI)g(operator>>) -f(\(const)g(cl_MI&)h(x,)h(const)f(cl_I&)f(y\))480 3361 -y Fr(Returns)g Fp(x*2^-y)p Fr(.)38 b(When)29 b Fp(y)f -Fr(is)h(p)s(ositiv)m(e,)i(the)e(mo)s(dulus)d(m)m(ust)i(b)s(e)g(o)s(dd,) -g(or)h(an)g(error)f(message)h(is)480 3485 y(issued.)0 -3657 y Fp(bool)g(operator==)f(\(const)g(cl_MI&,)h(const)g(cl_MI&\))0 -3782 y(bool)g(operator!=)f(\(const)g(cl_MI&,)h(const)g(cl_MI&\))480 -3906 y Fr(Compares)24 b(t)m(w)m(o)i(mo)s(dular)d(in)m(tegers,)28 -b(b)s(elonging)e(to)f(the)h(same)e(mo)s(dular)f(in)m(teger)k(ring,)f -(for)f(equal-)480 4031 y(it)m(y)-8 b(.)0 4203 y Fp(cl_boolean)28 -b(zerop)h(\(const)f(cl_MI&)h(x\))480 4327 y Fr(Returns)g(true)i(if)f -Fp(x)g Fr(is)g Fp(0)g(mod)g(N)p Fr(.)0 4625 y(The)g(follo)m(wing)i -(output)e(functions)g(are)g(de\014ned)g(\(see)h(also)g(the)g(c)m -(hapter)g(on)f(input/output\).)0 4923 y Fp(void)f(fprint)g -(\(cl_ostream)e(stream,)i(const)f(cl_MI&)h(x\))0 5047 -y(cl_ostream)f(operator<<)f(\(cl_ostream)g(stream,)i(const)g(cl_MI&)f -(x\))480 5172 y Fr(Prin)m(ts)36 b(the)h(mo)s(dular)e(in)m(teger)j -Fp(x)e Fr(on)g(the)h Fp(stream)p Fr(.)57 b(The)36 b(output)h(ma)m(y)f -(dep)s(end)e(on)j(the)g(global)480 5296 y(prin)m(ter)30 -b(settings)h(in)f(the)h(v)-5 b(ariable)31 b Fp(cl_default_print_flags)p -Fr(.)p eop -%%Page: 48 50 -48 49 bop 0 -116 a Fr(Chapter)30 b(8:)41 b(Sym)m(b)s(olic)29 -b(data)i(t)m(yp)s(es)2536 b(48)0 366 y Fo(8)80 b(Sym)l(b)t(olic)31 -b(data)f(t)l(yp)t(es)0 784 y Fr(CLN)g(implemen)m(ts)f(t)m(w)m(o)j(sym)m -(b)s(olic)d(\(non-n)m(umeric\))h(data)h(t)m(yp)s(es:)41 -b(strings)30 b(and)g(sym)m(b)s(ols.)0 1310 y Fs(8.1)68 -b(Strings)0 1593 y Fr(The)30 b(class)1290 1855 y Fp(String)1242 -1959 y(cl_string)1195 2062 y()0 2345 y Fr(implemen)m(ts)f -(imm)m(utable)g(strings.)0 2628 y(Strings)h(are)h(constructed)f -(through)g(the)h(follo)m(wing)g(constructors:)0 2944 -y Fp(cl_string)d(\(const)h(char)g(*)h(s\))480 3069 y -Fr(Returns)f(an)i(imm)m(utable)e(cop)m(y)i(of)f(the)h -(\(zero-terminated\))h(C)e(string)g Fp(s)p Fr(.)0 3260 +Fp(cl_RA_ring)p Fr(,)g Fp(cl_I_ring)p Fr(:)-30 4705 y +Fp(cl_boolean)g(instanceof)f(\(const)i(cl_number&)e(x,)j(const)f +(cl_number_ring&)d(R\))450 4814 y Fr(T)-8 b(ests)31 b(whether)f(the)g +(giv)m(en)i(n)m(um)m(b)s(er)c(is)i(an)g(elemen)m(t)h(of)g(the)f(n)m(um) +m(b)s(er)e(ring)i(R.)p eop +%%Page: 34 36 +34 35 bop -30 -116 a Fr(Chapter)30 b(7:)41 b(Mo)s(dular)30 +b(in)m(tegers)2730 b(34)-30 299 y Fo(7)80 b(Mo)t(dular)55 +b(in)l(tegers)-30 657 y Fs(7.1)68 b(Mo)t(dular)45 b(in)l(teger)h(rings) +-30 850 y Fr(CLN)29 b(implemen)m(ts)f(mo)s(dular)f(in)m(tegers,)k(i.e.) +41 b(in)m(tegers)31 b(mo)s(dulo)c(a)j(\014xed)e(in)m(teger)j(N.)f(The)e +(mo)s(dulus)f(is)i(explicitly)-30 960 y(part)37 b(of)h(ev)m(ery)g(mo)s +(dular)e(in)m(teger.)63 b(CLN)37 b(do)s(esn't)g(allo)m(w)i(y)m(ou)f(to) +g(\(acciden)m(tally\))j(mix)36 b(elemen)m(ts)i(of)f(di\013eren)m(t)-30 +1069 y(mo)s(dular)25 b(rings,)j(e.g.)41 b Fp(\(3)30 b(mod)f(4\))h(+)g +(\(2)g(mod)f(5\))e Fr(will)h(result)f(in)g(a)h(run)m(time)e(error.)40 +b(\(Ideally)28 b(one)g(w)m(ould)f(imagine)-30 1179 y(a)k(generic)h +(data)f(t)m(yp)s(e)g Fp(cl_MI\(N\))p Fr(,)e(but)h(C)p +Fp(++)g Fr(do)s(esn't)h(ha)m(v)m(e)h(generic)g(t)m(yp)s(es.)42 +b(So)30 b(one)h(has)g(to)h(liv)m(e)g(with)e(run)m(time)-30 +1288 y(c)m(hec)m(ks.\))-30 1423 y(The)g(class)h(of)g(mo)s(dular)d(in)m +(teger)k(rings)e(is)1403 1552 y Fp(Ring)1308 1656 y(cl_ring)1260 +1760 y()1451 1863 y(|)1451 1967 y(|)1021 2071 +y(Modular)46 b(integer)g(ring)1165 2175 y(cl_modint_ring)1117 +2279 y()-30 2413 y Fr(and)30 b(the)g(class)h(of)g(all) +g(mo)s(dular)e(in)m(tegers)i(\(elemen)m(ts)g(of)g(mo)s(dular)d(in)m +(teger)k(rings\))e(is)1165 2542 y Fp(Modular)45 b(integer)1403 +2646 y(cl_MI)1117 2750 y()-30 2885 y +Fr(Mo)s(dular)30 b(in)m(teger)i(rings)e(are)g(constructed)h(using)f +(the)h(function)-30 3044 y Fp(cl_modint_ring)26 b(cl_find_modint_ring)g +(\(const)i(cl_I&)h(N\))450 3154 y Fr(This)f(function)g(returns)f(the)h +(mo)s(dular)e(ring)j(`)p Fp(Z/NZ)p Fr('.)39 b(It)28 b(tak)m(es)i(care)f +(of)g(\014nding)e(out)h(ab)s(out)g(sp)s(ecial)450 3264 +y(cases)e(of)e Fp(N)p Fr(,)i(lik)m(e)g(p)s(o)m(w)m(ers)f(of)g(t)m(w)m +(o)h(and)e(o)s(dd)f(n)m(um)m(b)s(ers)g(for)h(whic)m(h)h(Mon)m(tgomery)g +(m)m(ultiplication)h(will)450 3373 y(b)s(e)g(a)h(win,)g(and)f +(precomputes)f(an)m(y)i(necessary)g(auxiliary)h(data)f(for)f(computing) +g(mo)s(dulo)f Fp(N)p Fr(.)39 b(There)450 3483 y(is)27 +b(a)h(cac)m(he)g(table)g(of)g(rings,)f(indexed)g(b)m(y)g +Fp(N)g Fr(\(or,)h(more)e(precisely)-8 b(,)29 b(b)m(y)f +Fp(abs\(N\))p Fr(\).)38 b(This)26 b(ensures)g(that)450 +3592 y(the)31 b(precomputation)e(costs)j(are)e(reduced)g(to)h(a)g +(minim)m(um.)-30 3752 y(Mo)s(dular)f(in)m(teger)i(rings)e(can)g(b)s(e)g +(compared)f(for)i(equalit)m(y:)-30 3912 y Fp(bool)e(operator==)f +(\(const)g(cl_modint_ring&,)e(const)j(cl_modint_ring&\))-30 +4022 y(bool)g(operator!=)f(\(const)g(cl_modint_ring&,)e(const)j +(cl_modint_ring&\))450 4131 y Fr(These)j(compare)g(t)m(w)m(o)h(mo)s +(dular)d(in)m(teger)k(rings)d(for)h(equalit)m(y)-8 b(.)48 +b(Tw)m(o)32 b(di\013eren)m(t)h(calls)g(to)g Fp(cl_find_)450 +4241 y(modint_ring)39 b Fr(with)i(the)h(same)f(argumen)m(t)g +(necessarily)h(return)f(the)h(same)f(ring)g(b)s(ecause)h(it)g(is)450 +4350 y(memoized)29 b(in)h(the)h(cac)m(he)h(table.)-30 +4608 y Fs(7.2)68 b(F)-11 b(unctions)44 b(on)h(mo)t(dular)g(in)l(tegers) +-30 4801 y Fr(Giv)m(en)31 b(a)g(mo)s(dular)d(in)m(teger)k(ring)e +Fp(R)p Fr(,)h(the)f(follo)m(wing)i(mem)m(b)s(ers)c(can)i(b)s(e)g(used.) +-30 4961 y Fp(cl_I)f(R->modulus)450 5071 y Fr(This)h(is)g(the)h(ring's) +f(mo)s(dulus,)e(normalized)i(to)h(b)s(e)e(nonnegativ)m(e:)43 +b Fp(abs\(N\))p Fr(.)-30 5230 y Fp(cl_MI)29 b(R->zero\(\))450 +5340 y Fr(This)h(returns)f Fp(0)h(mod)f(N)p Fr(.)p eop +%%Page: 35 37 +35 36 bop -30 -116 a Fr(Chapter)30 b(7:)41 b(Mo)s(dular)30 +b(in)m(tegers)2730 b(35)-30 299 y Fp(cl_MI)29 b(R->one\(\))450 +408 y Fr(This)h(returns)f Fp(1)h(mod)f(N)p Fr(.)-30 576 +y Fp(cl_MI)g(R->canonhom)e(\(const)i(cl_I&)g(x\))450 +686 y Fr(This)h(returns)f Fp(x)h(mod)f(N)p Fr(.)-30 853 +y Fp(cl_I)g(R->retract)f(\(const)g(cl_MI&)h(x\))450 963 +y Fr(This)c(is)h(a)h(partial)f(in)m(v)m(erse)h(function)f(to)h +Fp(R->canonhom)p Fr(.)36 b(It)26 b(returns)f(the)h(standard)f(represen) +m(tativ)m(e)450 1072 y(\()p Fp(>=0)p Fr(,)30 b Fp(random\(cl_random_stat)o(e&)24 b(randomstate\))-30 +1349 y(cl_MI)29 b(R->random\(\))450 1459 y Fr(This)h(returns)f(a)h +(random)f(in)m(teger)j(mo)s(dulo)d Fp(N)p Fr(.)-30 1630 +y(The)h(follo)m(wing)i(op)s(erations)e(are)h(de\014ned)e(on)i(mo)s +(dular)d(in)m(tegers.)-30 1802 y Fp(cl_modint_ring)e(x.ring)j(\(\))450 +1912 y Fr(Returns)g(the)i(ring)f(to)h(whic)m(h)f(the)h(mo)s(dular)d(in) +m(teger)k Fp(x)e Fr(b)s(elongs.)-30 2079 y Fp(cl_MI)f(operator+)f +(\(const)g(cl_MI&,)h(const)g(cl_MI&\))450 2189 y Fr(Returns)36 +b(the)h(sum)d(of)j(t)m(w)m(o)h(mo)s(dular)d(in)m(tegers.)60 +b(One)37 b(of)f(the)h(argumen)m(ts)f(ma)m(y)g(also)i(b)s(e)e(a)h(plain) +450 2298 y(in)m(teger.)-30 2466 y Fp(cl_MI)29 b(operator-)f(\(const)g +(cl_MI&,)h(const)g(cl_MI&\))450 2575 y Fr(Returns)37 +b(the)h(di\013erence)g(of)g(t)m(w)m(o)h(mo)s(dular)d(in)m(tegers.)65 +b(One)37 b(of)h(the)g(argumen)m(ts)f(ma)m(y)h(also)g(b)s(e)g(a)450 +2685 y(plain)30 b(in)m(teger.)-30 2852 y Fp(cl_MI)f(operator-)f +(\(const)g(cl_MI&\))450 2962 y Fr(Returns)h(the)i(negativ)m(e)i(of)d(a) +h(mo)s(dular)d(in)m(teger.)-30 3130 y Fp(cl_MI)h(operator*)f(\(const)g +(cl_MI&,)h(const)g(cl_MI&\))450 3239 y Fr(Returns)e(the)g(pro)s(duct)f +(of)i(t)m(w)m(o)h(mo)s(dular)c(in)m(tegers.)41 b(One)27 +b(of)h(the)f(argumen)m(ts)g(ma)m(y)g(also)h(b)s(e)f(a)h(plain)450 +3349 y(in)m(teger.)-30 3516 y Fp(cl_MI)h(square)g(\(const)f(cl_MI&\)) +450 3626 y Fr(Returns)h(the)i(square)f(of)h(a)f(mo)s(dular)f(in)m +(teger.)-30 3793 y Fp(cl_MI)g(recip)g(\(const)g(cl_MI&)f(x\))450 +3903 y Fr(Returns)g(the)i(recipro)s(cal)g Fp(x^-1)e Fr(of)i(a)f(mo)s +(dular)f(in)m(teger)i Fp(x)p Fr(.)40 b Fp(x)29 b Fr(m)m(ust)g(b)s(e)f +(coprime)h(to)h(the)f(mo)s(dulus,)450 4012 y(otherwise)i(an)f(error)g +(message)h(is)f(issued.)-30 4180 y Fp(cl_MI)f(div)g(\(const)g(cl_MI&)g +(x,)h(const)e(cl_MI&)h(y\))450 4290 y Fr(Returns)36 b(the)g(quotien)m +(t)i Fp(x*y^-1)d Fr(of)h(t)m(w)m(o)i(mo)s(dular)c(in)m(tegers)k +Fp(x)p Fr(,)g Fp(y)p Fr(.)59 b Fp(y)36 b Fr(m)m(ust)f(b)s(e)h(coprime)g +(to)h(the)450 4399 y(mo)s(dulus,)28 b(otherwise)j(an)f(error)g(message) +g(is)h(issued.)-30 4567 y Fp(cl_MI)e(expt_pos)f(\(const)h(cl_MI&)f(x,)i +(const)f(cl_I&)g(y\))450 4676 y(y)h Fr(m)m(ust)f(b)s(e)h +Fp(>)g Fr(0.)41 b(Returns)30 b Fp(x^y)p Fr(.)-30 4844 +y Fp(cl_MI)f(expt)g(\(const)g(cl_MI&)f(x,)i(const)f(cl_I&)g(y\))450 +4953 y Fr(Returns)h Fp(x^y)p Fr(.)42 b(If)30 b Fp(y)h +Fr(is)g(negativ)m(e,)i Fp(x)e Fr(m)m(ust)f(b)s(e)g(coprime)g(to)i(the)f +(mo)s(dulus,)e(else)i(an)g(error)g(message)450 5063 y(is)f(issued.)-30 +5230 y Fp(cl_MI)f(operator<<)f(\(const)g(cl_MI&)h(x,)h(const)f(cl_I&)f +(y\))450 5340 y Fr(Returns)h Fp(x*2^y)p Fr(.)p eop +%%Page: 36 38 +36 37 bop -30 -116 a Fr(Chapter)30 b(7:)41 b(Mo)s(dular)30 +b(in)m(tegers)2730 b(36)-30 299 y Fp(cl_MI)29 b(operator>>)f(\(const)g +(cl_MI&)h(x,)h(const)f(cl_I&)f(y\))450 408 y Fr(Returns)k +Fp(x*2^-y)p Fr(.)45 b(When)33 b Fp(y)f Fr(is)g(p)s(ositiv)m(e,)j(the)e +(mo)s(dulus)c(m)m(ust)j(b)s(e)g(o)s(dd,)g(or)h(an)f(error)g(message)h +(is)450 518 y(issued.)-30 677 y Fp(bool)c(operator==)f(\(const)g +(cl_MI&,)h(const)g(cl_MI&\))-30 787 y(bool)g(operator!=)f(\(const)g +(cl_MI&,)h(const)g(cl_MI&\))450 897 y Fr(Compares)21 +b(t)m(w)m(o)j(mo)s(dular)c(in)m(tegers,)25 b(b)s(elonging)e(to)g(the)f +(same)g(mo)s(dular)e(in)m(teger)k(ring,)g(for)e(equalit)m(y)-8 +b(.)-30 1056 y Fp(cl_boolean)28 b(zerop)h(\(const)f(cl_MI&)h(x\))450 +1166 y Fr(Returns)g(true)i(if)f Fp(x)g Fr(is)g Fp(0)g(mod)g(N)p +Fr(.)-30 1325 y(The)g(follo)m(wing)i(output)e(functions)g(are)g +(de\014ned)g(\(see)h(also)g(the)g(c)m(hapter)g(on)f(input/output\).)-30 +1484 y Fp(void)f(fprint)g(\(cl_ostream)e(stream,)i(const)f(cl_MI&)h +(x\))-30 1594 y(cl_ostream)f(operator<<)f(\(cl_ostream)g(stream,)i +(const)g(cl_MI&)f(x\))450 1704 y Fr(Prin)m(ts)40 b(the)h(mo)s(dular)d +(in)m(teger)k Fp(x)d Fr(on)i(the)f Fp(stream)p Fr(.)69 +b(The)40 b(output)g(ma)m(y)f(dep)s(end)g(on)h(the)h(global)450 +1813 y(prin)m(ter)30 b(settings)h(in)f(the)h(v)-5 b(ariable)31 +b Fp(cl_default_print_flags)p Fr(.)p eop +%%Page: 37 39 +37 38 bop -30 -116 a Fr(Chapter)30 b(8:)41 b(Sym)m(b)s(olic)29 +b(data)i(t)m(yp)s(es)2596 b(37)-30 299 y Fo(8)80 b(Sym)l(b)t(olic)54 +b(data)g(t)l(yp)t(es)-30 513 y Fr(CLN)30 b(implemen)m(ts)f(t)m(w)m(o)j +(sym)m(b)s(olic)d(\(non-n)m(umeric\))h(data)h(t)m(yp)s(es:)41 +b(strings)30 b(and)g(sym)m(b)s(ols.)-30 758 y Fs(8.1)68 +b(Strings)-30 946 y Fr(The)30 b(class)1260 1071 y Fp(String)1212 +1175 y(cl_string)1165 1278 y()-30 1409 y +Fr(implemen)m(ts)f(imm)m(utable)g(strings.)-30 1539 y(Strings)h(are)h +(constructed)f(through)g(the)h(follo)m(wing)g(constructors:)-30 +1691 y Fp(cl_string)d(\(const)h(char)g(*)h(s\))450 1800 +y Fr(Returns)f(an)i(imm)m(utable)e(cop)m(y)i(of)f(the)h +(\(zero-terminated\))h(C)e(string)g Fp(s)p Fr(.)-30 1951 y Fp(cl_string)e(\(const)h(char)g(*)h(ptr,)f(unsigned)f(long)h(len\)) -480 3385 y Fr(Returns)34 b(an)h(imm)m(utable)f(cop)m(y)h(of)g(the)h -Fp(len)e Fr(c)m(haracters)i(at)g Fp(ptr[0])p Fr(,)f Fn(:)15 -b(:)g(:)q Fr(,)36 b Fp(ptr[len-1])p Fr(.)52 b(NUL)480 -3509 y(c)m(haracters)32 b(are)f(allo)m(w)m(ed.)0 3826 +450 2061 y Fr(Returns)36 b(an)h(imm)m(utable)f(cop)m(y)i(of)f(the)g +Fp(len)f Fr(c)m(haracters)j(at)e Fp(ptr[0])p Fr(,)43 +b(.)22 b(.)h(.)11 b(,)39 b Fp(ptr[len-1])p Fr(.)58 b(NUL)450 +2171 y(c)m(haracters)32 b(are)f(allo)m(w)m(ed.)-30 2322 y(The)f(follo)m(wing)i(functions)e(are)g(a)m(v)-5 b(ailable)33 -b(on)d(strings:)0 4142 y Fp(operator)e(=)480 4267 y Fr(Assignmen)m(t)i -(from)f Fp(cl_string)f Fr(and)h Fp(const)g(char)h(*)p -Fr(.)0 4458 y Fp(s.length\(\))0 4583 y(strlen\(s\))480 -4707 y Fr(Returns)f(the)i(length)g(of)f(the)h(string)f -Fp(s)p Fr(.)0 4899 y Fp(s[i])288 b Fr(Returns)24 b(the)h -Fp(i)p Fr(th)f(c)m(haracter)j(of)e(the)f(string)h Fp(s)p -Fr(.)39 b Fp(i)24 b Fr(m)m(ust)g(b)s(e)g(in)h(the)f(range)i -Fp(0)k(<=)f(i)h(<)g(s.length\(\))p Fr(.)0 5091 y Fp(bool)f(equal)g -(\(const)g(cl_string&)e(s1,)j(const)f(cl_string&)e(s2\))480 -5215 y Fr(Compares)34 b(t)m(w)m(o)i(strings)f(for)g(equalit)m(y)-8 -b(.)57 b(One)35 b(of)g(the)h(argumen)m(ts)e(ma)m(y)h(also)h(b)s(e)f(a)g -(plain)g Fp(const)480 5340 y(char)29 b(*)p Fr(.)p eop -%%Page: 49 51 -49 50 bop 0 -116 a Fr(Chapter)30 b(8:)41 b(Sym)m(b)s(olic)29 -b(data)i(t)m(yp)s(es)2536 b(49)0 366 y Fs(8.2)68 b(Sym)l(b)t(ols)0 -640 y Fr(Sym)m(b)s(ols)40 b(are)j(uniqui\014ed)d(strings:)64 -b(all)43 b(sym)m(b)s(ols)e(with)h(the)g(same)g(name)f(are)i(shared.)75 -b(This)41 b(means)g(that)0 765 y(comparison)34 b(of)i(t)m(w)m(o)g(sym)m -(b)s(ols)e(is)h(fast)h(\(e\013ectiv)m(ely)i(just)d(a)g(p)s(oin)m(ter)g -(comparison\),)h(whereas)f(comparison)g(of)0 890 y(t)m(w)m(o)26 -b(strings)f(m)m(ust)f(in)g(the)h(w)m(orst)h(case)g(w)m(alk)f(b)s(oth)f -(strings)h(un)m(til)g(their)g(end.)38 b(Sym)m(b)s(ols)24 -b(are)h(used,)g(for)g(example,)0 1014 y(as)31 b(tags)g(for)f(prop)s -(erties,)g(as)h(names)e(of)i(v)-5 b(ariables)31 b(in)f(p)s(olynomial)f -(rings,)i(etc.)0 1288 y(Sym)m(b)s(ols)e(are)h(constructed)h(through)f -(the)g(follo)m(wing)i(constructor:)0 1587 y Fp(cl_symbol)c(\(const)h -(cl_string&)e(s\))480 1711 y Fr(Lo)s(oks)j(up)g(or)g(creates)i(a)f(new) -e(sym)m(b)s(ol)h(with)g(a)g(giv)m(en)i(name.)0 2010 y(The)e(follo)m -(wing)i(op)s(erations)e(are)h(a)m(v)-5 b(ailable)33 b(on)d(sym)m(b)s -(ols:)0 2309 y Fp(cl_string)e(\(const)h(cl_symbol&)e(sym\))480 -2434 y Fr(Con)m(v)m(ersion)k(to)g Fp(cl_string)p Fr(:)38 +b(on)d(strings:)-30 2473 y Fp(operator)e(=)450 2583 y +Fr(Assignmen)m(t)i(from)f Fp(cl_string)f Fr(and)h Fp(const)g(char)h(*)p +Fr(.)-30 2734 y Fp(s.length\(\))-30 2844 y(strlen\(s\))450 +2953 y Fr(Returns)f(the)i(length)g(of)f(the)h(string)f +Fp(s)p Fr(.)-30 3104 y Fp(s[i])288 b Fr(Returns)28 b(the)i +Fp(i)p Fr(th)f(c)m(haracter)i(of)e(the)g(string)h Fp(s)p +Fr(.)40 b Fp(i)29 b Fr(m)m(ust)f(b)s(e)h(in)g(the)g(range)h +Fp(0)g(<=)f(i)h(<)g(s.length\(\))p Fr(.)-30 3256 y Fp(bool)f(equal)g +(\(const)g(cl_string&)e(s1,)j(const)f(cl_string&)e(s2\))450 +3365 y Fr(Compares)38 b(t)m(w)m(o)i(strings)f(for)f(equalit)m(y)-8 +b(.)69 b(One)38 b(of)h(the)g(argumen)m(ts)g(ma)m(y)f(also)i(b)s(e)e(a)i +(plain)e Fp(const)450 3475 y(char)29 b(*)p Fr(.)-30 3720 +y Fs(8.2)68 b(Sym)l(b)t(ols)-30 3908 y Fr(Sym)m(b)s(ols)31 +b(are)i(uniqui\014ed)d(strings:)45 b(all)34 b(sym)m(b)s(ols)d(with)h +(the)g(same)g(name)g(are)h(shared.)46 b(This)32 b(means)f(that)i(com-) +-30 4018 y(parison)38 b(of)g(t)m(w)m(o)i(sym)m(b)s(ols)d(is)h(fast)h +(\(e\013ectiv)m(ely)j(just)37 b(a)i(p)s(oin)m(ter)f(comparison\),)i +(whereas)f(comparison)e(of)i(t)m(w)m(o)-30 4128 y(strings)32 +b(m)m(ust)f(in)g(the)i(w)m(orst)f(case)h(w)m(alk)g(b)s(oth)e(strings)h +(un)m(til)g(their)g(end.)45 b(Sym)m(b)s(ols)30 b(are)j(used,)f(for)f +(example,)i(as)-30 4237 y(tags)e(for)g(prop)s(erties,)f(as)g(names)f +(of)i(v)-5 b(ariables)31 b(in)f(p)s(olynomial)g(rings,)g(etc.)-30 +4368 y(Sym)m(b)s(ols)f(are)h(constructed)h(through)f(the)g(follo)m +(wing)i(constructor:)-30 4519 y Fp(cl_symbol)c(\(const)h(cl_string&)e +(s\))450 4629 y Fr(Lo)s(oks)j(up)g(or)g(creates)i(a)f(new)e(sym)m(b)s +(ol)h(with)g(a)g(giv)m(en)i(name.)-30 4780 y(The)e(follo)m(wing)i(op)s +(erations)e(are)h(a)m(v)-5 b(ailable)33 b(on)d(sym)m(b)s(ols:)-30 +4931 y Fp(cl_string)e(\(const)h(cl_symbol&)e(sym\))450 +5041 y Fr(Con)m(v)m(ersion)k(to)g Fp(cl_string)p Fr(:)38 b(Returns)30 b(the)g(string)h(whic)m(h)f(names)f(the)i(sym)m(b)s(ol)e -Fp(sym)p Fr(.)0 2608 y Fp(bool)g(equal)g(\(const)g(cl_symbol&)e(sym1,)i -(const)g(cl_symbol&)f(sym2\))480 2733 y Fr(Compares)h(t)m(w)m(o)j(sym)m -(b)s(ols)d(for)h(equalit)m(y)-8 b(.)43 b(This)29 b(is)i(v)m(ery)f -(fast.)p eop -%%Page: 50 52 -50 51 bop 0 -116 a Fr(Chapter)30 b(9:)41 b(Univ)-5 b(ariate)32 -b(p)s(olynomials)2423 b(50)0 366 y Fo(9)80 b(Univ)-9 -b(ariate)33 b(p)t(olynomials)0 907 y Fs(9.1)68 b(Univ)-7 -b(ariate)32 b(p)t(olynomial)g(rings)0 1181 y Fr(CLN)d(implemen)m(ts)e -(univ)-5 b(ariate)30 b(p)s(olynomials)f(\(p)s(olynomials)f(in)h(one)h -(v)-5 b(ariable\))30 b(o)m(v)m(er)g(an)f(arbitrary)g(ring.)40 -b(The)0 1305 y(indeterminate)h(v)-5 b(ariable)43 b(ma)m(y)e(b)s(e)g -(either)i(unnamed)c(\(and)i(will)h(b)s(e)g(prin)m(ted)f(according)i(to) -f Fp(cl_default_)0 1430 y(print_flags.univpoly_var)o(name)o -Fr(,)23 b(whic)m(h)28 b(defaults)g(to)g(`)p Fp(x)p Fr('\))h(or)f(carry) -g(a)g(giv)m(en)h(name.)39 b(The)28 b(base)g(ring)g(and)0 -1554 y(the)h(indeterminate)f(are)g(explicitly)i(part)f(of)f(ev)m(ery)h -(p)s(olynomial.)40 b(CLN)28 b(do)s(esn't)g(allo)m(w)i(y)m(ou)e(to)i -(\(acciden)m(tally\))0 1679 y(mix)h(elemen)m(ts)h(of)f(di\013eren)m(t)h -(p)s(olynomial)f(rings,)h(e.g.)46 b Fp(\(a^2+1\))28 b(*)i(\(b^3-1\))g -Fr(will)i(result)f(in)h(a)g(run)m(time)e(error.)0 1803 -y(\(Ideally)h(this)g(should)e(return)g(a)i(m)m(ultiv)-5 -b(ariate)31 b(p)s(olynomial,)f(but)g(they)h(are)f(not)h(y)m(et)g -(implemen)m(ted)e(in)h(CLN.\))0 2077 y(The)g(classes)h(of)g(univ)-5 -b(ariate)31 b(p)s(olynomial)f(rings)f(are)1529 2330 y -Fp(Ring)1433 2434 y(cl_ring)1385 2538 y()1576 -2642 y(|)1576 2746 y(|)1051 2849 y(Univariate)45 b(polynomial)g(ring) -1290 2953 y(cl_univpoly_ring)1290 3057 y()1576 -3161 y(|)765 3264 y(+----------------+------)o(----)o(----)o(---)o(--+) -765 3368 y(|)763 b(|)907 b(|)288 3472 y(Complex)46 b(polynomial)f(ring) -189 b(|)i(Modular)46 b(integer)g(polynomial)f(ring)288 -3576 y(cl_univpoly_complex_rin)o(g)137 b(|)382 b -(cl_univpoly_modint_ring)335 3680 y()137 -b(|)382 b()1576 3783 y(|)765 3887 -y(+----------------+)765 3991 y(|)763 b(|)383 4095 y(Real)47 -b(polynomial)e(ring)237 b(|)383 4198 y(cl_univpoly_real_ring)185 -b(|)431 4302 y()g(|)1576 4406 y(|)765 -4510 y(+----------------+)765 4614 y(|)763 b(|)288 4717 -y(Rational)45 b(polynomial)g(ring)142 b(|)288 4821 y -(cl_univpoly_rational_ri)o(ng)89 b(|)335 4925 y -()g(|)1576 5029 y(|)765 5132 -y(+----------------+)765 5236 y(|)288 5340 y(Integer)46 -b(polynomial)f(ring)p eop -%%Page: 51 53 -51 52 bop 0 -116 a Fr(Chapter)30 b(9:)41 b(Univ)-5 b(ariate)32 -b(p)s(olynomials)2423 b(51)288 366 y Fp(cl_univpoly_integer_rin)o(g)335 -470 y()0 784 y Fr(and)30 b(the)g(corresp)s +Fp(sym)p Fr(.)-30 5192 y Fp(bool)g(equal)g(\(const)g(cl_symbol&)e +(sym1,)i(const)g(cl_symbol&)f(sym2\))450 5301 y Fr(Compares)h(t)m(w)m +(o)j(sym)m(b)s(ols)d(for)h(equalit)m(y)-8 b(.)43 b(This)29 +b(is)i(v)m(ery)f(fast.)p eop +%%Page: 38 40 +38 39 bop -30 -116 a Fr(Chapter)30 b(9:)41 b(Univ)-5 +b(ariate)32 b(p)s(olynomials)2483 b(38)-30 299 y Fo(9)80 +b(Univ)-9 b(ariate)56 b(p)t(olynomials)-30 652 y Fs(9.1)68 +b(Univ)-7 b(ariate)47 b(p)t(olynomial)f(rings)-30 844 +y Fr(CLN)33 b(implemen)m(ts)f(univ)-5 b(ariate)35 b(p)s(olynomials)e +(\(p)s(olynomials)g(in)g(one)h(v)-5 b(ariable\))35 b(o)m(v)m(er)g(an)f +(arbitrary)f(ring.)50 b(The)-30 953 y(indeterminate)23 +b(v)-5 b(ariable)23 b(ma)m(y)g(b)s(e)f(either)h(unnamed)e(\(and)h(will) +i(b)s(e)e(prin)m(ted)g(according)i(to)g Fp(cl_default_print_)-30 +1063 y(flags.univpoly_varname)p Fr(,)37 b(whic)m(h)j(defaults)g(to)h(`) +p Fp(x)p Fr('\))g(or)f(carry)h(a)f(giv)m(en)h(name.)70 +b(The)40 b(base)g(ring)g(and)g(the)-30 1172 y(indeterminate)31 +b(are)h(explicitly)g(part)f(of)h(ev)m(ery)g(p)s(olynomial.)42 +b(CLN)31 b(do)s(esn't)g(allo)m(w)i(y)m(ou)e(to)h(\(acciden)m(tally\))j +(mix)-30 1282 y(elemen)m(ts)23 b(of)g(di\013eren)m(t)h(p)s(olynomial)e +(rings,)i(e.g.)40 b Fp(\(a^2+1\))28 b(*)i(\(b^3-1\))21 +b Fr(will)i(result)g(in)g(a)g(run)m(time)f(error.)38 +b(\(Ideally)-30 1391 y(this)30 b(should)g(return)f(a)i(m)m(ultiv)-5 +b(ariate)31 b(p)s(olynomial,)f(but)g(they)g(are)h(not)g(y)m(et)g +(implemen)m(ted)e(in)h(CLN.\))-30 1525 y(The)g(classes)h(of)g(univ)-5 +b(ariate)31 b(p)s(olynomial)f(rings)f(are)1499 1653 y +Fp(Ring)1403 1757 y(cl_ring)1355 1861 y()1546 +1965 y(|)1546 2068 y(|)1021 2172 y(Univariate)45 b(polynomial)g(ring) +1260 2276 y(cl_univpoly_ring)1260 2380 y()1546 +2484 y(|)735 2587 y(+----------------+------)o(----)o(----)o(---)o(--+) +735 2691 y(|)763 b(|)907 b(|)258 2795 y(Complex)46 b(polynomial)f(ring) +189 b(|)i(Modular)46 b(integer)g(polynomial)f(ring)258 +2899 y(cl_univpoly_complex_rin)o(g)137 b(|)382 b +(cl_univpoly_modint_ring)305 3002 y()137 +b(|)382 b()1546 3106 y(|)735 3210 +y(+----------------+)735 3314 y(|)763 b(|)353 3418 y(Real)47 +b(polynomial)e(ring)237 b(|)353 3521 y(cl_univpoly_real_ring)185 +b(|)401 3625 y()g(|)1546 3729 y(|)735 +3833 y(+----------------+)735 3936 y(|)763 b(|)258 4040 +y(Rational)45 b(polynomial)g(ring)142 b(|)258 4144 y +(cl_univpoly_rational_ri)o(ng)89 b(|)305 4248 y +()g(|)1546 4352 y(|)735 4455 +y(+----------------+)735 4559 y(|)258 4663 y(Integer)46 +b(polynomial)f(ring)258 4767 y(cl_univpoly_integer_rin)o(g)305 +4870 y()-30 5004 y Fr(and)30 b(the)g(corresp)s (onding)g(classes)h(of)g(univ)-5 b(ariate)31 b(p)s(olynomials)e(are) -1147 1077 y Fp(Univariate)45 b(polynomial)1481 1181 y(cl_UP)1290 -1285 y()1576 1389 y(|)765 1492 y -(+----------------+------)o(----)o(----)o(---)o(--+)765 -1596 y(|)763 b(|)907 b(|)383 1700 y(Complex)46 b(polynomial)331 -b(|)286 b(Modular)46 b(integer)g(polynomial)622 1804 -y(cl_UP_N)618 b(|)764 b(cl_UP_MI)335 1908 y()137 -b(|)382 b()1576 2011 y(|)765 2115 -y(+----------------+)765 2219 y(|)763 b(|)479 2323 y(Real)46 -b(polynomial)379 b(|)622 2426 y(cl_UP_R)618 b(|)431 2530 -y()185 b(|)1576 2634 y(|)765 2738 -y(+----------------+)765 2842 y(|)763 b(|)383 2945 y(Rational)46 -b(polynomial)283 b(|)622 3049 y(cl_UP_RA)570 b(|)335 -3153 y()89 b(|)1576 3257 y(|)765 -3360 y(+----------------+)765 3464 y(|)383 3568 y(Integer)46 -b(polynomial)622 3672 y(cl_UP_I)335 3776 y()0 -4089 y Fr(Univ)-5 b(ariate)32 b(p)s(olynomial)d(rings)h(are)h -(constructed)g(using)f(the)g(functions)0 4468 y Fp(cl_univpoly_ring)c -(cl_find_univpoly_ring)e(\(const)29 b(cl_ring&)f(R\))0 -4593 y(cl_univpoly_ring)e(cl_find_univpoly_ring)e(\(const)29 -b(cl_ring&)f(R,)i(const)f(cl_symbol&)f(varname\))480 -4717 y Fr(This)36 b(function)h(returns)f(the)i(p)s(olynomial)e(ring)h -(`)p Fp(R[X])p Fr(',)h(unnamed)d(or)i(named.)60 b Fp(R)37 -b Fr(ma)m(y)g(b)s(e)f(an)480 4842 y(arbitrary)g(ring.)56 -b(This)35 b(function)h(tak)m(es)h(care)f(of)g(\014nding)f(out)h(ab)s -(out)f(sp)s(ecial)i(cases)f(of)g Fp(R)p Fr(,)h(suc)m(h)480 -4966 y(as)28 b(the)g(rings)g(of)g(complex)g(n)m(um)m(b)s(ers,)e(real)i +1117 5132 y Fp(Univariate)45 b(polynomial)1451 5236 y(cl_UP)1260 +5340 y()p eop +%%Page: 39 41 +39 40 bop -30 -116 a Fr(Chapter)30 b(9:)41 b(Univ)-5 +b(ariate)32 b(p)s(olynomials)2483 b(39)1546 299 y Fp(|)735 +403 y(+----------------+------)o(----)o(----)o(---)o(--+)735 +506 y(|)763 b(|)907 b(|)353 610 y(Complex)46 b(polynomial)331 +b(|)286 b(Modular)46 b(integer)g(polynomial)592 714 y(cl_UP_N)618 +b(|)764 b(cl_UP_MI)305 818 y()137 +b(|)382 b()1546 922 y(|)735 1025 +y(+----------------+)735 1129 y(|)763 b(|)449 1233 y(Real)46 +b(polynomial)379 b(|)592 1337 y(cl_UP_R)618 b(|)401 1440 +y()185 b(|)1546 1544 y(|)735 1648 +y(+----------------+)735 1752 y(|)763 b(|)353 1856 y(Rational)46 +b(polynomial)283 b(|)592 1959 y(cl_UP_RA)570 b(|)305 +2063 y()89 b(|)1546 2167 y(|)735 +2271 y(+----------------+)735 2374 y(|)353 2478 y(Integer)46 +b(polynomial)592 2582 y(cl_UP_I)305 2686 y()-30 +3545 y Fr(Univ)-5 b(ariate)32 b(p)s(olynomial)d(rings)h(are)h +(constructed)g(using)f(the)g(functions)-30 4792 y Fp(cl_univpoly_ring)c +(cl_find_univpoly_ring)e(\(const)29 b(cl_ring&)f(R\))-30 +4902 y(cl_univpoly_ring)e(cl_find_univpoly_ring)e(\(const)29 +b(cl_ring&)f(R,)i(const)f(cl_symbol&)f(varname\))450 +5011 y Fr(This)40 b(function)h(returns)f(the)h(p)s(olynomial)g(ring)g +(`)p Fp(R[X])p Fr(',)i(unnamed)c(or)i(named.)71 b Fp(R)41 +b Fr(ma)m(y)g(b)s(e)f(an)450 5121 y(arbitrary)f(ring.)68 +b(This)39 b(function)g(tak)m(es)i(care)f(of)g(\014nding)e(out)h(ab)s +(out)h(sp)s(ecial)g(cases)g(of)g Fp(R)p Fr(,)h(suc)m(h)450 +5230 y(as)33 b(the)g(rings)g(of)g(complex)f(n)m(um)m(b)s(ers,)g(real)h (n)m(um)m(b)s(ers,)f(rational)i(n)m(um)m(b)s(ers,)d(in)m(tegers,)k(or)e -(mo)s(dular)480 5091 y(in)m(teger)j(rings.)40 b(There)30 -b(is)g(a)g(cac)m(he)i(table)e(of)g(rings,)g(indexed)g(b)m(y)f -Fp(R)h Fr(and)f Fp(varname)p Fr(.)39 b(This)29 b(ensures)480 -5215 y(that)24 b(t)m(w)m(o)h(calls)g(of)e(this)h(function)f(with)g(the) -h(same)f(argumen)m(ts)g(will)h(return)e(the)i(same)f(p)s(olynomial)480 -5340 y(ring.)p eop -%%Page: 52 54 -52 53 bop 0 -116 a Fr(Chapter)30 b(9:)41 b(Univ)-5 b(ariate)32 -b(p)s(olynomials)2423 b(52)0 366 y Fp(cl_univpoly_complex_ring)24 -b(cl_find_univpoly_ring)g(\(const)29 b(cl_complex_ring&)d(R\))0 -491 y(cl_univpoly_complex_ring)e(cl_find_univpoly_ring)g(\(const)29 -b(cl_complex_ring&)d(R,)k(const)0 616 y(cl_symbol&)e(varname\))0 -740 y(cl_univpoly_real_ring)d(cl_find_univpoly_ring)f(\(const)29 -b(cl_real_ring&)e(R\))0 865 y(cl_univpoly_real_ring)e -(cl_find_univpoly_ring)f(\(const)29 b(cl_real_ring&)e(R,)i(const)0 -989 y(cl_symbol&)f(varname\))0 1114 y(cl_univpoly_rational_rin)o(g)c -(cl_find_univpoly_ring)h(\(const)k(cl_rational_ring&)c(R\))0 -1238 y(cl_univpoly_rational_rin)o(g)f(cl_find_univpoly_ring)h(\(const)k -(cl_rational_ring&)c(R,)30 b(const)0 1363 y(cl_symbol&)e(varname\))0 -1487 y(cl_univpoly_integer_ring)c(cl_find_univpoly_ring)g(\(const)29 -b(cl_integer_ring&)d(R\))0 1612 y(cl_univpoly_integer_ring)e -(cl_find_univpoly_ring)g(\(const)29 b(cl_integer_ring&)d(R,)k(const)0 -1736 y(cl_symbol&)e(varname\))0 1861 y(cl_univpoly_modint_ring)c -(cl_find_univpoly_ring)h(\(const)j(cl_modint_ring&)e(R\))0 -1985 y(cl_univpoly_modint_ring)e(cl_find_univpoly_ring)h(\(const)j -(cl_modint_ring&)e(R,)k(const)0 2110 y(cl_symbol&)e(varname\))480 -2234 y Fr(These)c(functions)f(are)i(equiv)-5 b(alen)m(t)26 -b(to)e(the)h(general)g Fp(cl_find_univpoly_ring)p Fr(,)20 -b(only)k(the)g(return)480 2359 y(t)m(yp)s(e)31 b(is)f(more)f(sp)s -(eci\014c,)i(according)g(to)g(the)g(base)f(ring's)h(t)m(yp)s(e.)0 -2845 y Fs(9.2)68 b(F)-11 b(unctions)30 b(on)g(univ)-7 -b(ariate)31 b(p)t(olynomials)0 3123 y Fr(Giv)m(en)g(a)g(univ)-5 -b(ariate)31 b(p)s(olynomial)f(ring)g Fp(R)p Fr(,)g(the)h(follo)m(wing)h -(mem)m(b)s(ers)27 b(can)k(b)s(e)f(used.)0 3430 y Fp(cl_ring)e -(R->basering\(\))480 3555 y Fr(This)i(returns)f(the)h(base)h(ring,)f -(as)h(passed)f(to)h(`)p Fp(cl_find_univpoly_ring)p Fr('.)0 -3737 y Fp(cl_UP)e(R->zero\(\))480 3862 y Fr(This)h(returns)f -Fp(0)h(in)g(R)p Fr(,)g(a)h(p)s(olynomial)e(of)i(degree)g(-1.)0 -4045 y Fp(cl_UP)e(R->one\(\))480 4169 y Fr(This)h(returns)f +(mo)s(dular)450 5340 y(in)m(teger)i(rings.)48 b(There)33 +b(is)g(a)h(cac)m(he)g(table)g(of)g(rings,)f(indexed)g(b)m(y)g +Fp(R)g Fr(and)f Fp(varname)p Fr(.)48 b(This)32 b(ensures)p +eop +%%Page: 40 42 +40 41 bop -30 -116 a Fr(Chapter)30 b(9:)41 b(Univ)-5 +b(ariate)32 b(p)s(olynomials)2483 b(40)450 299 y(that)28 +b(t)m(w)m(o)i(calls)f(of)e(this)h(function)g(with)f(the)h(same)f +(argumen)m(ts)h(will)g(return)e(the)i(same)g(p)s(olynomial)450 +408 y(ring.)-30 547 y Fp(cl_univpoly_complex_ring)c +(cl_find_univpoly_ring)g(\(const)29 b(cl_complex_ring&)d(R\))-30 +657 y(cl_univpoly_complex_ring)e(cl_find_univpoly_ring)g(\(const)29 +b(cl_complex_ring&)d(R,)k(const)-30 766 y(cl_symbol&)e(varname\))-30 +876 y(cl_univpoly_real_ring)d(cl_find_univpoly_ring)f(\(const)29 +b(cl_real_ring&)e(R\))-30 986 y(cl_univpoly_real_ring)e +(cl_find_univpoly_ring)f(\(const)29 b(cl_real_ring&)e(R,)i(const)g +(cl_symbol&)-30 1095 y(varname\))-30 1205 y(cl_univpoly_rational_rin)o +(g)24 b(cl_find_univpoly_ring)h(\(const)k(cl_rational_ring&)c(R\))-30 +1314 y(cl_univpoly_rational_rin)o(g)f(cl_find_univpoly_ring)h(\(const)k +(cl_rational_ring&)c(R,)30 b(const)-30 1424 y(cl_symbol&)e(varname\)) +-30 1533 y(cl_univpoly_integer_ring)c(cl_find_univpoly_ring)g(\(const) +29 b(cl_integer_ring&)d(R\))-30 1643 y(cl_univpoly_integer_ring)e +(cl_find_univpoly_ring)g(\(const)29 b(cl_integer_ring&)d(R,)k(const)-30 +1753 y(cl_symbol&)e(varname\))-30 1862 y(cl_univpoly_modint_ring)c +(cl_find_univpoly_ring)h(\(const)j(cl_modint_ring&)e(R\))-30 +1972 y(cl_univpoly_modint_ring)e(cl_find_univpoly_ring)h(\(const)j +(cl_modint_ring&)e(R,)k(const)-30 2081 y(cl_symbol&)e(varname\))450 +2191 y Fr(These)i(functions)g(are)g(equiv)-5 b(alen)m(t)32 +b(to)f(the)f(general)i Fp(cl_find_univpoly_ring)p Fr(,)24 +b(only)31 b(the)f(return)450 2301 y(t)m(yp)s(e)h(is)f(more)f(sp)s +(eci\014c,)i(according)g(to)g(the)g(base)f(ring's)h(t)m(yp)s(e.)-30 +2579 y Fs(9.2)68 b(F)-11 b(unctions)44 b(on)h(univ)-7 +b(ariate)46 b(p)t(olynomials)-30 2780 y Fr(Giv)m(en)31 +b(a)g(univ)-5 b(ariate)31 b(p)s(olynomial)f(ring)g Fp(R)p +Fr(,)g(the)h(follo)m(wing)h(mem)m(b)s(ers)27 b(can)k(b)s(e)f(used.)-30 +2952 y Fp(cl_ring)e(R->basering\(\))450 3061 y Fr(This)i(returns)f(the) +h(base)h(ring,)f(as)h(passed)f(to)h(`)p Fp(cl_find_univpoly_ring)p +Fr('.)-30 3229 y Fp(cl_UP)e(R->zero\(\))450 3339 y Fr(This)h(returns)f +Fp(0)h(in)g(R)p Fr(,)g(a)h(p)s(olynomial)e(of)i(degree)g(-1.)-30 +3506 y Fp(cl_UP)e(R->one\(\))450 3616 y Fr(This)h(returns)f Fp(1)h(in)g(R)p Fr(,)g(a)h(p)s(olynomial)e(of)i(degree)g -Fp(<)p Fr(=)f(0.)0 4352 y Fp(cl_UP)f(R->canonhom)e(\(const)i(cl_I&)g -(x\))480 4476 y Fr(This)h(returns)f Fp(x)h(in)g(R)p Fr(,)g(a)h(p)s -(olynomial)e(of)i(degree)g Fp(<)p Fr(=)f(0.)0 4659 y -Fp(cl_UP)f(R->monomial)e(\(const)i(cl_ring_element&)d(x,)k(uintL)f(e\)) -480 4784 y Fr(This)h(returns)f(a)h(sparse)g(p)s(olynomial:)41 +Fp(<)p Fr(=)f(0.)-30 3784 y Fp(cl_UP)f(R->canonhom)e(\(const)i(cl_I&)g +(x\))450 3893 y Fr(This)h(returns)f Fp(x)h(in)g(R)p Fr(,)g(a)h(p)s +(olynomial)e(of)i(degree)g Fp(<)p Fr(=)f(0.)-30 4061 +y Fp(cl_UP)f(R->monomial)e(\(const)i(cl_ring_element&)d(x,)k(uintL)f +(e\))450 4171 y Fr(This)h(returns)f(a)h(sparse)g(p)s(olynomial:)41 b Fp(x)30 b(*)g(X^e)p Fr(,)f(where)h Fp(X)g Fr(is)h(the)f -(indeterminate.)0 4966 y Fp(cl_UP)f(R->create)f(\(sintL)g(degree\))480 -5091 y Fr(Creates)38 b(a)g(new)f(p)s(olynomial)f(with)i(a)f(giv)m(en)i -(degree.)62 b(The)37 b(zero)h(p)s(olynomial)f(has)g(degree)h -Fp(-1)p Fr(.)480 5215 y(After)29 b(creating)i(the)e(p)s(olynomial,)f(y) -m(ou)i(should)e(put)g(in)h(the)g(co)s(e\016cien)m(ts,)i(using)d(the)h -Fp(set_coeff)480 5340 y Fr(mem)m(b)s(er)f(function,)i(and)g(then)g -(call)i(the)e Fp(finalize)e Fr(mem)m(b)s(er)g(function.)p +(indeterminate.)-30 4339 y Fp(cl_UP)f(R->create)f(\(sintL)g(degree\)) +450 4448 y Fr(Creates)d(a)f(new)f(p)s(olynomial)g(with)h(a)g(giv)m(en)h +(degree.)39 b(The)24 b(zero)g(p)s(olynomial)g(has)f(degree)i +Fp(-1)p Fr(.)38 b(After)450 4558 y(creating)26 b(the)f(p)s(olynomial,)g +(y)m(ou)g(should)e(put)h(in)g(the)h(co)s(e\016cien)m(ts,)j(using)c(the) +h Fp(set_coeff)d Fr(mem)m(b)s(er)450 4667 y(function,)30 +b(and)g(then)g(call)i(the)e Fp(finalize)f Fr(mem)m(b)s(er)e(function.) +-30 4839 y(The)j(follo)m(wing)i(are)e(the)h(only)g(destructiv)m(e)g(op) +s(erations)g(on)f(univ)-5 b(ariate)31 b(p)s(olynomials.)-30 +5011 y Fp(void)e(set_coeff)f(\(cl_UP&)g(x,)i(uintL)f(index,)g(const)g +(cl_ring_element&)d(y\))450 5121 y Fr(This)32 b(c)m(hanges)i(the)f(co)s +(e\016cien)m(t)i(of)e Fp(X^index)e Fr(in)i Fp(x)g Fr(to)g(b)s(e)g +Fp(y)p Fr(.)48 b(After)33 b(c)m(hanging)h(a)f(p)s(olynomial)g(and)450 +5230 y(b)s(efore)40 b(applying)h(an)m(y)g Fp(")p Fr(normal)p +Fp(")e Fr(op)s(eration)i(on)g(it,)j(y)m(ou)d(should)f(call)i(its)f +Fp(finalize)e Fr(mem)m(b)s(er)450 5340 y(function.)p eop -%%Page: 53 55 -53 54 bop 0 -116 a Fr(Chapter)30 b(9:)41 b(Univ)-5 b(ariate)32 -b(p)s(olynomials)2423 b(53)0 366 y(The)30 b(follo)m(wing)i(are)e(the)h -(only)g(destructiv)m(e)g(op)s(erations)g(on)f(univ)-5 -b(ariate)31 b(p)s(olynomials.)0 677 y Fp(void)e(set_coeff)f(\(cl_UP&)g -(x,)i(uintL)f(index,)g(const)g(cl_ring_element&)d(y\))480 -802 y Fr(This)i(c)m(hanges)j(the)e(co)s(e\016cien)m(t)i(of)f -Fp(X^index)d Fr(in)i Fp(x)g Fr(to)h(b)s(e)f Fp(y)p Fr(.)40 -b(After)29 b(c)m(hanging)h(a)g(p)s(olynomial)f(and)480 -926 y(b)s(efore)35 b(applying)h(an)m(y)g Fp(")p Fr(normal)p -Fp(")f Fr(op)s(eration)h(on)g(it,)i(y)m(ou)e(should)f(call)i(its)f -Fp(finalize)e Fr(mem)m(b)s(er)480 1051 y(function.)0 -1237 y Fp(void)29 b(finalize)f(\(cl_UP&)h(x\))480 1361 -y Fr(This)f(function)g(marks)f(the)h(endp)s(oin)m(t)g(of)h(destructiv)m -(e)g(mo)s(di\014cations)f(of)g(a)h(p)s(olynomial.)40 -b(It)28 b(nor-)480 1486 y(malizes)23 b(the)f(in)m(ternal)h(represen)m -(tation)h(so)e(that)h(subsequen)m(t)f(computations)g(ha)m(v)m(e)i(less) -e(o)m(v)m(erhead.)480 1611 y(Doing)32 b(normal)e(computations)h(on)g -(unnormalized)f(p)s(olynomials)g(ma)m(y)h(pro)s(duce)e(wrong)i(results) -480 1735 y(or)f(crash)g(the)h(program.)0 2046 y(The)f(follo)m(wing)i -(op)s(erations)e(are)h(de\014ned)e(on)i(univ)-5 b(ariate)31 -b(p)s(olynomials.)0 2356 y Fp(cl_univpoly_ring)26 b(x.ring)j(\(\))480 -2481 y Fr(Returns)g(the)i(ring)f(to)h(whic)m(h)f(the)h(univ)-5 -b(ariate)31 b(p)s(olynomial)f Fp(x)g Fr(b)s(elongs.)0 -2667 y Fp(cl_UP)f(operator+)f(\(const)g(cl_UP&,)h(const)g(cl_UP&\))480 -2792 y Fr(Returns)g(the)i(sum)d(of)j(t)m(w)m(o)h(univ)-5 -b(ariate)31 b(p)s(olynomials.)0 2978 y Fp(cl_UP)e(operator-)f(\(const)g -(cl_UP&,)h(const)g(cl_UP&\))480 3102 y Fr(Returns)g(the)i(di\013erence) -g(of)f(t)m(w)m(o)i(univ)-5 b(ariate)31 b(p)s(olynomials.)0 -3288 y Fp(cl_UP)e(operator-)f(\(const)g(cl_UP&\))480 -3413 y Fr(Returns)h(the)i(negativ)m(e)i(of)d(a)h(univ)-5 -b(ariate)31 b(p)s(olynomial.)0 3599 y Fp(cl_UP)e(operator*)f(\(const)g -(cl_UP&,)h(const)g(cl_UP&\))480 3724 y Fr(Returns)e(the)h(pro)s(duct)e -(of)i(t)m(w)m(o)h(univ)-5 b(ariate)28 b(p)s(olynomials.)39 -b(One)27 b(of)h(the)g(argumen)m(ts)f(ma)m(y)g(also)i(b)s(e)480 -3848 y(a)i(plain)f(in)m(teger)i(or)e(an)g(elemen)m(t)h(of)g(the)f(base) -h(ring.)0 4034 y Fp(cl_UP)e(square)g(\(const)f(cl_UP&\))480 -4159 y Fr(Returns)h(the)i(square)f(of)h(a)f(univ)-5 b(ariate)31 -b(p)s(olynomial.)0 4345 y Fp(cl_UP)e(expt_pos)f(\(const)h(cl_UP&)f(x,)i -(const)f(cl_I&)g(y\))480 4470 y(y)h Fr(m)m(ust)f(b)s(e)h -Fp(>)g Fr(0.)41 b(Returns)30 b Fp(x^y)p Fr(.)0 4656 y -Fp(bool)f(operator==)f(\(const)g(cl_UP&,)h(const)g(cl_UP&\))0 -4780 y(bool)g(operator!=)f(\(const)g(cl_UP&,)h(const)g(cl_UP&\))480 -4905 y Fr(Compares)39 b(t)m(w)m(o)j(univ)-5 b(ariate)41 -b(p)s(olynomials,)h(b)s(elonging)e(to)h(the)g(same)f(univ)-5 -b(ariate)41 b(p)s(olynomial)480 5029 y(ring,)30 b(for)h(equalit)m(y)-8 -b(.)0 5215 y Fp(cl_boolean)28 b(zerop)h(\(const)f(cl_UP&)h(x\))480 -5340 y Fr(Returns)g(true)i(if)f Fp(x)g Fr(is)g Fp(0)g(in)g(R)p -Fr(.)p eop -%%Page: 54 56 -54 55 bop 0 -116 a Fr(Chapter)30 b(9:)41 b(Univ)-5 b(ariate)32 -b(p)s(olynomials)2423 b(54)0 366 y Fp(sintL)29 b(degree)g(\(const)f -(cl_UP&)h(x\))480 491 y Fr(Returns)g(the)i(degree)g(of)g(the)f(p)s +%%Page: 41 43 +41 42 bop -30 -116 a Fr(Chapter)30 b(9:)41 b(Univ)-5 +b(ariate)32 b(p)s(olynomials)2483 b(41)-30 299 y Fp(void)29 +b(finalize)f(\(cl_UP&)h(x\))450 408 y Fr(This)j(function)h(marks)f(the) +h(endp)s(oin)m(t)f(of)i(destructiv)m(e)g(mo)s(di\014cations)e(of)h(a)h +(p)s(olynomial.)48 b(It)33 b(nor-)450 518 y(malizes)c(the)f(in)m +(ternal)h(represen)m(tation)h(so)e(that)h(subsequen)m(t)f(computations) +g(ha)m(v)m(e)i(less)e(o)m(v)m(erhead.)450 628 y(Doing)f(normal)e +(computations)g(on)h(unnormalized)f(p)s(olynomials)g(ma)m(y)g(pro)s +(duce)g(wrong)g(results)h(or)450 737 y(crash)k(the)h(program.)-30 +887 y(The)f(follo)m(wing)i(op)s(erations)e(are)h(de\014ned)e(on)i(univ) +-5 b(ariate)31 b(p)s(olynomials.)-30 1036 y Fp(cl_univpoly_ring)26 +b(x.ring)j(\(\))450 1146 y Fr(Returns)g(the)i(ring)f(to)h(whic)m(h)f +(the)h(univ)-5 b(ariate)31 b(p)s(olynomial)f Fp(x)g Fr(b)s(elongs.)-30 +1295 y Fp(cl_UP)f(operator+)f(\(const)g(cl_UP&,)h(const)g(cl_UP&\))450 +1405 y Fr(Returns)g(the)i(sum)d(of)j(t)m(w)m(o)h(univ)-5 +b(ariate)31 b(p)s(olynomials.)-30 1554 y Fp(cl_UP)e(operator-)f +(\(const)g(cl_UP&,)h(const)g(cl_UP&\))450 1664 y Fr(Returns)g(the)i +(di\013erence)g(of)f(t)m(w)m(o)i(univ)-5 b(ariate)31 +b(p)s(olynomials.)-30 1813 y Fp(cl_UP)e(operator-)f(\(const)g(cl_UP&\)) +450 1923 y Fr(Returns)h(the)i(negativ)m(e)i(of)d(a)h(univ)-5 +b(ariate)31 b(p)s(olynomial.)-30 2072 y Fp(cl_UP)e(operator*)f(\(const) +g(cl_UP&,)h(const)g(cl_UP&\))450 2182 y Fr(Returns)i(the)i(pro)s(duct)d +(of)j(t)m(w)m(o)g(univ)-5 b(ariate)33 b(p)s(olynomials.)45 +b(One)32 b(of)g(the)g(argumen)m(ts)g(ma)m(y)f(also)j(b)s(e)450 +2291 y(a)d(plain)f(in)m(teger)i(or)e(an)g(elemen)m(t)h(of)g(the)f(base) +h(ring.)-30 2441 y Fp(cl_UP)e(square)g(\(const)f(cl_UP&\))450 +2550 y Fr(Returns)h(the)i(square)f(of)h(a)f(univ)-5 b(ariate)31 +b(p)s(olynomial.)-30 2700 y Fp(cl_UP)e(expt_pos)f(\(const)h(cl_UP&)f +(x,)i(const)f(cl_I&)g(y\))450 2809 y(y)h Fr(m)m(ust)f(b)s(e)h +Fp(>)g Fr(0.)41 b(Returns)30 b Fp(x^y)p Fr(.)-30 2959 +y Fp(bool)f(operator==)f(\(const)g(cl_UP&,)h(const)g(cl_UP&\))-30 +3068 y(bool)g(operator!=)f(\(const)g(cl_UP&,)h(const)g(cl_UP&\))450 +3178 y Fr(Compares)23 b(t)m(w)m(o)i(univ)-5 b(ariate)25 +b(p)s(olynomials,)g(b)s(elonging)g(to)g(the)f(same)g(univ)-5 +b(ariate)24 b(p)s(olynomial)g(ring,)450 3288 y(for)30 +b(equalit)m(y)-8 b(.)-30 3437 y Fp(cl_boolean)28 b(zerop)h(\(const)f +(cl_UP&)h(x\))450 3547 y Fr(Returns)g(true)i(if)f Fp(x)g +Fr(is)g Fp(0)g(in)g(R)p Fr(.)-30 3696 y Fp(sintL)f(degree)g(\(const)f +(cl_UP&)h(x\))450 3806 y Fr(Returns)g(the)i(degree)g(of)g(the)f(p)s (olynomial.)40 b(The)30 b(zero)h(p)s(olynomial)f(has)g(degree)h -Fp(-1)p Fr(.)0 665 y Fp(cl_ring_element)26 b(coeff)j(\(const)g(cl_UP&)f -(x,)i(uintL)f(index\))480 790 y Fr(Returns)g(the)i(co)s(e\016cien)m(t)h -(of)f Fp(X^index)d Fr(in)i(the)h(p)s(olynomial)f Fp(x)p -Fr(.)0 964 y Fp(cl_ring_element)c(x)k(\(const)f(cl_ring_element&)d(y\)) -480 1089 y Fr(Ev)-5 b(aluation:)40 b(If)25 b Fp(x)h Fr(is)h(a)f(p)s -(olynomial)g(and)g Fp(y)g Fr(b)s(elongs)g(to)h(the)f(base)h(ring,)g -(then)f(`)p Fp(x\(y\))p Fr(')g(returns)f(the)480 1213 -y(v)-5 b(alue)31 b(of)f(the)h(substitution)f(of)h Fp(y)f -Fr(in)m(to)h Fp(x)p Fr(.)0 1388 y Fp(cl_UP)e(deriv)g(\(const)g(cl_UP&)f -(x\))480 1512 y Fr(Returns)h(the)i(deriv)-5 b(ativ)m(e)32 -b(of)e(the)h(p)s(olynomial)f Fp(x)g Fr(with)g(resp)s(ect)g(to)h(the)g -(indeterminate)f Fp(X)p Fr(.)0 1811 y(The)g(follo)m(wing)i(output)e -(functions)g(are)g(de\014ned)g(\(see)h(also)g(the)g(c)m(hapter)g(on)f -(input/output\).)0 2110 y Fp(void)f(fprint)g(\(cl_ostream)e(stream,)i -(const)f(cl_UP&)h(x\))0 2234 y(cl_ostream)f(operator<<)f(\(cl_ostream)g -(stream,)i(const)g(cl_UP&)f(x\))480 2359 y Fr(Prin)m(ts)39 -b(the)g(univ)-5 b(ariate)40 b(p)s(olynomial)f Fp(x)f -Fr(on)h(the)h Fp(stream)p Fr(.)65 b(The)39 b(output)g(ma)m(y)f(dep)s -(end)g(on)h(the)480 2484 y(global)32 b(prin)m(ter)e(settings)h(in)f -(the)h(v)-5 b(ariable)31 b Fp(cl_default_print_flags)p -Fr(.)0 2932 y Fs(9.3)68 b(Sp)t(ecial)31 b(p)t(olynomials)0 -3206 y Fr(The)f(follo)m(wing)i(functions)e(return)f(sp)s(ecial)i(p)s -(olynomials.)0 3505 y Fp(cl_UP_I)d(cl_tschebychev)f(\(sintL)i(n\))480 -3629 y Fr(Returns)g(the)i(n-th)f(Tc)m(heb)m(yc)m(hev)h(p)s(olynomial)f -(\(n)g Fp(>)p Fr(=)g(0\).)0 3804 y Fp(cl_UP_I)e(cl_hermite)g(\(sintL)h -(n\))480 3928 y Fr(Returns)g(the)i(n-th)f(Hermite)g(p)s(olynomial)g -(\(n)g Fp(>)p Fr(=)g(0\).)0 4102 y Fp(cl_UP_RA)e(cl_legendre)f(\(sintL) -i(n\))480 4227 y Fr(Returns)g(the)i(n-th)f(Legendre)g(p)s(olynomial)g -(\(n)g Fp(>)p Fr(=)g(0\).)0 4401 y Fp(cl_UP_I)e(cl_laguerre)g(\(sintL)g -(n\))480 4526 y Fr(Returns)h(the)i(n-th)f(Laguerre)h(p)s(olynomial)e -(\(n)h Fp(>)p Fr(=)g(0\).)0 4825 y(Information)24 b(ho)m(w)h(to)h -(deriv)m(e)f(the)g(di\013eren)m(tial)i(equation)f(satis\014ed)f(b)m(y)f -(eac)m(h)j(of)e(these)g(p)s(olynomials)f(from)g(their)0 -4949 y(de\014nition)30 b(can)h(b)s(e)e(found)g(in)i(the)f -Fp(doc/polynomial/)c Fr(directory)-8 b(.)p eop -%%Page: 55 57 -55 56 bop 0 -116 a Fr(Chapter)30 b(10:)41 b(In)m(ternals)2950 -b(55)0 366 y Fo(10)80 b(In)l(ternals)0 944 y Fs(10.1)68 -b(Wh)l(y)31 b(C)p Ff(++)e Fs(?)0 1220 y Fr(Using)i(C)p -Fp(++)e Fr(as)i(an)f(implemen)m(tation)g(language)i(pro)m(vides)75 -1496 y Fq(\017)60 b Fr(E\016ciency:)41 b(It)31 b(compiles)f(to)h(mac)m -(hine)f(co)s(de.)75 1648 y Fq(\017)60 b Fr(P)m(ortabilit)m(y:)43 -b(It)29 b(runs)f(on)i(all)g(platforms)f(supp)s(orting)f(a)i(C)p -Fp(++)e Fr(compiler.)40 b(Because)31 b(of)f(the)g(a)m(v)-5 -b(ailabilit)m(y)33 b(of)180 1772 y(GNU)j(C)p Fp(++)p -Fr(,)f(this)g(includes)g(all)h(curren)m(tly)f(used)f(32-bit)i(and)f -(64-bit)h(platforms,)f(indep)s(enden)m(tly)g(of)g(the)180 -1897 y(qualit)m(y)d(of)e(the)h(v)m(endor's)f(C)p Fp(++)f -Fr(compiler.)75 2049 y Fq(\017)60 b Fr(T)m(yp)s(e)26 -b(safet)m(y:)40 b(The)25 b(C)p Fp(++)g Fr(compilers)h(kno)m(ws)g(ab)s -(out)g(the)g(n)m(um)m(b)s(er)e(t)m(yp)s(es)j(and)e(complains)h(if,)h -(for)f(example,)180 2173 y(y)m(ou)41 b(try)f(to)h(assign)g(a)f(\015oat) -h(to)g(an)g(in)m(teger)g(v)-5 b(ariable.)72 b(Ho)m(w)m(ev)m(er,)45 -b(a)c(dra)m(wbac)m(k)f(is)h(that)g(C)p Fp(++)e Fr(do)s(esn't)180 -2298 y(kno)m(w)27 b(ab)s(out)f(generic)i(t)m(yp)s(es,)g(hence)f(a)g -(restriction)h(lik)m(e)g(that)f Fp(operator+)h(\(const)g(cl_MI&,)h -(const)g(cl_)180 2422 y(MI&\))f Fr(requires)h(that)g(b)s(oth)g(argumen) +Fp(-1)p Fr(.)-30 3955 y Fp(cl_ring_element)26 b(coeff)j(\(const)g +(cl_UP&)f(x,)i(uintL)f(index\))450 4065 y Fr(Returns)g(the)i(co)s +(e\016cien)m(t)h(of)f Fp(X^index)d Fr(in)i(the)h(p)s(olynomial)f +Fp(x)p Fr(.)-30 4214 y Fp(cl_ring_element)c(x)k(\(const)f +(cl_ring_element&)d(y\))450 4324 y Fr(Ev)-5 b(aluation:)42 +b(If)29 b Fp(x)h Fr(is)h(a)f(p)s(olynomial)g(and)f Fp(y)h +Fr(b)s(elongs)g(to)h(the)g(base)f(ring,)g(then)g(`)p +Fp(x\(y\))p Fr(')g(returns)f(the)450 4433 y(v)-5 b(alue)31 +b(of)f(the)h(substitution)f(of)h Fp(y)f Fr(in)m(to)h +Fp(x)p Fr(.)-30 4583 y Fp(cl_UP)e(deriv)g(\(const)g(cl_UP&)f(x\))450 +4692 y Fr(Returns)h(the)i(deriv)-5 b(ativ)m(e)32 b(of)e(the)h(p)s +(olynomial)f Fp(x)g Fr(with)g(resp)s(ect)g(to)h(the)g(indeterminate)f +Fp(X)p Fr(.)-30 4842 y(The)g(follo)m(wing)i(output)e(functions)g(are)g +(de\014ned)g(\(see)h(also)g(the)g(c)m(hapter)g(on)f(input/output\).)-30 +4991 y Fp(void)f(fprint)g(\(cl_ostream)e(stream,)i(const)f(cl_UP&)h +(x\))-30 5101 y(cl_ostream)f(operator<<)f(\(cl_ostream)g(stream,)i +(const)g(cl_UP&)f(x\))450 5210 y Fr(Prin)m(ts)d(the)f(univ)-5 +b(ariate)26 b(p)s(olynomial)e Fp(x)g Fr(on)h(the)f Fp(stream)p +Fr(.)38 b(The)24 b(output)g(ma)m(y)g(dep)s(end)f(on)i(the)g(global)450 +5320 y(prin)m(ter)30 b(settings)h(in)f(the)h(v)-5 b(ariable)31 +b Fp(cl_default_print_flags)p Fr(.)p eop +%%Page: 42 44 +42 43 bop -30 -116 a Fr(Chapter)30 b(9:)41 b(Univ)-5 +b(ariate)32 b(p)s(olynomials)2483 b(42)-30 299 y Fs(9.3)68 +b(Sp)t(ecial)45 b(p)t(olynomials)-30 491 y Fr(The)30 +b(follo)m(wing)i(functions)e(return)f(sp)s(ecial)i(p)s(olynomials.)-30 +651 y Fp(cl_UP_I)d(cl_tschebychev)f(\(sintL)i(n\))450 +760 y Fr(Returns)g(the)i(n-th)f(Tc)m(heb)m(yc)m(hev)h(p)s(olynomial)f +(\(n)g Fp(>)p Fr(=)g(0\).)-30 920 y Fp(cl_UP_I)e(cl_hermite)g(\(sintL)h +(n\))450 1029 y Fr(Returns)g(the)i(n-th)f(Hermite)g(p)s(olynomial)g +(\(n)g Fp(>)p Fr(=)g(0\).)-30 1189 y Fp(cl_UP_RA)e(cl_legendre)f +(\(sintL)i(n\))450 1298 y Fr(Returns)g(the)i(n-th)f(Legendre)g(p)s +(olynomial)g(\(n)g Fp(>)p Fr(=)g(0\).)-30 1458 y Fp(cl_UP_I)e +(cl_laguerre)g(\(sintL)g(n\))450 1567 y Fr(Returns)h(the)i(n-th)f +(Laguerre)h(p)s(olynomial)e(\(n)h Fp(>)p Fr(=)g(0\).)-30 +1727 y(Information)e(ho)m(w)h(to)h(deriv)m(e)g(the)g(di\013eren)m(tial) +g(equation)h(satis\014ed)e(b)m(y)g(eac)m(h)h(of)g(these)g(p)s +(olynomials)e(from)g(their)-30 1836 y(de\014nition)i(can)h(b)s(e)e +(found)g(in)i(the)f Fp(doc/polynomial/)c Fr(directory)-8 +b(.)p eop +%%Page: 43 45 +43 44 bop -30 -116 a Fr(Chapter)30 b(10:)41 b(In)m(ternals)3010 +b(43)-30 299 y Fo(10)80 b(In)l(ternals)-30 651 y Fs(10.1)68 +b(Wh)l(y)45 b(C)p Fg(++)f Fs(?)-30 843 y Fr(Using)31 +b(C)p Fp(++)e Fr(as)i(an)f(implemen)m(tation)g(language)i(pro)m(vides) +45 977 y Fq(\017)60 b Fr(E\016ciency:)41 b(It)31 b(compiles)f(to)h(mac) +m(hine)f(co)s(de.)45 1111 y Fq(\017)60 b Fr(P)m(ortabilit)m(y:)49 +b(It)33 b(runs)f(on)h(all)h(platforms)f(supp)s(orting)e(a)j(C)p +Fp(++)e Fr(compiler.)50 b(Because)34 b(of)g(the)f(a)m(v)-5 +b(ailabilit)m(y)37 b(of)150 1220 y(GNU)j(C)p Fp(++)p +Fr(,)h(this)f(includes)f(all)h(curren)m(tly)g(used)e(32-bit)j(and)e +(64-bit)i(platforms,)g(indep)s(enden)m(tly)d(of)i(the)150 +1330 y(qualit)m(y)32 b(of)e(the)h(v)m(endor's)f(C)p Fp(++)f +Fr(compiler.)45 1464 y Fq(\017)60 b Fr(T)m(yp)s(e)30 +b(safet)m(y:)43 b(The)30 b(C)p Fp(++)g Fr(compilers)g(kno)m(ws)g(ab)s +(out)h(the)f(n)m(um)m(b)s(er)f(t)m(yp)s(es)h(and)h(complains)f(if,)h +(for)f(example,)150 1573 y(y)m(ou)44 b(try)f(to)i(assign)f(a)g(\015oat) +g(to)g(an)g(in)m(teger)h(v)-5 b(ariable.)81 b(Ho)m(w)m(ev)m(er,)50 +b(a)44 b(dra)m(wbac)m(k)g(is)f(that)h(C)p Fp(++)f Fr(do)s(esn't)150 +1683 y(kno)m(w)33 b(ab)s(out)h(generic)g(t)m(yp)s(es,)g(hence)g(a)g +(restriction)g(lik)m(e)h(that)f Fp(operator+)28 b(\(const)g(cl_MI&,)h +(const)g(cl_)150 1792 y(MI&\))j Fr(requires)h(that)g(b)s(oth)g(argumen) m(ts)f(b)s(elong)h(to)h(the)g(same)e(mo)s(dular)f(ring)i(cannot)h(b)s -(e)f(expressed)f(as)i(a)180 2547 y(compile-time)g(information.)75 -2698 y Fq(\017)60 b Fr(Algebraic)34 b(syn)m(tax:)46 b(The)32 +(e)f(expressed)f(as)i(a)150 1902 y(compile-time)c(information.)45 +2036 y Fq(\017)60 b Fr(Algebraic)37 b(syn)m(tax:)52 b(The)35 b(elemen)m(tary)h(op)s(erations)g Fp(+)p Fr(,)g Fp(-)p -Fr(,)g Fp(*)p Fr(,)g Fp(=)p Fr(,)g Fp(==)p Fr(,)g(...)48 -b(can)33 b(b)s(e)f(used)f(in)i(in\014x)e(notation,)180 -2823 y(whic)m(h)f(is)h(more)e(con)m(v)m(enien)m(t)k(than)d(Lisp)f +Fr(,)h Fp(*)p Fr(,)g Fp(=)p Fr(,)g Fp(==)p Fr(,)f(...)57 +b(can)36 b(b)s(e)f(used)f(in)i(in\014x)e(notation,)150 +2145 y(whic)m(h)c(is)h(more)e(con)m(v)m(enien)m(t)k(than)d(Lisp)f (notation)j(`)p Fp(\(+)e(x)g(y\))p Fr(')g(or)g(C)g(notation)i(`)p -Fp(add\(x,y,&z\))p Fr('.)0 3126 y(With)c(these)g(language)h(features,)g -(there)f(is)f(no)h(need)f(for)g(t)m(w)m(o)i(separate)g(languages,)h -(one)d(for)h(the)g(implemen)m(ta-)0 3251 y(tion)i(of)h(the)f(library)f -(and)h(one)g(in)g(whic)m(h)g(the)g(library's)f(users)h(can)g(program.) -39 b(This)29 b(means)g(that)i(a)f(protot)m(yp)s(e)0 3375 -y(implemen)m(tation)36 b(of)g(an)f(algorithm)h(can)h(b)s(e)e(in)m -(tegrated)i(in)m(to)g(the)f(library)g(immediately)f(after)i(it)f(has)g -(b)s(een)0 3500 y(tested)g(and)f(debugged.)55 b(No)36 -b(need)g(to)g(rewrite)f(it)h(in)f(a)h(lo)m(w-lev)m(el)i(language)f -(after)f(ha)m(ving)g(protot)m(yp)s(ed)f(in)h(a)0 3624 -y(high-lev)m(el)c(language.)0 4093 y Fs(10.2)68 b(Memory)31 -b(e\016ciency)0 4369 y Fr(In)f(order)g(to)h(sa)m(v)m(e)h(memory)c(allo) -s(cations,)33 b(CLN)d(implemen)m(ts:)75 4645 y Fq(\017)60 -b Fr(Ob)5 b(ject)31 b(sharing:)40 b(An)30 b(op)s(eration)h(lik)m(e)g -Fp(x+0)f Fr(returns)f Fp(x)h Fr(without)g(cop)m(ying)i(it.)75 -4797 y Fq(\017)60 b Fr(Garbage)42 b(collection:)64 b(A)41 -b(reference)g(coun)m(ting)h(mec)m(hanism)d(mak)m(es)i(sure)f(that)h(an) -m(y)g(n)m(um)m(b)s(er)e(ob)5 b(ject's)180 4922 y(storage)32 -b(is)e(freed)g(immediately)g(when)f(the)i(last)g(reference)g(to)g(the)g -(ob)5 b(ject)31 b(is)f(gone.)75 5073 y Fq(\017)60 b Fr(Small)20 -b(in)m(tegers)j(are)e(represen)m(ted)g(as)g(immediate)f(v)-5 -b(alues)22 b(instead)f(of)g(p)s(oin)m(ters)g(to)h(heap)f(allo)s(cated)i -(storage.)180 5198 y(This)44 b(means)g(that)i(in)m(tegers)g -Fp(>)30 b(-2^29)p Fr(,)48 b Fp(<)30 b(2^29)44 b Fr(don't)h(consume)f -(heap)h(memory)-8 b(,)47 b(unless)d(they)h(w)m(ere)180 -5322 y(explicitly)32 b(allo)s(cated)g(on)f(the)f(heap.)p -eop -%%Page: 56 58 -56 57 bop 0 -116 a Fr(Chapter)30 b(10:)41 b(In)m(ternals)2950 -b(56)0 366 y Fs(10.3)68 b(Sp)t(eed)30 b(e\016ciency)0 -640 y Fr(Sp)s(eed)f(e\016ciency)j(is)e(obtained)h(b)m(y)f(the)h(com)m -(bination)f(of)h(the)f(follo)m(wing)i(tric)m(ks)f(and)f(algorithms:)75 -914 y Fq(\017)60 b Fr(Small)38 b(in)m(tegers,)43 b(b)s(eing)c(represen) -m(ted)g(as)g(immediate)f(v)-5 b(alues,)42 b(don't)d(require)g(memory)e -(access,)43 b(just)c(a)180 1039 y(couple)31 b(of)f(instructions)h(for)f -(eac)m(h)h(elemen)m(tary)g(op)s(eration.)75 1188 y Fq(\017)60 -b Fr(The)27 b(k)m(ernel)h(of)f(CLN)g(has)g(b)s(een)g(written)g(in)g -(assem)m(bly)g(language)h(for)f(some)g(CPUs)g(\()p Fp(i386)p -Fr(,)g Fp(m68k)p Fr(,)g Fp(sparc)p Fr(,)180 1313 y Fp(mips)p -Fr(,)i Fp(arm)p Fr(\).)75 1462 y Fq(\017)60 b Fr(On)33 -b(all)i(CPUs,)g(CLN)f(ma)m(y)g(b)s(e)g(con\014gured)f(to)i(use)f(the)g -(sup)s(ere\016cien)m(t)g(lo)m(w-lev)m(el)j(routines)e(from)d(GNU)180 -1587 y(GMP)f(v)m(ersion)g(3.)75 1736 y Fq(\017)60 b Fr(F)-8 -b(or)32 b(large)g(n)m(um)m(b)s(ers,)e(CLN)h(uses,)g(instead)g(of)h(the) -f(standard)g Fp(O\(N^2\))e Fr(algorithm,)j(the)g(Karatsuba)f(m)m(ul-) -180 1861 y(tiplication,)i(whic)m(h)d(is)g(an)91 b Fn(O)s -Fr(\()p Fn(N)1368 1828 y Fh(1)p Fi(:)p Fh(6)1458 1861 -y Fr(\))31 b(algorithm.)75 2010 y Fq(\017)60 b Fr(F)-8 -b(or)45 b(v)m(ery)g(large)h(n)m(um)m(b)s(ers)c(\(more)i(than)g(12000)i -(decimal)f(digits\),)k(CLN)44 b(uses)g(Sc)m(h\177)-45 -b(onhage-Strassen)180 2135 y(m)m(ultiplication,)32 b(whic)m(h)e(is)g -(an)g(asymptotically)i(optimal)e(m)m(ultiplication)i(algorithm.)75 -2284 y Fq(\017)60 b Fr(These)27 b(fast)h(m)m(ultiplication)h -(algorithms)e(also)i(giv)m(e)g(impro)m(v)m(emen)m(ts)d(in)i(the)f(sp)s -(eed)g(of)h(division)f(and)g(radix)180 2409 y(con)m(v)m(ersion.)0 -2857 y Fs(10.4)68 b(Garbage)31 b(collection)0 3131 y -Fr(All)39 b(the)f(n)m(um)m(b)s(er)e(classes)j(are)g(reference)g(coun)m -(t)f(classes:)58 b(They)37 b(only)i(con)m(tain)g(a)g(p)s(oin)m(ter)f -(to)h(an)f(ob)5 b(ject)39 b(in)0 3256 y(the)h(heap.)71 -b(Up)s(on)39 b(construction,)44 b(assignmen)m(t)c(and)f(destruction)i -(of)f(n)m(um)m(b)s(er)e(ob)5 b(jects,)44 b(only)c(the)h(ob)5 -b(jects')0 3380 y(reference)31 b(coun)m(t)g(are)g(manipulated.)0 -3654 y(Memory)g(o)s(ccupied)g(b)m(y)g(n)m(um)m(b)s(er)d(ob)5 -b(jects)32 b(are)g(automatically)h(reclaimed)e(as)g(so)s(on)g(as)h -(their)f(reference)g(coun)m(t)0 3779 y(drops)e(to)i(zero.)0 -4053 y(F)-8 b(or)31 b(n)m(um)m(b)s(er)d(rings,)i(another)g(strategy)h -(is)f(implemen)m(ted:)39 b(There)30 b(is)g(a)h(cac)m(he)g(of,)g(for)f -(example,)g(the)g(mo)s(dular)0 4177 y(in)m(teger)k(rings.)49 -b(A)33 b(mo)s(dular)e(in)m(teger)j(ring)f(is)g(destro)m(y)m(ed)h(only)f -(if)g(its)g(reference)h(coun)m(t)f(dropp)s(ed)e(to)j(zero)g(and)0 -4302 y(the)40 b(cac)m(he)i(is)e(ab)s(out)g(to)g(b)s(e)g(resized.)70 -b(The)39 b(e\013ect)j(of)e(this)g(strategy)h(is)f(that)h(recen)m(tly)g -(used)e(rings)h(remain)0 4426 y(cac)m(hed,)32 b(whereas)e(undue)f -(memory)f(consumption)h(through)g(cac)m(hed)j(rings)e(is)g(a)m(v)m -(oided.)p eop -%%Page: 57 59 -57 58 bop 0 -116 a Fr(Chapter)30 b(11:)41 b(Using)31 -b(the)f(library)2621 b(57)0 366 y Fo(11)80 b(Using)30 -b(the)g(library)0 729 y Fr(F)-8 b(or)43 b(the)g(follo)m(wing)g -(discussion,)i(w)m(e)e(will)g(assume)e(that)i(y)m(ou)g(ha)m(v)m(e)g -(installed)g(the)g(CLN)f(source)g(in)g Fp($CLN_)0 854 -y(DIR)37 b Fr(and)g(built)h(it)g(in)g Fp($CLN_TARGETDIR)p -Fr(.)60 b(F)-8 b(or)38 b(example,)i(for)e(me)f(it's)h -Fp(CLN_DIR="$HOME/cln")33 b Fr(and)k Fp(CLN_)0 978 y -(TARGETDIR="$HOME/cln/lin)o(uxel)o(f")p Fr(.)g(Y)-8 b(ou)32 -b(migh)m(t)f(de\014ne)g(these)h(as)f(en)m(vironmen)m(t)g(v)-5 -b(ariables,)33 b(or)e(directly)0 1103 y(substitute)f(the)h(appropriate) -f(v)-5 b(alues.)0 1540 y Fs(11.1)68 b(Compiler)32 b(options)0 -1814 y Fr(Un)m(til)f(y)m(ou)g(ha)m(v)m(e)h(installed)f(CLN)f(in)g(a)h -(public)e(place,)j(the)e(follo)m(wing)i(options)f(are)g(needed:)0 -2088 y(When)f(y)m(ou)h(compile)f(CLN)g(application)i(co)s(de,)f(add)e -(the)i(\015ags)383 2341 y Fp(-I$CLN_DIR/include)43 b -(-I$CLN_TARGETDIR/include)0 2615 y Fr(to)25 b(the)f(C)p -Fp(++)f Fr(compiler's)h(command)e(line)j(\()p Fp(make)e -Fr(v)-5 b(ariable)25 b(CFLA)m(GS)f(or)g(CXXFLA)m(GS\).)i(When)e(y)m(ou) -g(link)g(CLN)0 2740 y(application)32 b(co)s(de)e(to)h(form)e(an)i -(executable,)h(add)e(the)g(\015ags)383 2993 y Fp -($CLN_TARGETDIR/src/libcln)o(.a)0 3267 y Fr(to)h(the)g(C/C)p +Fp(add\(x,y,&z\))p Fr('.)-30 2303 y(With)24 b(these)f(language)h +(features,)i(there)d(is)g(no)g(need)g(for)f(t)m(w)m(o)j(separate)f +(languages,)i(one)d(for)g(the)g(implemen)m(tation)-30 +2413 y(of)44 b(the)g(library)f(and)g(one)h(in)g(whic)m(h)f(the)h +(library's)g(users)f(can)h(program.)79 b(This)43 b(means)g(that)h(a)g +(protot)m(yp)s(e)-30 2523 y(implemen)m(tation)c(of)g(an)g(algorithm)g +(can)h(b)s(e)f(in)m(tegrated)h(in)m(to)h(the)e(library)g(immediately)f +(after)i(it)g(has)f(b)s(een)-30 2632 y(tested)g(and)e(debugged.)65 +b(No)39 b(need)g(to)g(rewrite)g(it)h(in)e(a)h(lo)m(w-lev)m(el)j +(language)e(after)f(ha)m(ving)g(protot)m(yp)s(ed)g(in)g(a)-30 +2742 y(high-lev)m(el)32 b(language.)-30 2997 y Fs(10.2)68 +b(Memory)45 b(e\016ciency)-30 3189 y Fr(In)30 b(order)g(to)h(sa)m(v)m +(e)h(memory)c(allo)s(cations,)33 b(CLN)d(implemen)m(ts:)45 +3323 y Fq(\017)60 b Fr(Ob)5 b(ject)31 b(sharing:)40 b(An)30 +b(op)s(eration)h(lik)m(e)g Fp(x+0)f Fr(returns)f Fp(x)h +Fr(without)g(cop)m(ying)i(it.)45 3457 y Fq(\017)60 b +Fr(Garbage)29 b(collection:)42 b(A)28 b(reference)h(coun)m(ting)g(mec)m +(hanism)d(mak)m(es)i(sure)f(that)i(an)m(y)f(n)m(um)m(b)s(er)d(ob)5 +b(ject's)29 b(stor-)150 3566 y(age)j(is)e(freed)g(immediately)g(when)f +(the)i(last)g(reference)g(to)g(the)f(ob)5 b(ject)32 b(is)e(gone.)45 +3700 y Fq(\017)60 b Fr(Small)35 b(in)m(tegers)h(are)g(represen)m(ted)f +(as)h(immediate)e(v)-5 b(alues)36 b(instead)g(of)f(p)s(oin)m(ters)h(to) +g(heap)f(allo)s(cated)i(stor-)150 3810 y(age.)51 b(This)33 +b(means)f(that)i(in)m(tegers)g Fp(>)d(-2^29)p Fr(,)h +Fp(<)f(2^29)h Fr(don't)h(consume)f(heap)h(memory)-8 b(,)33 +b(unless)g(they)g(w)m(ere)150 3919 y(explicitly)f(allo)s(cated)g(on)f +(the)f(heap.)-30 4174 y Fs(10.3)68 b(Sp)t(eed)45 b(e\016ciency)-30 +4366 y Fr(Sp)s(eed)29 b(e\016ciency)j(is)e(obtained)h(b)m(y)f(the)h +(com)m(bination)f(of)h(the)f(follo)m(wing)i(tric)m(ks)f(and)f +(algorithms:)45 4500 y Fq(\017)60 b Fr(Small)43 b(in)m(tegers,)49 +b(b)s(eing)43 b(represen)m(ted)h(as)g(immediate)f(v)-5 +b(alues,)48 b(don't)43 b(require)h(memory)e(access,)48 +b(just)c(a)150 4610 y(couple)31 b(of)f(instructions)h(for)f(eac)m(h)h +(elemen)m(tary)g(op)s(eration.)45 4744 y Fq(\017)60 b +Fr(The)31 b(k)m(ernel)h(of)f(CLN)g(has)g(b)s(een)g(written)g(in)g +(assem)m(bly)g(language)i(for)e(some)g(CPUs)f(\()p Fp(i386)p +Fr(,)h Fp(m68k)p Fr(,)g Fp(sparc)p Fr(,)150 4853 y Fp(mips)p +Fr(,)e Fp(arm)p Fr(\).)45 4987 y Fq(\017)60 b Fr(On)38 +b(all)h(CPUs,)h(CLN)e(ma)m(y)g(b)s(e)g(con\014gured)g(to)h(use)f(the)g +(sup)s(ere\016cien)m(t)h(lo)m(w-lev)m(el)i(routines)d(from)f(GNU)150 +5097 y(GMP)31 b(v)m(ersion)g(3.)45 5230 y Fq(\017)60 +b Fr(F)-8 b(or)32 b(large)g(n)m(um)m(b)s(ers,)e(CLN)g(uses,)i(instead)f +(of)h(the)f(standard)f Fp(O\(N^2\))g Fr(algorithm,)i(the)f(Karatsuba)g +(m)m(ulti-)150 5340 y(plication,)h(whic)m(h)e(is)h(an)f +Ff(O)s Fr(\()p Ff(N)1217 5307 y Fi(1)p Fj(:)p Fi(6)1307 +5340 y Fr(\))h(algorithm.)p eop +%%Page: 44 46 +44 45 bop -30 -116 a Fr(Chapter)30 b(10:)41 b(In)m(ternals)3010 +b(44)45 299 y Fq(\017)60 b Fr(F)-8 b(or)50 b(v)m(ery)g(large)g(n)m(um)m +(b)s(ers)d(\(more)i(than)g(12000)j(decimal)d(digits\),)55 +b(CLN)49 b(uses)g(Sc)m(h\177)-45 b(onhage-Strassen)150 +408 y(m)m(ultiplication,)32 b(whic)m(h)e(is)g(an)g(asymptotically)i +(optimal)e(m)m(ultiplication)i(algorithm.)45 543 y Fq(\017)60 +b Fr(These)32 b(fast)g(m)m(ultiplication)i(algorithms)e(also)h(giv)m(e) +g(impro)m(v)m(emen)m(ts)f(in)g(the)g(sp)s(eed)f(of)i(division)f(and)f +(radix)150 653 y(con)m(v)m(ersion.)-30 910 y Fs(10.4)68 +b(Garbage)46 b(collection)-30 1103 y Fr(All)33 b(the)g(n)m(um)m(b)s(er) +d(classes)j(are)g(reference)g(coun)m(t)g(classes:)46 +b(They)31 b(only)i(con)m(tain)h(a)f(p)s(oin)m(ter)f(to)h(an)f(ob)5 +b(ject)34 b(in)e(the)-30 1212 y(heap.)40 b(Up)s(on)27 +b(construction,)j(assignmen)m(t)e(and)g(destruction)h(of)f(n)m(um)m(b)s +(er)e(ob)5 b(jects,)30 b(only)f(the)f(ob)5 b(jects')29 +b(reference)-30 1322 y(coun)m(t)i(are)g(manipulated.)-30 +1456 y(Memory)k(o)s(ccupied)h(b)m(y)f(n)m(um)m(b)s(er)f(ob)5 +b(jects)36 b(are)h(automatically)g(reclaimed)f(as)g(so)s(on)f(as)h +(their)g(reference)g(coun)m(t)-30 1566 y(drops)29 b(to)i(zero.)-30 +1700 y(F)-8 b(or)34 b(n)m(um)m(b)s(er)e(rings,)i(another)g(strategy)h +(is)f(implemen)m(ted:)46 b(There)33 b(is)h(a)g(cac)m(he)h(of,)g(for)f +(example,)g(the)g(mo)s(dular)-30 1810 y(in)m(teger)29 +b(rings.)39 b(A)27 b(mo)s(dular)f(in)m(teger)j(ring)e(is)g(destro)m(y)m +(ed)h(only)g(if)f(its)h(reference)g(coun)m(t)g(dropp)s(ed)d(to)j(zero)g +(and)f(the)-30 1919 y(cac)m(he)36 b(is)f(ab)s(out)f(to)h(b)s(e)f +(resized.)54 b(The)34 b(e\013ect)i(of)e(this)h(strategy)h(is)e(that)h +(recen)m(tly)h(used)e(rings)g(remain)g(cac)m(hed,)-30 +2029 y(whereas)c(undue)f(memory)f(consumption)h(through)h(cac)m(hed)h +(rings)f(is)h(a)m(v)m(oided.)p eop +%%Page: 45 47 +45 46 bop -30 -116 a Fr(Chapter)30 b(11:)41 b(Using)31 +b(the)f(library)2681 b(45)-30 299 y Fo(11)80 b(Using)54 +b(the)f(library)-30 523 y Fr(F)-8 b(or)47 b(the)g(follo)m(wing)g +(discussion,)j(w)m(e)d(will)g(assume)e(that)h(y)m(ou)h(ha)m(v)m(e)h +(installed)f(the)f(CLN)g(source)g(in)g Fp($CLN_)-30 632 +y(DIR)41 b Fr(and)g(built)h(it)g(in)g Fp($CLN_TARGETDIR)p +Fr(.)71 b(F)-8 b(or)43 b(example,)h(for)e(me)f(it's)h +Fp(CLN_DIR="$HOME/cln")37 b Fr(and)k Fp(CLN_)-30 742 +y(TARGETDIR="$HOME/cln/lin)o(uxel)o(f")p Fr(.)53 b(Y)-8 +b(ou)38 b(migh)m(t)e(de\014ne)g(these)h(as)g(en)m(vironmen)m(t)f(v)-5 +b(ariables,)40 b(or)c(directly)-30 851 y(substitute)30 +b(the)h(appropriate)f(v)-5 b(alues.)-30 1103 y Fs(11.1)68 +b(Compiler)46 b(options)-30 1293 y Fr(Un)m(til)31 b(y)m(ou)g(ha)m(v)m +(e)h(installed)f(CLN)f(in)g(a)h(public)e(place,)j(the)e(follo)m(wing)i +(options)f(are)g(needed:)-30 1426 y(When)f(y)m(ou)h(compile)f(CLN)g +(application)i(co)s(de,)f(add)e(the)i(\015ags)353 1552 +y Fp(-I$CLN_DIR/include)43 b(-I$CLN_TARGETDIR/include)-30 +1685 y Fr(to)29 b(the)g(C)p Fp(++)e Fr(compiler's)h(command)f(line)h +(\()p Fp(make)g Fr(v)-5 b(ariable)29 b(CFLA)m(GS)g(or)f(CXXFLA)m(GS\).) +i(When)e(y)m(ou)h(link)f(CLN)-30 1794 y(application)k(co)s(de)e(to)h +(form)e(an)i(executable,)h(add)e(the)g(\015ags)353 1921 +y Fp($CLN_TARGETDIR/src/libcln)o(.a)-30 2053 y Fr(to)h(the)g(C/C)p Fp(++)e Fr(compiler's)h(command)e(line)j(\()p Fp(make)f -Fr(v)-5 b(ariable)31 b(LIBS\).)0 3541 y(If)20 b(y)m(ou)g(did)g(a)h -Fp(make)29 b(install)p Fr(,)20 b(the)h(include)f(\014les)g(are)h -(installed)g(in)f(a)g(public)g(directory)h(\(normally)f -Fp(/usr/local/include)p Fr(\),)0 3665 y(hence)k(y)m(ou)f(don't)h(need)f -(sp)s(ecial)h(\015ags)g(for)f(compiling.)38 b(The)23 -b(library)g(has)h(b)s(een)e(installed)j(to)f(a)g(public)e(directory)0 -3790 y(as)33 b(w)m(ell)h(\(normally)f Fp(/usr/local/lib)p -Fr(\),)e(hence)i(when)f(linking)h(a)h(CLN)f(application)h(it)g(is)f -(su\016cien)m(t)h(to)f(giv)m(e)0 3915 y(the)e(\015ag)f -Fp(-lcln)p Fr(.)0 4352 y Fs(11.2)68 b(Include)30 b(\014les)0 -4626 y Fr(Here)h(is)f(a)h(summary)c(of)k(the)f(include)h(\014les)f(and) -g(their)g(con)m(ten)m(ts.)0 4922 y Fp()480 -5047 y Fr(General)h(de\014nitions,)f(reference)h(coun)m(ting,)h -(garbage)f(collection.)0 5215 y Fp()480 -5340 y Fr(The)f(class)h(cl)p 950 5340 28 4 v 33 w(n)m(um)m(b)s(er.)p +Fr(v)-5 b(ariable)31 b(LIBS\).)-30 2186 y(If)62 b(y)m(ou)h(did)f(a)h +Fp(make)29 b(install)p Fr(,)69 b(the)62 b(include)h(\014les)f(are)h +(installed)g(in)g(a)f(public)g(directory)h(\(normally)-30 +2295 y Fp(/usr/local/include)p Fr(\),)45 b(hence)g(y)m(ou)h(don't)g +(need)f(sp)s(ecial)h(\015ags)g(for)f(compiling.)85 b(The)45 +b(library)g(has)h(b)s(een)-30 2405 y(installed)i(to)g(a)f(public)f +(directory)i(as)f(w)m(ell)h(\(normally)f Fp(/usr/local/lib)p +Fr(\),)h(hence)f(when)f(linking)h(a)g(CLN)-30 2514 y(application)32 +b(it)f(is)f(su\016cien)m(t)h(to)g(giv)m(e)h(the)e(\015ag)h +Fp(-lcln)p Fr(.)-30 2766 y Fs(11.2)68 b(Include)45 b(\014les)-30 +2956 y Fr(Here)31 b(is)f(a)h(summary)c(of)k(the)f(include)h(\014les)f +(and)g(their)g(con)m(ten)m(ts.)-30 3111 y Fp()450 +3221 y Fr(General)h(de\014nitions,)f(reference)h(coun)m(ting,)h +(garbage)f(collection.)-30 3376 y Fp()450 +3486 y Fr(The)f(class)h(cl)p 920 3486 28 4 v 33 w(n)m(um)m(b)s(er.)-30 +3641 y Fp()450 3751 y Fr(F)-8 b(unctions)31 +b(for)f(class)h(cl)p 1288 3751 V 34 w(N,)f(the)h(complex)f(n)m(um)m(b)s +(ers.)-30 3906 y Fp()450 4016 y Fr(F)-8 b(unctions)31 +b(for)f(class)h(cl)p 1288 4016 V 34 w(R,)f(the)h(real)g(n)m(um)m(b)s +(ers.)-30 4171 y Fp()450 4281 y Fr(F)-8 b(unctions)31 +b(for)f(class)h(cl)p 1288 4281 V 34 w(F,)f(the)h(\015oats.)-30 +4436 y Fp()450 4545 y Fr(F)-8 b(unctions)31 +b(for)f(class)h(cl)p 1288 4545 V 34 w(SF,)f(the)h(short-\015oats.)-30 +4701 y Fp()450 4810 y Fr(F)-8 b(unctions)31 +b(for)f(class)h(cl)p 1288 4810 V 34 w(FF,)g(the)f(single-\015oats.)-30 +4966 y Fp()450 5075 y Fr(F)-8 b(unctions)31 +b(for)f(class)h(cl)p 1288 5075 V 34 w(DF,)g(the)f(double-\015oats.)-30 +5230 y Fp()450 5340 y Fr(F)-8 b(unctions)31 +b(for)f(class)h(cl)p 1288 5340 V 34 w(LF,)f(the)h(long-\015oats.)p eop -%%Page: 58 60 -58 59 bop 0 -116 a Fr(Chapter)30 b(11:)41 b(Using)31 -b(the)f(library)2621 b(58)0 366 y Fp()480 -491 y Fr(F)-8 b(unctions)31 b(for)f(class)h(cl)p 1318 -491 28 4 v 34 w(N,)f(the)h(complex)f(n)m(um)m(b)s(ers.)0 -670 y Fp()480 794 y Fr(F)-8 b(unctions)31 -b(for)f(class)h(cl)p 1318 794 V 34 w(R,)f(the)h(real)g(n)m(um)m(b)s -(ers.)0 973 y Fp()480 1097 y Fr(F)-8 b(unctions)31 -b(for)f(class)h(cl)p 1318 1097 V 34 w(F,)f(the)h(\015oats.)0 -1276 y Fp()480 1400 y Fr(F)-8 b(unctions)31 -b(for)f(class)h(cl)p 1318 1400 V 34 w(SF,)f(the)h(short-\015oats.)0 -1579 y Fp()480 1703 y Fr(F)-8 b(unctions)31 -b(for)f(class)h(cl)p 1318 1703 V 34 w(FF,)g(the)f(single-\015oats.)0 -1882 y Fp()480 2006 y Fr(F)-8 b(unctions)31 -b(for)f(class)h(cl)p 1318 2006 V 34 w(DF,)g(the)f(double-\015oats.)0 -2185 y Fp()480 2309 y Fr(F)-8 b(unctions)31 -b(for)f(class)h(cl)p 1318 2309 V 34 w(LF,)f(the)h(long-\015oats.)0 -2488 y Fp()480 2612 y Fr(F)-8 b(unctions)31 -b(for)f(class)h(cl)p 1318 2612 V 34 w(RA,)f(the)h(rational)g(n)m(um)m -(b)s(ers.)0 2791 y Fp()480 2916 y Fr(F)-8 -b(unctions)31 b(for)f(class)h(cl)p 1318 2916 V 34 w(I,)f(the)h(in)m -(tegers.)0 3094 y Fp()480 3219 y Fr(Input/Output.)0 -3397 y Fp()480 3522 y Fr(Input/Output)d(for)j(class)g -(cl)p 1491 3522 V 33 w(N,)g(the)f(complex)g(n)m(um)m(b)s(ers.)0 -3700 y Fp()480 3825 y Fr(Input/Output)e(for)j(class)g(cl) -p 1491 3825 V 33 w(R,)g(the)f(real)h(n)m(um)m(b)s(ers.)0 -4003 y Fp()480 4128 y Fr(Input/Output)d(for)j(class)g -(cl)p 1491 4128 V 33 w(F,)g(the)g(\015oats.)0 4306 y -Fp()480 4431 y Fr(Input/Output)d(for)j(class)g(cl)p -1491 4431 V 33 w(SF,)f(the)h(short-\015oats.)0 4609 y -Fp()480 4734 y Fr(Input/Output)d(for)j(class)g(cl)p -1491 4734 V 33 w(FF,)g(the)g(single-\015oats.)0 4912 -y Fp()480 5037 y Fr(Input/Output)d(for)j(class)g(cl)p -1491 5037 V 33 w(DF,)g(the)g(double-\015oats.)0 5215 -y Fp()480 5340 y Fr(Input/Output)d(for)j(class)g(cl)p -1491 5340 V 33 w(LF,)g(the)f(long-\015oats.)p eop -%%Page: 59 61 -59 60 bop 0 -116 a Fr(Chapter)30 b(11:)41 b(Using)31 -b(the)f(library)2621 b(59)0 366 y Fp()480 -491 y Fr(Input/Output)28 b(for)j(class)g(cl)p 1491 491 -28 4 v 33 w(RA,)g(the)f(rational)i(n)m(um)m(b)s(ers.)0 -670 y Fp()480 794 y Fr(Input/Output)c(for)j(class)g -(cl)p 1491 794 V 33 w(I,)f(the)h(in)m(tegers.)0 973 y -Fp()480 1097 y Fr(Flags)h(for)e(customizing)g(input)g(op)s -(erations.)0 1276 y Fp()480 1400 y Fr(Flags)i(for)e -(customizing)g(output)g(op)s(erations.)0 1579 y Fp()480 -1703 y(cl_malloc_hook)p Fr(,)d Fp(cl_free_hook)p Fr(.)0 -1882 y Fp()480 2006 y(cl_abort)p Fr(.)0 2185 -y Fp()480 2309 y Fr(Conditions/exceptions.)0 -2488 y Fp()480 2612 y Fr(Strings.)0 2791 -y Fp()480 2916 y Fr(Sym)m(b)s(ols.)0 3094 -y Fp()480 3219 y Fr(Prop)s(ert)m(y)j(lists.)0 -3397 y Fp()480 3522 y Fr(General)h(rings.)0 -3700 y Fp()480 3825 y Fr(The)f(n)m(ull)g(ring.)0 -4003 y Fp()480 4128 y Fr(The)g(ring)g(of)h(complex)f -(n)m(um)m(b)s(ers.)0 4306 y Fp()480 4431 -y Fr(The)g(ring)g(of)h(real)g(n)m(um)m(b)s(ers.)0 4609 -y Fp()480 4734 y Fr(The)f(ring)g(of)h(rational)g(n) -m(um)m(b)s(ers.)0 4912 y Fp()480 5037 -y Fr(The)f(ring)g(of)h(in)m(tegers.)0 5215 y Fp()480 -5340 y Fr(Num)m(b)s(er)d(threory)i(functions.)p eop -%%Page: 60 62 -60 61 bop 0 -116 a Fr(Chapter)30 b(11:)41 b(Using)31 -b(the)f(library)2621 b(60)0 366 y Fp()480 -491 y Fr(Mo)s(dular)30 b(in)m(tegers.)0 659 y Fp()96 -b Fr(V)-8 b(ectors.)0 827 y Fp()480 952 y Fr(General)31 -b(v)m(ectors.)0 1120 y Fp()480 1244 y -Fr(General)g(v)m(ectors)h(o)m(v)m(er)g(cl)p 1393 1244 -28 4 v 33 w(n)m(um)m(b)s(er.)0 1412 y Fp()480 -1537 y Fr(General)f(v)m(ectors)h(o)m(v)m(er)g(cl)p 1393 -1537 V 33 w(N.)0 1705 y Fp()480 1829 y -Fr(General)f(v)m(ectors)h(o)m(v)m(er)g(cl)p 1393 1829 -V 33 w(R.)0 1997 y Fp()480 2122 y Fr(General)f(v)m -(ectors)h(o)m(v)m(er)g(cl)p 1393 2122 V 33 w(RA.)0 2290 -y Fp()480 2414 y Fr(General)f(v)m(ectors)h(o)m(v)m(er) -g(cl)p 1393 2414 V 33 w(I.)0 2582 y Fp()480 -2707 y Fr(General)f(v)m(ectors)h(of)f(mo)s(dular)d(in)m(tegers.)0 -2875 y Fp()480 3000 y Fr(Simple)h(v)m(ectors.)0 -3168 y Fp()480 3292 y Fr(Simple)g(v)m(ectors)j(o)m(v)m -(er)g(cl)p 1352 3292 V 33 w(n)m(um)m(b)s(er.)0 3460 y -Fp()480 3585 y Fr(Simple)d(v)m(ectors)j(o)m(v)m(er)g -(cl)p 1352 3585 V 33 w(N.)0 3753 y Fp()480 -3877 y Fr(Simple)d(v)m(ectors)j(o)m(v)m(er)g(cl)p 1352 -3877 V 33 w(R.)0 4045 y Fp()480 4170 -y Fr(Simple)d(v)m(ectors)j(o)m(v)m(er)g(cl)p 1352 4170 -V 33 w(RA.)0 4338 y Fp()480 4462 y Fr(Simple)d(v)m -(ectors)j(o)m(v)m(er)g(cl)p 1352 4462 V 33 w(I.)0 4630 -y Fp()480 4755 y Fr(Simple)d(v)m(ectors)j(of)e -(general)i(ring)e(elemen)m(ts.)0 4923 y Fp()480 -5047 y Fr(Univ)-5 b(ariate)32 b(p)s(olynomials.)0 5215 -y Fp()480 5340 y Fr(Univ)-5 b(ariate)32 -b(p)s(olynomials)d(o)m(v)m(er)j(the)f(in)m(tegers.)p -eop -%%Page: 61 63 -61 62 bop 0 -116 a Fr(Chapter)30 b(11:)41 b(Using)31 -b(the)f(library)2621 b(61)0 366 y Fp()480 -491 y Fr(Univ)-5 b(ariate)32 b(p)s(olynomials)d(o)m(v)m(er)j(the)f -(rational)g(n)m(um)m(b)s(ers.)0 671 y Fp()480 -795 y Fr(Univ)-5 b(ariate)32 b(p)s(olynomials)d(o)m(v)m(er)j(the)f -(real)g(n)m(um)m(b)s(ers.)0 975 y Fp()480 -1099 y Fr(Univ)-5 b(ariate)32 b(p)s(olynomials)d(o)m(v)m(er)j(the)f -(complex)f(n)m(um)m(b)s(ers.)0 1279 y Fp()480 -1403 y Fr(Univ)-5 b(ariate)32 b(p)s(olynomials)d(o)m(v)m(er)j(mo)s -(dular)c(in)m(teger)k(rings.)0 1583 y Fp()480 -1707 y Fr(Timing)d(facilities.)0 1887 y Fp()144 -b Fr(Includes)30 b(all)h(of)f(the)h(ab)s(o)m(v)m(e.)0 -2359 y Fs(11.3)68 b(An)30 b(Example)0 2635 y Fr(A)g(function)h(whic)m -(h)f(computes)f(the)i(n)m(th)f(Fib)s(onacci)h(n)m(um)m(b)s(er)d(can)j -(b)s(e)f(written)g(as)h(follo)m(ws.)240 2891 y Fp(#include)46 -b()240 2995 y(#include)g()240 -3203 y(//)h(Returns)f(F_n,)h(computed)e(as)i(the)g(nearest)f(integer)g -(to)240 3306 y(//)h(\(\(1+sqrt\(5\)\)/2\)^n/sqrt\(5\))o(.)42 -b(Assume)k(n>=0.)240 3410 y(const)g(cl_I)h(fibonacci)e(\(int)i(n\))240 -3514 y({)622 3618 y(//)g(Need)g(a)g(precision)e(of)j -(\(\(1+sqrt\(5\)\)/2\)^-n.)622 3722 y(cl_float_format_t)43 +%%Page: 46 48 +46 47 bop -30 -116 a Fr(Chapter)30 b(11:)41 b(Using)31 +b(the)f(library)2681 b(46)-30 299 y Fp()450 +408 y Fr(F)-8 b(unctions)31 b(for)f(class)h(cl)p 1288 +408 28 4 v 34 w(RA,)f(the)h(rational)g(n)m(um)m(b)s(ers.)-30 +573 y Fp()450 682 y Fr(F)-8 b(unctions)31 +b(for)f(class)h(cl)p 1288 682 V 34 w(I,)f(the)h(in)m(tegers.)-30 +847 y Fp()450 956 y Fr(Input/Output.)-30 1121 +y Fp()450 1230 y Fr(Input/Output)d(for)j(class)g(cl)p +1461 1230 V 33 w(N,)g(the)f(complex)g(n)m(um)m(b)s(ers.)-30 +1395 y Fp()450 1504 y Fr(Input/Output)e(for)j(class)g(cl) +p 1461 1504 V 33 w(R,)g(the)f(real)h(n)m(um)m(b)s(ers.)-30 +1669 y Fp()450 1778 y Fr(Input/Output)d(for)j(class)g +(cl)p 1461 1778 V 33 w(F,)g(the)g(\015oats.)-30 1943 +y Fp()450 2052 y Fr(Input/Output)d(for)j(class)g(cl)p +1461 2052 V 33 w(SF,)f(the)h(short-\015oats.)-30 2217 +y Fp()450 2326 y Fr(Input/Output)d(for)j(class)g(cl)p +1461 2326 V 33 w(FF,)g(the)g(single-\015oats.)-30 2491 +y Fp()450 2600 y Fr(Input/Output)d(for)j(class)g(cl)p +1461 2600 V 33 w(DF,)g(the)g(double-\015oats.)-30 2765 +y Fp()450 2874 y Fr(Input/Output)d(for)j(class)g(cl)p +1461 2874 V 33 w(LF,)g(the)f(long-\015oats.)-30 3039 +y Fp()450 3148 y Fr(Input/Output)e(for)j(class)g(cl)p +1461 3148 V 33 w(RA,)g(the)f(rational)i(n)m(um)m(b)s(ers.)-30 +3313 y Fp()450 3422 y Fr(Input/Output)c(for)j(class)g +(cl)p 1461 3422 V 33 w(I,)f(the)h(in)m(tegers.)-30 3587 +y Fp()450 3696 y Fr(Flags)h(for)e(customizing)g(input)g(op) +s(erations.)-30 3861 y Fp()450 3970 y Fr(Flags)i(for)e +(customizing)g(output)g(op)s(erations.)-30 4134 y Fp()450 +4244 y(cl_malloc_hook)p Fr(,)d Fp(cl_free_hook)p Fr(.)-30 +4408 y Fp()450 4518 y(cl_abort)p Fr(.)-30 +4682 y Fp()450 4792 y Fr(Conditions/exceptions.)-30 +4956 y Fp()450 5066 y Fr(Strings.)-30 5230 +y Fp()450 5340 y Fr(Sym)m(b)s(ols.)p eop +%%Page: 47 49 +47 48 bop -30 -116 a Fr(Chapter)30 b(11:)41 b(Using)31 +b(the)f(library)2681 b(47)-30 299 y Fp()450 +408 y Fr(Prop)s(ert)m(y)30 b(lists.)-30 564 y Fp()450 +674 y Fr(General)h(rings.)-30 830 y Fp()450 +939 y Fr(The)f(n)m(ull)g(ring.)-30 1095 y Fp()450 +1204 y Fr(The)g(ring)g(of)h(complex)f(n)m(um)m(b)s(ers.)-30 +1360 y Fp()450 1470 y Fr(The)g(ring)g(of)h(real)g(n)m +(um)m(b)s(ers.)-30 1625 y Fp()450 +1735 y Fr(The)f(ring)g(of)h(rational)g(n)m(um)m(b)s(ers.)-30 +1891 y Fp()450 2000 y Fr(The)f(ring)g(of)h(in)m +(tegers.)-30 2156 y Fp()450 2266 y Fr(Num)m(b)s(er)d +(threory)i(functions.)-30 2421 y Fp()450 +2531 y Fr(Mo)s(dular)g(in)m(tegers.)-30 2687 y Fp()96 +b Fr(V)-8 b(ectors.)-30 2842 y Fp()450 2952 +y Fr(General)31 b(v)m(ectors.)-30 3108 y Fp()450 +3217 y Fr(General)g(v)m(ectors)h(o)m(v)m(er)g(cl)p 1363 +3217 28 4 v 33 w(n)m(um)m(b)s(er.)-30 3373 y Fp()450 +3483 y Fr(General)f(v)m(ectors)h(o)m(v)m(er)g(cl)p 1363 +3483 V 33 w(N.)-30 3638 y Fp()450 3748 +y Fr(General)f(v)m(ectors)h(o)m(v)m(er)g(cl)p 1363 3748 +V 33 w(R.)-30 3904 y Fp()450 4013 y +Fr(General)f(v)m(ectors)h(o)m(v)m(er)g(cl)p 1363 4013 +V 33 w(RA.)-30 4169 y Fp()450 4279 y +Fr(General)f(v)m(ectors)h(o)m(v)m(er)g(cl)p 1363 4279 +V 33 w(I.)-30 4434 y Fp()450 4544 +y Fr(General)f(v)m(ectors)h(of)f(mo)s(dular)d(in)m(tegers.)-30 +4700 y Fp()450 4809 y Fr(Simple)h(v)m(ectors.)-30 +4965 y Fp()450 5075 y Fr(Simple)g(v)m(ectors)j(o)m(v)m +(er)g(cl)p 1322 5075 V 33 w(n)m(um)m(b)s(er.)-30 5230 +y Fp()450 5340 y Fr(Simple)d(v)m(ectors)j(o)m(v)m(er)g +(cl)p 1322 5340 V 33 w(N.)p eop +%%Page: 48 50 +48 49 bop -30 -116 a Fr(Chapter)30 b(11:)41 b(Using)31 +b(the)f(library)2681 b(48)-30 299 y Fp()450 +408 y Fr(Simple)29 b(v)m(ectors)j(o)m(v)m(er)g(cl)p 1322 +408 28 4 v 33 w(R.)-30 575 y Fp()450 +685 y Fr(Simple)d(v)m(ectors)j(o)m(v)m(er)g(cl)p 1322 +685 V 33 w(RA.)-30 852 y Fp()450 961 +y Fr(Simple)d(v)m(ectors)j(o)m(v)m(er)g(cl)p 1322 961 +V 33 w(I.)-30 1128 y Fp()450 1238 y +Fr(Simple)d(v)m(ectors)j(of)e(general)i(ring)e(elemen)m(ts.)-30 +1405 y Fp()450 1514 y Fr(Univ)-5 b(ariate)32 +b(p)s(olynomials.)-30 1681 y Fp()450 +1791 y Fr(Univ)-5 b(ariate)32 b(p)s(olynomials)d(o)m(v)m(er)j(the)f(in) +m(tegers.)-30 1958 y Fp()450 +2067 y Fr(Univ)-5 b(ariate)32 b(p)s(olynomials)d(o)m(v)m(er)j(the)f +(rational)g(n)m(um)m(b)s(ers.)-30 2234 y Fp()450 +2344 y Fr(Univ)-5 b(ariate)32 b(p)s(olynomials)d(o)m(v)m(er)j(the)f +(real)g(n)m(um)m(b)s(ers.)-30 2511 y Fp()450 +2620 y Fr(Univ)-5 b(ariate)32 b(p)s(olynomials)d(o)m(v)m(er)j(the)f +(complex)f(n)m(um)m(b)s(ers.)-30 2787 y Fp()450 +2897 y Fr(Univ)-5 b(ariate)32 b(p)s(olynomials)d(o)m(v)m(er)j(mo)s +(dular)c(in)m(teger)k(rings.)-30 3064 y Fp()450 +3173 y Fr(Timing)d(facilities.)-30 3340 y Fp()144 +b Fr(Includes)30 b(all)h(of)f(the)h(ab)s(o)m(v)m(e.)-30 +3616 y Fs(11.3)68 b(An)44 b(Example)-30 3816 y Fr(A)30 +b(function)h(whic)m(h)f(computes)f(the)i(n)m(th)f(Fib)s(onacci)h(n)m +(um)m(b)s(er)d(can)j(b)s(e)f(written)g(as)h(follo)m(ws.)210 +3953 y Fp(#include)46 b()210 4056 y(#include)g +()210 4264 y(//)h(Returns)f(F_n,)h(computed)e(as)i(the)g +(nearest)f(integer)g(to)210 4368 y(//)h +(\(\(1+sqrt\(5\)\)/2\)^n/sqrt\(5\))o(.)42 b(Assume)k(n>=0.)210 +4472 y(const)g(cl_I)h(fibonacci)e(\(int)i(n\))210 4575 +y({)592 4679 y(//)g(Need)g(a)g(precision)e(of)j +(\(\(1+sqrt\(5\)\)/2\)^-n.)592 4783 y(cl_float_format_t)43 b(prec)k(=)g(cl_float_format\(\(int\)\(0.)o(2089)o(8764)o(1*n)o(+5\)\)) -o(;)622 3825 y(cl_R)f(sqrt5)h(=)g(sqrt\(cl_float\(5,prec\)\);)622 -3929 y(cl_R)f(phi)h(=)h(\(1+sqrt5\)/2;)622 4033 y(return)e(round1\()g -(expt\(phi,n\)/sqrt5)d(\);)240 4137 y(})0 4413 y Fr(Let's)31 -b(explain)g(what)f(is)g(going)i(on)e(in)g(detail.)0 4690 -y(The)j(include)h(\014le)g Fp()c Fr(is)k(necessary)g(b)s -(ecause)g(the)g(t)m(yp)s(e)g Fp(cl_I)e Fr(is)i(used)f(in)h(the)g -(function,)h(and)0 4814 y(the)30 b(include)g(\014le)g -Fp()d Fr(is)j(needed)g(for)g(the)g(t)m(yp)s(e)h -Fp(cl_R)e Fr(and)g(the)h(\015oating)h(p)s(oin)m(t)f(n)m(um)m(b)s(er)e -(functions.)0 4939 y(The)i(order)g(of)g(the)h(include)f(\014les)g(do)s -(es)g(not)h(matter.)0 5215 y(Then)h(comes)i(the)f(function)h -(declaration.)51 b(The)33 b(argumen)m(t)g(is)g(an)h Fp(int)p -Fr(,)f(the)h(result)f(an)h(in)m(teger.)51 b(The)33 b(return)0 -5340 y(t)m(yp)s(e)26 b(is)g(de\014ned)f(as)h(`)p Fp(const)j(cl_I)p -Fr(',)d(not)h(simply)d(`)p Fp(cl_I)p Fr(',)i(b)s(ecause)g(that)h(allo)m -(ws)g(the)f(compiler)g(to)h(detect)g(t)m(yp)s(os)p eop -%%Page: 62 64 -62 63 bop 0 -116 a Fr(Chapter)30 b(11:)41 b(Using)31 -b(the)f(library)2621 b(62)0 366 y(lik)m(e)40 b(`)p Fp(fibonacci\(n\))27 -b(=)j(100)p Fr('.)64 b(It)39 b(w)m(ould)f(b)s(e)g(p)s(ossible)g(to)h -(declare)g(the)g(return)e(t)m(yp)s(e)i(as)g Fp(const)29 -b(cl_R)37 b Fr(\(real)0 491 y(n)m(um)m(b)s(er\))28 b(or)h(ev)m(en)i -Fp(const)e(cl_N)f Fr(\(complex)i(n)m(um)m(b)s(er\).)39 -b(W)-8 b(e)31 b(use)e(the)h(most)f(sp)s(ecialized)i(p)s(ossible)e -(return)g(t)m(yp)s(e)0 616 y(b)s(ecause)34 b(functions)f(whic)m(h)g -(call)i(`)p Fp(fibonacci)p Fr(')d(will)i(b)s(e)f(able)h(to)g(pro\014t)f -(from)f(the)i(compiler's)f(t)m(yp)s(e)h(analysis:)0 740 -y(Adding)j(t)m(w)m(o)h(in)m(tegers)h(is)e(sligh)m(tly)h(more)f -(e\016cien)m(t)h(than)f(adding)g(the)h(same)e(ob)5 b(jects)38 -b(declared)g(as)f(complex)0 865 y(n)m(um)m(b)s(ers,)30 -b(b)s(ecause)i(it)g(needs)g(less)g(t)m(yp)s(e)g(dispatc)m(h.)46 -b(Also,)33 b(when)e(linking)h(to)h(CLN)e(as)h(a)h(non-shared)e(library) --8 b(,)0 989 y(this)30 b(minimizes)f(the)i(size)g(of)f(the)h(resulting) -f(executable)i(program.)0 1263 y(The)37 b(result)g(will)g(b)s(e)g -(computed)f(as)h(expt\(phi,n\)/sqrt\(5\),)k(rounded)35 -b(to)j(the)g(nearest)f(in)m(teger.)63 b(In)36 b(order)h(to)0 -1388 y(get)h(a)f(correct)h(result,)h(the)e(absolute)h(error)e(should)g -(b)s(e)g(less)h(than)g(1/2,)j(i.e.)61 b(the)37 b(relativ)m(e)i(error)e -(should)f(b)s(e)0 1512 y(less)28 b(than)g -(sqrt\(5\)/\(2*expt\(phi,n\)\).)43 b(T)-8 b(o)29 b(this)f(end,)g(the)h -(\014rst)e(line)i(computes)e(a)i(\015oating)g(p)s(oin)m(t)f(precision)g -(for)0 1637 y(sqrt\(5\))j(and)f(phi.)0 1911 y(Then)37 -b(sqrt\(5\))i(is)e(computed)g(b)m(y)h(\014rst)f(con)m(v)m(erting)j(the) -e(in)m(teger)h(5)f(to)h(a)f(\015oating)h(p)s(oin)m(t)e(n)m(um)m(b)s(er) -f(and)h(than)0 2035 y(taking)j(the)f(square)f(ro)s(ot.)67 -b(The)38 b(con)m(v)m(erse,)43 b(\014rst)38 b(taking)i(the)f(square)f -(ro)s(ot)h(of)g(5,)j(and)c(then)h(con)m(v)m(erting)h(to)0 -2160 y(the)c(desired)g(precision,)h(w)m(ould)f(not)g(w)m(ork)g(in)g -(CLN:)g(The)f(square)h(ro)s(ot)g(w)m(ould)g(b)s(e)f(computed)g(to)h(a)h -(default)0 2284 y(precision)e(\(normally)g(single-\015oat)h -(precision\),)h(and)e(the)g(follo)m(wing)h(con)m(v)m(ersion)g(could)f -(not)h(help)e(ab)s(out)h(the)0 2409 y(lac)m(king)i(accuracy)-8 -b(.)58 b(This)35 b(is)h(b)s(ecause)f(CLN)g(is)h(not)g(a)g(sym)m(b)s -(olic)f(computer)f(algebra)j(system)d(and)h(do)s(es)h(not)0 -2533 y(represen)m(t)30 b(sqrt\(5\))i(in)e(a)h(non-n)m(umeric)d(w)m(a)m -(y)-8 b(.)0 2807 y(The)38 b(t)m(yp)s(e)h Fp(cl_R)f Fr(for)h(sqrt5)g -(and,)i(in)d(the)h(follo)m(wing)i(line,)g(phi)d(is)h(the)g(only)g(p)s -(ossible)g(c)m(hoice.)68 b(Y)-8 b(ou)39 b(cannot)0 2932 -y(write)28 b Fp(cl_F)e Fr(b)s(ecause)i(the)f(C)p Fp(++)g -Fr(compiler)g(can)h(only)f(infer)g(that)h Fp(cl_float\(5,prec\))23 -b Fr(is)28 b(a)g(real)g(n)m(um)m(b)s(er.)37 b(Y)-8 b(ou)0 -3056 y(cannot)31 b(write)g Fp(cl_N)e Fr(b)s(ecause)h(a)h(`)p -Fp(round1)p Fr(')e(do)s(es)h(not)h(exist)g(for)f(general)h(complex)f(n) -m(um)m(b)s(ers.)0 3330 y(When)44 b(the)h(function)f(returns,)j(all)e -(the)g(lo)s(cal)g(v)-5 b(ariables)45 b(in)f(the)h(function)f(are)h -(automatically)h(reclaimed)0 3455 y(\(garbage)32 b(collected\).)43 -b(Only)30 b(the)h(result)f(surviv)m(es)g(and)g(gets)h(passed)f(to)h -(the)g(caller.)0 3729 y(The)j(\014le)g Fp(fibonacci.cc)d -Fr(in)j(the)h(sub)s(directory)e Fp(examples)f Fr(con)m(tains)k(this)e -(implemen)m(tation)g(together)i(with)0 3853 y(an)30 b(ev)m(en)h(faster) -g(algorithm.)0 4292 y Fs(11.4)68 b(Debugging)31 b(supp)t(ort)0 -4566 y Fr(When)f(debugging)g(a)h(CLN)f(application)i(with)e(GNU)h +o(;)592 4887 y(cl_R)f(sqrt5)h(=)g(sqrt\(cl_float\(5,prec\)\);)592 +4990 y(cl_R)f(phi)h(=)h(\(1+sqrt5\)/2;)592 5094 y(return)e(round1\()g +(expt\(phi,n\)/sqrt5)d(\);)210 5198 y(})-30 5340 y Fr(Let's)31 +b(explain)g(what)f(is)g(going)i(on)e(in)g(detail.)p eop +%%Page: 49 51 +49 50 bop -30 -116 a Fr(Chapter)30 b(11:)41 b(Using)31 +b(the)f(library)2681 b(49)-30 299 y(The)27 b(include)g(\014le)h +Fp()c Fr(is)k(necessary)g(b)s(ecause)f(the)h(t)m(yp)s(e)g +Fp(cl_I)e Fr(is)i(used)f(in)g(the)h(function,)g(and)f(the)-30 +408 y(include)k(\014le)g Fp()e Fr(is)i(needed)g(for)g(the)g +(t)m(yp)s(e)h Fp(cl_R)e Fr(and)h(the)g(\015oating)h(p)s(oin)m(t)f(n)m +(um)m(b)s(er)e(functions.)43 b(The)-30 518 y(order)30 +b(of)g(the)h(include)f(\014les)g(do)s(es)g(not)h(matter.)-30 +657 y(Then)23 b(comes)i(the)f(function)h(declaration.)40 +b(The)24 b(argumen)m(t)g(is)g(an)h Fp(int)p Fr(,)g(the)f(result)h(an)f +(in)m(teger.)40 b(The)24 b(return)g(t)m(yp)s(e)-30 767 +y(is)33 b(de\014ned)e(as)i(`)p Fp(const)c(cl_I)p Fr(',)j(not)h(simply)e +(`)p Fp(cl_I)p Fr(',)i(b)s(ecause)f(that)h(allo)m(ws)h(the)f(compiler)f +(to)h(detect)h(t)m(yp)s(os)f(lik)m(e)-30 876 y(`)p Fp(fibonacci\(n\))27 +b(=)j(100)p Fr('.)40 b(It)29 b(w)m(ould)f(b)s(e)h(p)s(ossible)f(to)i +(declare)f(the)h(return)d(t)m(yp)s(e)i(as)g Fp(const)g(cl_R)f +Fr(\(real)i(n)m(um)m(b)s(er\))-30 986 y(or)36 b(ev)m(en)g +Fp(const)29 b(cl_N)35 b Fr(\(complex)h(n)m(um)m(b)s(er\).)55 +b(W)-8 b(e)37 b(use)f(the)g(most)f(sp)s(ecialized)i(p)s(ossible)e +(return)g(t)m(yp)s(e)h(b)s(ecause)-30 1095 y(functions)26 +b(whic)m(h)g(call)h(`)p Fp(fibonacci)p Fr(')d(will)j(b)s(e)e(able)i(to) +g(pro\014t)f(from)e(the)j(compiler's)f(t)m(yp)s(e)g(analysis:)39 +b(Adding)26 b(t)m(w)m(o)-30 1205 y(in)m(tegers)g(is)e(sligh)m(tly)i +(more)e(e\016cien)m(t)i(than)e(adding)g(the)h(same)f(ob)5 +b(jects)25 b(declared)g(as)g(complex)f(n)m(um)m(b)s(ers,)g(b)s(ecause) +-30 1314 y(it)34 b(needs)f(less)h(t)m(yp)s(e)f(dispatc)m(h.)51 +b(Also,)35 b(when)d(linking)i(to)g(CLN)f(as)h(a)g(non-shared)e(library) +-8 b(,)35 b(this)e(minimizes)f(the)-30 1424 y(size)f(of)g(the)f +(resulting)h(executable)h(program.)-30 1563 y(The)f(result)g(will)h(b)s +(e)f(computed)f(as)i(expt\(phi,n\)/sqrt\(5\),)h(rounded)d(to)j(the)e +(nearest)h(in)m(teger.)46 b(In)31 b(order)g(to)h(get)-30 +1673 y(a)c(correct)h(result,)g(the)f(absolute)h(error)e(should)g(b)s(e) +g(less)i(than)e(1/2,)j(i.e.)41 b(the)28 b(relativ)m(e)i(error)e(should) +f(b)s(e)g(less)h(than)-30 1782 y(sqrt\(5\)/\(2*expt\(phi,n\)\).)65 +b(T)-8 b(o)38 b(this)g(end,)h(the)e(\014rst)g(line)h(computes)f(a)h +(\015oating)g(p)s(oin)m(t)g(precision)g(for)f(sqrt\(5\))-30 +1892 y(and)30 b(phi.)-30 2031 y(Then)41 b(sqrt\(5\))h(is)g(computed)e +(b)m(y)i(\014rst)e(con)m(v)m(erting)k(the)e(in)m(teger)h(5)f(to)g(a)g +(\015oating)g(p)s(oin)m(t)g(n)m(um)m(b)s(er)d(and)i(than)-30 +2140 y(taking)i(the)f(square)g(ro)s(ot.)76 b(The)42 b(con)m(v)m(erse,)k +(\014rst)c(taking)h(the)f(square)g(ro)s(ot)g(of)g(5,)k(and)c(then)f +(con)m(v)m(erting)j(to)-30 2250 y(the)c(desired)f(precision,)j(w)m +(ould)e(not)g(w)m(ork)f(in)h(CLN:)f(The)g(square)h(ro)s(ot)g(w)m(ould)f +(b)s(e)g(computed)f(to)j(a)f(default)-30 2359 y(precision)g(\(normally) +f(single-\015oat)j(precision\),)h(and)c(the)h(follo)m(wing)i(con)m(v)m +(ersion)f(could)f(not)g(help)f(ab)s(out)h(the)-30 2469 +y(lac)m(king)h(accuracy)-8 b(.)68 b(This)39 b(is)g(b)s(ecause)g(CLN)g +(is)g(not)g(a)g(sym)m(b)s(olic)g(computer)f(algebra)i(system)e(and)h +(do)s(es)g(not)-30 2579 y(represen)m(t)30 b(sqrt\(5\))i(in)e(a)h(non-n) +m(umeric)d(w)m(a)m(y)-8 b(.)-30 2717 y(The)29 b(t)m(yp)s(e)i +Fp(cl_R)d Fr(for)i(sqrt5)g(and,)g(in)g(the)g(follo)m(wing)h(line,)g +(phi)e(is)h(the)h(only)f(p)s(ossible)f(c)m(hoice.)43 +b(Y)-8 b(ou)30 b(cannot)h(write)-30 2827 y Fp(cl_F)26 +b Fr(b)s(ecause)h(the)g(C)p Fp(++)g Fr(compiler)f(can)i(only)f(infer)g +(that)g Fp(cl_float\(5,prec\))c Fr(is)k(a)h(real)f(n)m(um)m(b)s(er.)38 +b(Y)-8 b(ou)27 b(cannot)-30 2937 y(write)k Fp(cl_N)e +Fr(b)s(ecause)h(a)h(`)p Fp(round1)p Fr(')e(do)s(es)h(not)h(exist)g(for) +f(general)h(complex)f(n)m(um)m(b)s(ers.)-30 3075 y(When)21 +b(the)g(function)g(returns,)h(all)g(the)f(lo)s(cal)h(v)-5 +b(ariables)22 b(in)f(the)g(function)g(are)g(automatically)i(reclaimed)e +(\(garbage)-30 3185 y(collected\).)43 b(Only)30 b(the)h(result)f +(surviv)m(es)g(and)g(gets)h(passed)f(to)h(the)g(caller.)-30 +3324 y(The)d(\014le)h Fp(fibonacci.cc)c Fr(in)j(the)h(sub)s(directory)e +Fp(examples)f Fr(con)m(tains)k(this)f(implemen)m(tation)f(together)i +(with)e(an)-30 3434 y(ev)m(en)j(faster)g(algorithm.)-30 +3702 y Fs(11.4)68 b(Debugging)46 b(supp)t(ort)-30 3899 +y Fr(When)30 b(debugging)g(a)h(CLN)f(application)i(with)e(GNU)h Fp(gdb)p Fr(,)f(t)m(w)m(o)h(facilities)i(are)e(a)m(v)-5 -b(ailable)33 b(from)28 b(the)j(library:)75 4840 y Fq(\017)60 -b Fr(The)32 b(library)h(do)s(es)f(t)m(yp)s(e)h(c)m(hec)m(ks,)j(range)d -(c)m(hec)m(ks,)i(consistency)f(c)m(hec)m(ks)g(at)g(man)m(y)e(places.)49 -b(When)33 b(one)g(of)180 4965 y(these)40 b(fails,)i(the)e(function)f -Fp(cl_abort\(\))d Fr(is)j(called.)69 b(Its)39 b(default)h(implemen)m -(tation)f(is)g(to)h(p)s(erform)d(an)180 5089 y Fp(exit\(1\))p -Fr(,)29 b(so)i(y)m(ou)f(w)m(on't)i(ha)m(v)m(e)f(a)g(core)h(dump.)38 -b(But)31 b(for)f(debugging,)h(it)g(is)f(b)s(est)g(to)i(set)f(a)g -(breakp)s(oin)m(t)f(at)180 5214 y(this)g(function:)420 -5340 y Fp(\(gdb\))46 b(break)h(cl_abort)p eop -%%Page: 63 65 -63 64 bop 0 -116 a Fr(Chapter)30 b(11:)41 b(Using)31 -b(the)f(library)2621 b(63)180 366 y(When)30 b(this)g(breakp)s(oin)m(t)h -(is)f(hit,)h(lo)s(ok)g(at)g(the)f(stac)m(k's)i(bac)m(ktrace:)420 -495 y Fp(\(gdb\))46 b(where)75 645 y Fq(\017)60 b Fr(The)27 -b(debugger's)g(normal)g Fp(print)f Fr(command)f(do)s(esn't)j(kno)m(w)f -(ab)s(out)h(CLN's)f(t)m(yp)s(es)g(and)g(therefore)h(prin)m(ts)180 -769 y(mostly)43 b(useless)h(hexadecimal)g(addresses.)80 -b(CLN)43 b(o\013ers)h(a)g(function)f Fp(cl_print)p Fr(,)i(callable)h -(from)c(the)180 894 y(debugger,)37 b(for)e(prin)m(ting)g(n)m(um)m(b)s -(er)e(ob)5 b(jects.)57 b(In)35 b(order)g(to)h(get)g(this)g(function,)g -(y)m(ou)g(ha)m(v)m(e)h(to)f(de\014ne)f(the)180 1018 y(macro)24 -b(`)p Fp(CL_DEBUG)p Fr(')f(and)h(then)h(include)f(all)h(the)g(header)g -(\014les)f(for)h(whic)m(h)f(y)m(ou)h(w)m(an)m(t)h Fp(cl_print)c -Fr(debugging)180 1143 y(supp)s(ort.)39 b(F)-8 b(or)31 -b(example:)420 1271 y Fp(#define)46 b(CL_DEBUG)420 1375 -y(#include)g()180 1525 y Fr(No)m(w,)26 b(if)f(y)m(ou)f(ha) -m(v)m(e)i(in)e(y)m(our)g(program)f(a)i(v)-5 b(ariable)25 -b Fp(cl_string)i(s)p Fr(,)f(and)e(insp)s(ect)g(it)g(under)f -Fp(gdb)p Fr(,)i(the)f(output)180 1649 y(ma)m(y)30 b(lo)s(ok)h(lik)m(e)h -(this:)420 1778 y Fp(\(gdb\))46 b(print)h(s)420 1882 -y($7)g(=)h({)43 b(=)48 b({)f(=)h({pointer)d(=)j -(0x8055b60,)d(heappointer)f(=)k(0x8055b60,)515 1985 y(word)f(=)h -(134568800}},)c(})420 2089 y(\(gdb\))i(call)h(cl_print\(s\))420 -2193 y(\(cl_string\))e("")420 2297 y($8)i(=)h(134568800)180 -2446 y Fr(Note)34 b(that)f(the)g(output)f(of)h Fp(cl_print)d -Fr(go)s(es)k(to)f(the)g(program's)e(error)h(output,)h(not)g(to)h(gdb's) -e(standard)180 2571 y(output.)180 2720 y(Note,)38 b(ho)m(w)m(ev)m(er,)g -(that)d(the)g(ab)s(o)m(v)m(e)i(facilit)m(y)g(do)s(es)d(not)i(w)m(ork)f -(with)f(all)i(CLN)f(t)m(yp)s(es,)h(only)g(with)e(n)m(um)m(b)s(er)180 -2845 y(ob)5 b(jects)42 b(and)e(similar.)72 b(Therefore)41 -b(CLN)g(o\013ers)g(a)h(mem)m(b)s(er)c(function)j Fp(debug_print\(\))c -Fr(on)k(all)h(CLN)180 2969 y(t)m(yp)s(es.)63 b(The)37 -b(same)g(macro)h(`)p Fp(CL_DEBUG)p Fr(')e(is)h(needed)h(for)f(this)h -(mem)m(b)s(er)d(function)j(to)g(b)s(e)f(implemen)m(ted.)180 -3094 y(Under)30 b Fp(gdb)p Fr(,)f(y)m(ou)i(call)h(it)f(lik)m(e)g(this:) -420 3222 y Fp(\(gdb\))46 b(print)h(s)420 3326 y($7)g(=)h -({)43 b(=)48 b({)f(=)h({pointer)d(=)j(0x8055b60,)d -(heappointer)f(=)k(0x8055b60,)515 3430 y(word)f(=)h(134568800}},)c(}) -420 3534 y(\(gdb\))i(call)h(s.debug_print\(\))420 3638 -y(\(cl_string\))e("")420 3741 y(\(gdb\))h(define)g(cprint)420 -3845 y(>call)g(\($1\).debug_print\(\))420 3949 y(>end)420 -4053 y(\(gdb\))g(cprint)g(s)420 4156 y(\(cl_string\))f("")180 -4306 y Fr(Unfortunately)-8 b(,)31 b(this)g(feature)f(do)s(es)g(not)h -(seem)f(to)h(w)m(ork)f(under)f(all)i(circumstances.)p +b(ailable)33 b(from)28 b(the)j(library:)45 4038 y Fq(\017)60 +b Fr(The)36 b(library)g(do)s(es)g(t)m(yp)s(e)h(c)m(hec)m(ks,)j(range)d +(c)m(hec)m(ks,)i(consistency)f(c)m(hec)m(ks)g(at)f(man)m(y)f(places.)60 +b(When)36 b(one)h(of)150 4147 y(these)44 b(fails,)j(the)c(function)g +Fp(cl_abort\(\))e Fr(is)i(called.)81 b(Its)43 b(default)g(implemen)m +(tation)g(is)g(to)h(p)s(erform)d(an)150 4257 y Fp(exit\(1\))p +Fr(,)32 b(so)i(y)m(ou)g(w)m(on't)g(ha)m(v)m(e)h(a)f(core)g(dump.)47 +b(But)34 b(for)f(debugging,)h(it)g(is)g(b)s(est)f(to)h(set)g(a)g +(breakp)s(oin)m(t)f(at)150 4366 y(this)d(function:)390 +4497 y Fp(\(gdb\))46 b(break)h(cl_abort)150 4634 y Fr(When)30 +b(this)g(breakp)s(oin)m(t)h(is)f(hit,)h(lo)s(ok)g(at)g(the)f(stac)m +(k's)i(bac)m(ktrace:)390 4765 y Fp(\(gdb\))46 b(where)45 +4902 y Fq(\017)60 b Fr(The)32 b(debugger's)g(normal)g +Fp(print)f Fr(command)f(do)s(esn't)j(kno)m(w)f(ab)s(out)h(CLN's)f(t)m +(yp)s(es)g(and)g(therefore)h(prin)m(ts)150 5011 y(mostly)j(useless)g +(hexadecimal)h(addresses.)58 b(CLN)35 b(o\013ers)i(a)g(function)f +Fp(cl_print)p Fr(,)f(callable)k(from)34 b(the)j(de-)150 +5121 y(bugger,)29 b(for)f(prin)m(ting)g(n)m(um)m(b)s(er)d(ob)5 +b(jects.)41 b(In)28 b(order)f(to)i(get)g(this)f(function,)h(y)m(ou)f +(ha)m(v)m(e)i(to)f(de\014ne)e(the)h(macro)150 5230 y(`)p +Fp(CL_DEBUG)p Fr(')21 b(and)h(then)g(include)g(all)i(the)f(header)f +(\014les)h(for)f(whic)m(h)g(y)m(ou)h(w)m(an)m(t)h Fp(cl_print)c +Fr(debugging)i(supp)s(ort.)150 5340 y(F)-8 b(or)31 b(example:)p eop -%%Page: 64 66 -64 65 bop 0 -116 a Fr(Chapter)30 b(12:)41 b(Customizing)2803 -b(64)0 366 y Fo(12)80 b(Customizing)0 1146 y Fs(12.1)68 -b(Error)31 b(handling)0 1438 y Fr(When)36 b(a)g(fatal)h(error)f(o)s -(ccurs,)i(an)d(error)h(message)g(is)g(output)g(to)h(the)f(standard)f -(error)h(output)f(stream,)j(and)0 1562 y(the)k(function)f -Fp(cl_abort)e Fr(is)j(called.)76 b(The)41 b(default)h(v)m(ersion)g(of)f -(this)h(function)f(\(pro)m(vided)h(in)f(the)h(library\))0 -1687 y(terminates)32 b(the)g(application.)46 b(T)-8 b(o)32 -b(catc)m(h)h(suc)m(h)f(a)g(fatal)h(error,)f(y)m(ou)g(need)f(to)i -(de\014ne)e(the)h(function)f Fp(cl_abort)0 1811 y Fr(y)m(ourself,)g -(with)f(the)h(protot)m(yp)s(e)240 2083 y Fp(#include)46 -b()240 2186 y(void)h(cl_abort)e(\(void\);)0 -2478 y Fr(This)30 b(function)g(m)m(ust)f(not)i(return)e(con)m(trol)j -(to)f(its)f(caller.)0 3087 y Fs(12.2)68 b(Floating-p)t(oin)l(t)32 -b(under\015o)l(w)0 3379 y Fr(Floating)c(p)s(oin)m(t)d(under\015o)m(w)g -(denotes)h(the)g(situation)g(when)f(a)h(\015oating-p)s(oin)m(t)h(n)m -(um)m(b)s(er)c(is)j(to)g(b)s(e)f(created)i(whic)m(h)0 -3503 y(is)32 b(so)g(close)h(to)f Fp(0)g Fr(that)g(its)g(exp)s(onen)m(t) -g(is)g(to)s(o)h(lo)m(w)f(to)h(b)s(e)e(represen)m(ted)h(in)m(ternally)-8 -b(.)46 b(By)32 b(default,)h(this)e(causes)i(a)0 3628 -y(fatal)f(error.)40 b(If)30 b(y)m(ou)h(set)f(the)h(global)h(v)-5 -b(ariable)240 3899 y Fp(cl_boolean)45 b(cl_inhibit_floating_poin)o -(t_un)o(derf)o(low)0 4190 y Fr(to)36 b Fp(cl_true)p Fr(,)f(the)h(error) -f(will)h(b)s(e)f(inhibited,)h(and)f(a)h(\015oating-p)s(oin)m(t)h(zero)f -(will)g(b)s(e)f(generated)h(instead.)56 b(The)0 4315 -y(default)31 b(v)-5 b(alue)30 b(of)h Fp(cl_inhibit_floating_poin)o -(t_un)o(der)o(flow)24 b Fr(is)30 b Fp(cl_false)p Fr(.)0 -4924 y Fs(12.3)68 b(Customizing)32 b(I/O)0 5215 y Fr(The)27 -b(output)g(of)h(the)f(function)h Fp(fprint)d Fr(ma)m(y)i(b)s(e)g -(customized)h(b)m(y)f(c)m(hanging)h(the)g(v)-5 b(alue)28 -b(of)g(the)f(global)i(v)-5 b(ariable)0 5340 y Fp -(cl_default_print_flags)p Fr(.)p eop -%%Page: 65 67 -65 66 bop 0 -116 a Fr(Chapter)30 b(12:)41 b(Customizing)2803 -b(65)0 366 y Fs(12.4)68 b(Customizing)32 b(the)e(memory)h(allo)t(cator) -0 640 y Fr(Ev)m(ery)j(memory)d(allo)s(cation)36 b(of)e(CLN)f(is)h(done) -f(through)g(the)g(function)h(p)s(oin)m(ter)f Fp(cl_malloc_hook)p -Fr(.)47 b(F)-8 b(reeing)0 765 y(of)31 b(this)g(memory)e(is)i(done)f -(through)g(the)h(function)g(p)s(oin)m(ter)g Fp(cl_free_hook)p -Fr(.)39 b(The)30 b(default)h(v)m(ersions)g(of)g(these)0 -890 y(functions,)e(pro)m(vided)f(in)g(the)h(library)-8 -b(,)29 b(call)h Fp(malloc)d Fr(and)h Fp(free)f Fr(and)h(c)m(hec)m(k)i -(the)f Fp(malloc)e Fr(result)h(against)i Fp(NULL)p Fr(.)0 -1014 y(If)25 b(y)m(ou)h(w)m(an)m(t)h(to)f(pro)m(vide)g(another)g -(memory)d(allo)s(cator,)29 b(y)m(ou)d(need)f(to)i(de\014ne)e(the)h(v)-5 -b(ariables)26 b Fp(cl_malloc_hook)0 1139 y Fr(and)k Fp(cl_free_hook)d -Fr(y)m(ourself,)k(lik)m(e)g(this:)240 1392 y Fp(#include)46 -b()240 1496 y(void*)g(\(*cl_malloc_hook\))d(\(size_t)j -(size\))h(=)g Fn(:)15 b(:)g(:)q Fp(;)240 1599 y(void)47 -b(\(*cl_free_hook\))c(\(void*)j(ptr\))286 b(=)47 b Fn(:)15 -b(:)g(:)q Fp(;)0 1873 y Fr(The)30 b Fp(cl_malloc_hook)c +%%Page: 50 52 +50 51 bop -30 -116 a Fr(Chapter)30 b(11:)41 b(Using)31 +b(the)f(library)2681 b(50)390 299 y Fp(#define)46 b(CL_DEBUG)390 +403 y(#include)g()150 537 y Fr(No)m(w,)30 +b(if)e(y)m(ou)g(ha)m(v)m(e)i(in)d(y)m(our)h(program)f(a)i(v)-5 +b(ariable)29 b Fp(cl_string)f(s)p Fr(,)g(and)g(insp)s(ect)g(it)g(under) +f Fp(gdb)p Fr(,)h(the)g(output)150 647 y(ma)m(y)i(lo)s(ok)h(lik)m(e)h +(this:)390 775 y Fp(\(gdb\))46 b(print)h(s)390 879 y($7)g(=)h +({)43 b(=)48 b({)f(=)h({pointer)d(=)j(0x8055b60,)d +(heappointer)f(=)k(0x8055b60,)485 983 y(word)f(=)h(134568800}},)c(})390 +1087 y(\(gdb\))i(call)h(cl_print\(s\))390 1191 y(\(cl_string\))e("")390 +1294 y($8)i(=)h(134568800)150 1429 y Fr(Note)38 b(that)f(the)g(output)f +(of)h Fp(cl_print)d Fr(go)s(es)j(to)g(the)g(program's)f(error)g +(output,)i(not)e(to)i(gdb's)e(standard)150 1538 y(output.)150 +1673 y(Note,)43 b(ho)m(w)m(ev)m(er,)f(that)d(the)g(ab)s(o)m(v)m(e)i +(facilit)m(y)f(do)s(es)f(not)g(w)m(ork)g(with)f(all)i(CLN)f(t)m(yp)s +(es,)i(only)e(with)f(n)m(um)m(b)s(er)150 1782 y(ob)5 +b(jects)27 b(and)e(similar.)38 b(Therefore)26 b(CLN)f(o\013ers)i(a)f +(mem)m(b)s(er)d(function)j Fp(debug_print\(\))c Fr(on)j(all)i(CLN)f(t)m +(yp)s(es.)150 1892 y(The)h(same)g(macro)g(`)p Fp(CL_DEBUG)p +Fr(')f(is)h(needed)h(for)f(this)g(mem)m(b)s(er)e(function)i(to)i(b)s(e) +e(implemen)m(ted.)38 b(Under)27 b Fp(gdb)p Fr(,)150 2002 +y(y)m(ou)k(call)g(it)g(lik)m(e)h(this:)390 2130 y Fp(\(gdb\))46 +b(print)h(s)390 2234 y($7)g(=)h({)43 b(=)48 +b({)f(=)h({pointer)d(=)j(0x8055b60,)d(heappointer)f(=)k(0x8055b60,)485 +2338 y(word)f(=)h(134568800}},)c(})390 2442 y(\(gdb\))i(call)h +(s.debug_print\(\))390 2545 y(\(cl_string\))e("")390 +2649 y(\(gdb\))h(define)g(cprint)390 2753 y(>call)g +(\($1\).debug_print\(\))390 2857 y(>end)390 2961 y(\(gdb\))g(cprint)g +(s)390 3064 y(\(cl_string\))f("")150 3199 y Fr(Unfortunately)-8 +b(,)31 b(this)g(feature)f(do)s(es)g(not)h(seem)f(to)h(w)m(ork)f(under)f +(all)i(circumstances.)p eop +%%Page: 51 53 +51 52 bop -30 -116 a Fr(Chapter)30 b(12:)41 b(Customizing)2863 +b(51)-30 299 y Fo(12)80 b(Customizing)-30 656 y Fs(12.1)68 +b(Error)46 b(handling)-30 848 y Fr(When)30 b(a)h(fatal)g(error)f(o)s +(ccurs,)g(an)g(error)g(message)g(is)g(output)g(to)h(the)f(standard)g +(error)g(output)f(stream,)h(and)g(the)-30 958 y(function)c +Fp(cl_abort)e Fr(is)i(called.)41 b(The)26 b(default)g(v)m(ersion)h(of)g +(this)f(function)g(\(pro)m(vided)g(in)g(the)h(library\))f(terminates) +-30 1068 y(the)i(application.)41 b(T)-8 b(o)29 b(catc)m(h)h(suc)m(h)d +(a)i(fatal)g(error,)f(y)m(ou)h(need)e(to)i(de\014ne)f(the)g(function)f +Fp(cl_abort)f Fr(y)m(ourself,)j(with)-30 1177 y(the)i(protot)m(yp)s(e) +210 1306 y Fp(#include)46 b()210 1410 y(void)h(cl_abort)e +(\(void\);)-30 1544 y Fr(This)30 b(function)g(m)m(ust)f(not)i(return)e +(con)m(trol)j(to)f(its)f(caller.)-30 1802 y Fs(12.2)68 +b(Floating-p)t(oin)l(t)47 b(under\015o)l(w)-30 1994 y +Fr(Floating)32 b(p)s(oin)m(t)e(under\015o)m(w)e(denotes)j(the)f +(situation)h(when)e(a)h(\015oating-p)s(oin)m(t)h(n)m(um)m(b)s(er)d(is)i +(to)h(b)s(e)e(created)i(whic)m(h)-30 2104 y(is)k(so)g(close)g(to)h +Fp(0)e Fr(that)h(its)g(exp)s(onen)m(t)g(is)g(to)s(o)g(lo)m(w)g(to)h(b)s +(e)e(represen)m(ted)g(in)m(ternally)-8 b(.)55 b(By)35 +b(default,)h(this)f(causes)g(a)-30 2213 y(fatal)d(error.)40 +b(If)30 b(y)m(ou)h(set)f(the)h(global)h(v)-5 b(ariable)210 +2342 y Fp(cl_boolean)45 b(cl_inhibit_floating_poin)o(t_un)o(derf)o(low) +-30 2477 y Fr(to)40 b Fp(cl_true)p Fr(,)f(the)g(error)g(will)g(b)s(e)f +(inhibited,)j(and)d(a)h(\015oating-p)s(oin)m(t)i(zero)e(will)h(b)s(e)e +(generated)i(instead.)66 b(The)-30 2586 y(default)31 +b(v)-5 b(alue)30 b(of)h Fp(cl_inhibit_floating_poin)o(t_un)o(der)o +(flow)24 b Fr(is)30 b Fp(cl_false)p Fr(.)-30 2844 y Fs(12.3)68 +b(Customizing)46 b(I/O)-30 3036 y Fr(The)31 b(output)g(of)g(the)g +(function)g Fp(fprint)f Fr(ma)m(y)h(b)s(e)f(customized)h(b)m(y)g(c)m +(hanging)i(the)e(v)-5 b(alue)32 b(of)f(the)h(global)g(v)-5 +b(ariable)-30 3146 y Fp(cl_default_print_flags)p Fr(.)-30 +3403 y Fs(12.4)68 b(Customizing)46 b(the)f(memory)h(allo)t(cator)-30 +3596 y Fr(Ev)m(ery)38 b(memory)e(allo)s(cation)k(of)e(CLN)f(is)h(done)g +(through)f(the)h(function)g(p)s(oin)m(ter)f Fp(cl_malloc_hook)p +Fr(.)60 b(F)-8 b(reeing)-30 3705 y(of)35 b(this)f(memory)f(is)i(done)f +(through)g(the)h(function)f(p)s(oin)m(ter)h Fp(cl_free_hook)p +Fr(.)50 b(The)34 b(default)h(v)m(ersions)g(of)f(these)-30 +3815 y(functions,)f(pro)m(vided)f(in)g(the)h(library)-8 +b(,)33 b(call)h Fp(malloc)d Fr(and)h Fp(free)f Fr(and)h(c)m(hec)m(k)i +(the)f Fp(malloc)e Fr(result)h(against)i Fp(NULL)p Fr(.)-30 +3924 y(If)c(y)m(ou)g(w)m(an)m(t)h(to)f(pro)m(vide)g(another)h(memory)d +(allo)s(cator,)k(y)m(ou)e(need)g(to)h(de\014ne)e(the)h(v)-5 +b(ariables)31 b Fp(cl_malloc_hook)-30 4034 y Fr(and)f +Fp(cl_free_hook)d Fr(y)m(ourself,)k(lik)m(e)g(this:)210 +4163 y Fp(#include)46 b()210 4267 y(void*)g +(\(*cl_malloc_hook\))d(\(size_t)j(size\))h(=)g(...)o(;)210 +4370 y(void)g(\(*cl_free_hook\))c(\(void*)j(ptr\))286 +b(=)47 b(...)o(;)-30 4505 y Fr(The)30 b Fp(cl_malloc_hook)c Fr(function)k(m)m(ust)g(not)g(return)g(a)g Fp(NULL)g -Fr(p)s(oin)m(ter.)0 2147 y(It)24 b(is)g(not)g(p)s(ossible)f(to)i(c)m -(hange)g(the)f(memory)e(allo)s(cator)k(at)f(run)m(time,)f(b)s(ecause)g -(it)g(is)g(already)g(called)i(at)e(program)0 2272 y(startup)30 -b(b)m(y)g(the)h(constructors)f(of)h(some)f(global)h(v)-5 -b(ariables.)p eop -%%Page: 66 68 -66 67 bop 0 -116 a Fr(Index)3586 b(66)0 366 y Fo(Index)0 -848 y Fs(A)0 981 y Fe(abs)26 b(\(\))10 b Fd(.)k(.)f(.)h(.)f(.)g(.)g(.)g -(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.) -h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f -(.)g(.)g(.)37 b Fc(14)0 1097 y(abstract)26 b(class)16 -b Fd(.)f(.)e(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.) -g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g -(.)g(.)h(.)f(.)g(.)43 b Fc(7)0 1213 y Fe(acos)27 b(\(\))8 -b Fd(.)13 b(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g -(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.) -g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)34 b Fc(23)0 -1330 y Fe(acosh)27 b(\(\))c Fd(.)13 b(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g -(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.) -g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g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(.)f(.)g -(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.) -g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)47 b Fc(64)2031 1429 -y Fe(cl)p 2114 1429 V 29 w(byte)7 b Fd(.)13 b(.)g(.)h(.)f(.)g(.)g(.)g -(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.) -g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f -(.)g(.)33 b Fc(28)2031 1545 y Fe(cl)p 2114 1545 V 29 -w(catalanconst)28 b(\(\))20 b Fd(.)13 b(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g -(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.) -h(.)f(.)g(.)g(.)46 b Fc(26)2031 1662 y Fe(cl)p 2114 1662 -V 29 w(compare)27 b(\(\))15 b Fd(.)f(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.) -g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g -(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)42 b Fc(16)2031 -1778 y Fe(cl)p 2114 1778 V 29 w(cos)p 2260 1778 V 29 -w(sin)26 b(\(\))21 b Fd(.)13 b(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g -(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.) -g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)47 b Fc(23)2031 1894 -y Fe(cl)p 2114 1894 V 29 w(cos)p 2260 1894 V 29 w(sin)p -2406 1894 V 29 w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)47 b Fc(31)2031 2475 y Fe(cl)p 2114 -2475 V 29 w(decoded)p 2416 2475 V 30 w(ffloat)22 b Fd(.)13 -b(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g -(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)47 -b Fc(31)2031 2591 y Fe(cl)p 2114 2591 V 29 w(decoded)p -2416 2591 V 30 w(float)6 b Fd(.)14 b(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.) -g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g -(.)h(.)f(.)g(.)g(.)g(.)g(.)33 b Fc(31)2031 2708 y Fe(cl)p -2114 2708 V 29 w(decoded)p 2416 2708 V 30 w(lfloat)22 -b Fd(.)13 b(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f -(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)47 -b Fc(31)2031 2824 y Fe(cl)p 2114 2824 V 29 w(decoded)p -2416 2824 V 30 w(sfloat)22 b Fd(.)13 b(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g -(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.) -g(.)g(.)g(.)h(.)f(.)47 b Fc(31)2031 2940 y Fe(cl)p 2114 -2940 V 29 w(default)p 2416 2940 V 30 w(float)p 2641 2940 -V 29 w(format)11 b Fd(.)j(.)f(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g -(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)37 -b Fc(32)2031 3056 y Fe(cl)p 2114 3056 V 29 w(default)p -2416 3056 V 30 w(print)p 2641 3056 V 29 w(flags)14 b -Fd(.)g(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g -(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)40 b Fc(64)2031 -3173 y Fe(cl)p 2114 3173 V 29 w(default)p 2416 3173 V -30 w(random)p 2680 3173 V 29 w(state)11 b Fd(.)j(.)f(.)h(.)f(.)g(.)g(.) -g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g -(.)h(.)37 b Fc(34)2031 3289 y Fe(cl)p 2114 3289 V 29 -w(DF)14 b Fd(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.) -g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g -(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)41 -b Fc(9)2031 3405 y Fe(cl)p 2114 3405 V 29 w(double)p -2377 3405 V 29 w(approx)27 b(\(\))c Fd(.)13 b(.)g(.)h(.)f(.)g(.)g(.)g -(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.) -g(.)h(.)f(.)g(.)g(.)49 b Fc(11)2031 3521 y Fe(cl)p 2114 -3521 V 29 w(equal)p 2338 3521 V 29 w(hashcode)27 b(\(\))21 -b Fd(.)13 b(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g -(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)46 -b Fc(16)2031 3638 y Fe(cl)p 2114 3638 V 29 w(eulerconst)28 -b(\(\))8 b Fd(.)13 b(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.) -g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)f -(.)g(.)g(.)34 b Fc(25)2031 3754 y Fe(cl)p 2114 3754 V -29 w(F)8 b Fd(.)13 b(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.) -h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g -(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)34 -b Fc(7,)27 b(9)2031 3870 y Fe(cl)p 2114 3870 V 29 w(FF)14 -b Fd(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.) -g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g -(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)41 -b Fc(9)2031 3986 y Fe(cl)p 2114 3986 V 29 w(find)p 2299 -3986 V 29 w(modint)p 2562 3986 V 29 w(ring)27 b(\(\))21 -b Fd(.)13 b(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g -(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)47 b Fc(45)2031 -4102 y Fe(cl)p 2114 4102 V 29 w(find)p 2299 4102 V 29 -w(univpoly)p 2640 4102 V 30 w(ring)26 b(\(\))15 b Fd(.)f(.)f(.)g(.)h(.) -f(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g -(.)g(.)g(.)42 b Fc(52)2031 4219 y Fe(cl)p 2114 4219 V -29 w(float)22 b Fd(.)13 b(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h -(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.) -g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)48 b -Fc(32)2031 4335 y Fe(cl)p 2114 4335 V 29 w(float)p 2338 -4335 V 29 w(approx)27 b(\(\))8 b Fd(.)14 b(.)f(.)g(.)g(.)g(.)g(.)g(.)h -(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.) -g(.)g(.)g(.)g(.)g(.)h(.)34 b Fc(11)2031 4451 y Fe(cl)p -2114 4451 V 29 w(float)p 2338 4451 V 29 w(format)27 b(\(\))8 -b Fd(.)14 b(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h -(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)34 -b Fc(32)2031 4567 y Fe(cl)p 2114 4567 V 29 w(free)p 2299 -4567 V 29 w(hook)26 b(\(\))16 b Fd(.)e(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h -(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.) -g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)42 b Fc(65)2031 4684 -y Fe(cl)p 2114 4684 V 29 w(hermite)27 b(\(\))15 b Fd(.)f(.)f(.)g(.)g(.) -g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g -(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)42 -b Fc(54)2031 4800 y Fe(cl)p 2114 4800 V 29 w(I)p 2182 -4800 V 28 w(to)p 2288 4800 V 29 w(int)26 b(\(\))7 b Fd(.)13 -b(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h -(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.) -g(.)33 b Fc(11)2031 4916 y Fe(cl)p 2114 4916 V 29 w(I)p -2182 4916 V 28 w(to)p 2288 4916 V 29 w(long)26 b(\(\))c -Fd(.)13 b(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g -(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.) -g(.)48 b Fc(11)2031 5032 y Fe(cl)p 2114 5032 V 29 w(I)p -2182 5032 V 28 w(to)p 2288 5032 V 29 w(uint)26 b(\(\))c -Fd(.)13 b(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g -(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.) -g(.)48 b Fc(11)2031 5149 y Fe(cl)p 2114 5149 V 29 w(I)p -2182 5149 V 28 w(to)p 2288 5149 V 29 w(ulong)27 b(\(\))19 -b Fd(.)13 b(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f -(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.) -45 b Fc(11)2031 5265 y Fe(cl)p 2114 5265 V 29 w(laguerre)27 -b(\(\))13 b Fd(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g -(.)g(.)g(.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b Fc(64)0 3302 y Fs(D)0 3434 y Fe(debug)p 200 3434 V -29 w(print)27 b(\(\))13 b Fd(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.) -f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g -(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)39 b Fc(63)0 3551 y(debugging)19 -b Fd(.)13 b(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g -(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.) -f(.)g(.)g(.)g(.)g(.)g(.)h(.)45 b Fc(62)0 3667 y Fe(decode)p -239 3667 V 30 w(float)26 b(\(\))10 b Fd(.)k(.)f(.)g(.)g(.)h(.)f(.)g(.)g -(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.) -g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)37 b Fc(31)0 3783 -y Fe(degree)27 b(\(\))20 b Fd(.)13 b(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.) -f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g -(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)46 -b Fc(54)0 3899 y Fe(denominator)28 b(\(\))7 b Fd(.)14 -b(.)f(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g -(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.) -34 b Fc(15)0 4016 y Fe(deposit)p 278 4016 V 30 w(field)27 -b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.)g(.)g(.)g(.)g(.)h(.)f(.) -g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)33 -b Fc(61)2031 1900 y Fe(finalize)27 b(\(\))15 b Fd(.)f(.)f(.)g(.)g(.)g -(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.) -f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)41 -b Fc(53)2031 2017 y Fe(float)p 2231 2017 V 29 w(digits)27 -b(\(\))10 b Fd(.)k(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f -(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.) -g(.)g(.)g(.)37 b Fc(31)2031 2133 y Fe(float)p 2231 2133 -V 29 w(epsilon)28 b(\(\))8 b Fd(.)13 b(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g -(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.) -g(.)g(.)g(.)h(.)f(.)g(.)g(.)34 b Fc(33)2031 2249 y Fe(float)p -2231 2249 V 29 w(exponent)28 b(\(\))22 b Fd(.)13 b(.)h(.)f(.)g(.)g(.)g -(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.) -g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)49 b Fc(31)2031 2365 -y Fe(float)p 2231 2365 V 29 w(negative)p 2572 2365 V -30 w(epsilon)28 b(\(\))7 b Fd(.)13 b(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.) -h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)34 -b Fc(33)2031 2482 y Fe(float)p 2231 2482 V 29 w(precision)28 -b(\(\))20 b Fd(.)13 b(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f -(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.) -46 b Fc(31)2031 2598 y Fe(float)p 2231 2598 V 29 w(radix)27 -b(\(\))13 b Fd(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g -(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.) -g(.)h(.)f(.)g(.)39 b Fc(31)2031 2714 y Fe(float)p 2231 -2714 V 29 w(sign)27 b(\(\))22 b Fd(.)13 b(.)g(.)g(.)g(.)h(.)f(.)g(.)g -(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.) -g(.)g(.)h(.)f(.)g(.)g(.)g(.)48 b Fc(31,)27 b(32)2031 -2830 y(\015oating-p)r(oin)n(t)f(n)n(um)n(b)r(er)14 b -Fd(.)d(.)i(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)f -(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)41 -b Fc(8)2031 2947 y Fe(floor1)27 b(\(\))20 b Fd(.)13 b(.)h(.)f(.)g(.)g -(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.) -g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h -(.)46 b Fc(18)2031 3063 y Fe(floor2)27 b(\(\))20 b Fd(.)13 -b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(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.) -h(.)f(.)g(.)g(.)37 b Fc(30)0 1458 y Fe(ldb)26 b(\(\))10 -b Fd(.)k(.)f(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.) -g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f -(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)37 b Fc(28)0 -1575 y Fe(ldb)p 122 1575 V 29 w(test)26 b(\(\))21 b Fd(.)13 -b(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h -(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.) -g(.)g(.)g(.)47 b Fc(28)0 1691 y Fe(least)p 200 1691 V -29 w(negative)p 541 1691 V 30 w(float)27 b(\(\))12 b -Fd(.)i(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g -(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)39 b Fc(33)0 1807 -y Fe(least)p 200 1807 V 29 w(positive)p 541 1807 V 30 -w(float)27 b(\(\))12 b Fd(.)i(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g -(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)39 -b Fc(33)0 1923 y(Legende)26 b(p)r(olynomial)8 b Fd(.)13 -b(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g -(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)34 -b Fc(54)0 2040 y Fe(length)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.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)37 -b Fc(21)0 5224 y(mo)r(difying)26 b(op)r(erators)e Fd(.)13 -b(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g -(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)49 -b Fc(35)0 5340 y(mo)r(dular)25 b(in)n(teger)8 b Fd(.)14 -b(.)f(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g -(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.) -35 b Fc(45)2031 366 y Fe(modulus)18 b Fd(.)d(.)e(.)g(.)g(.)g(.)h(.)f(.) -g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g -(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.) -45 b Fc(46)2031 483 y Fe(monomial)27 b(\(\))15 b Fd(.)f(.)f(.)g(.)g(.)g -(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.) -f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)41 -b Fc(52)2031 599 y(Mon)n(tgomery)25 b(m)n(ultiplication)c -Fd(.)14 b(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h -(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)48 b Fc(45)2031 715 y -Fe(most)p 2192 715 V 29 w(negative)p 2533 715 V 30 w(float)27 -b(\(\))15 b Fd(.)e(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g -(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)41 -b Fc(33)2031 831 y Fe(most)p 2192 831 V 29 w(positive)p -2533 831 V 30 w(float)27 b(\(\))15 b Fd(.)e(.)g(.)h(.)f(.)g(.)g(.)g(.)g -(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.) -f(.)41 b Fc(33)2031 1151 y Fs(N)2031 1284 y Fe(numerator)28 -b(\(\))12 b Fd(.)h(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g -(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.) -h(.)f(.)g(.)g(.)g(.)g(.)39 b Fc(15)2031 1604 y Fs(O)2031 -1737 y Fe(oddp)27 b(\(\))8 b Fd(.)13 b(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g -(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.) -g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)34 -b Fc(29)2031 1853 y Fe(one)26 b(\(\))17 b Fd(.)d(.)f(.)g(.)g(.)g(.)g(.) -h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g -(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)43 -b Fc(46,)27 b(52)2031 1969 y Fe(operator)g(!=)f(\(\))16 -b Fd(.)e(.)f(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.) -g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)43 b Fc(16,)27 b(46,)f(47,)h(53)2031 -2086 y Fe(operator)g(&)f(\(\))17 b Fd(.)c(.)g(.)h(.)f(.)g(.)g(.)g(.)g -(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.) -f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)43 b Fc(27)2031 -2202 y Fe(operator)27 b(&=)f(\(\))14 b Fd(.)g(.)f(.)g(.)g(.)h(.)f(.)g -(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.) -g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)41 b Fc(35)2031 -2318 y Fe(operator)27 b(\(\))f(\(\))14 b Fd(.)g(.)f(.)g(.)g(.)h(.)f(.)g -(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.) -g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)41 b Fc(54)2031 -2434 y Fe(operator)27 b(*)f(\(\))12 b Fd(.)i(.)f(.)g(.)g(.)h(.)f(.)g(.) -g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g -(.)g(.)g(.)h(.)f(.)39 b Fc(13,)26 b(47,)h(53)2031 2550 -y Fe(operator)g(*=)f(\(\))14 b Fd(.)g(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)g -(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.) -g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)41 b Fc(35)2031 2667 -y Fe(operator)27 b(-)f(\(\))12 b Fd(.)i(.)f(.)g(.)g(.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46,)f(47,)h(53)2031 3364 y Fe(operator)g([])f(\(\))14 -b Fd(.)g(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.) -g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g -(.)g(.)41 b Fc(48)2031 3480 y Fe(operator)27 b(|)f(\(\))17 -b Fd(.)c(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.) -g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f -(.)g(.)g(.)43 b Fc(27)2031 3597 y Fe(operator)27 b(|=)f(\(\))14 -b Fd(.)g(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.) -g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g -(.)g(.)41 b Fc(35)2031 3713 y Fe(operator)27 b(~)f(\(\))17 -b Fd(.)c(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.) -g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f -(.)g(.)g(.)43 b Fc(27)2031 3829 y Fe(operator)27 b(+)f(\(\))12 -b Fd(.)i(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.) -g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)39 -b Fc(13,)26 b(46,)h(53)2031 3945 y Fe(operator)g(+=)f(\(\))14 -b Fd(.)g(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)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)39 -b Fc(19)2031 2973 y(Tsc)n(heb)n(yc)n(hev)25 b(p)r(olynomial)18 -b Fd(.)13 b(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h -(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)44 b Fc(54)2031 -3239 y Fs(U)2031 3372 y Fc(under\015o)n(w)9 b Fd(.)k(.)g(.)g(.)g(.)g(.) -h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g -(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.) -g(.)36 b Fc(64)2031 3488 y(univ)l(ariate)26 b(p)r(olynomial)11 -b Fd(.)i(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.) -h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)38 -b Fc(50)2031 3754 y Fs(W)2031 3887 y Fe(WANT)p 2192 3887 -V 29 w(OBFUSCATING)p 2650 3887 V 31 w(OPERATORS)15 b -Fd(.)g(.)e(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g -(.)g(.)g(.)g(.)h(.)41 b Fc(35)2031 4152 y Fs(X)2031 4285 -y Fe(xgcd)27 b(\(\))8 b Fd(.)13 b(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g -(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.) -h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)34 -b Fc(30)2031 4551 y Fs(Z)2031 4684 y Fe(zero)27 b(\(\))14 -b Fd(.)f(.)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)g(.)g(.)g(.)h(.)44 -b Fr(3)598 1276 y(2.1.1)93 b(C)p Fp(++)29 b Fr(compiler)14 -b Fa(.)g(.)h(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.) -g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g -(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)43 b Fr(3)598 1400 y(2.1.2)93 -b(Mak)m(e)31 b(utilit)m(y)14 b Fa(.)i(.)f(.)h(.)f(.)g(.)g(.)g(.)g(.)g -(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.) -g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)43 -b Fr(3)598 1525 y(2.1.3)93 b(Sed)29 b(utilit)m(y)h Fa(.)15 -b(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g +Fr(p)s(oin)m(ter.)-30 4639 y(It)e(is)f(not)h(p)s(ossible)f(to)h(c)m +(hange)h(the)e(memory)f(allo)s(cator)j(at)f(run)m(time,)f(b)s(ecause)h +(it)g(is)f(already)h(called)h(at)f(program)-30 4749 y(startup)i(b)m(y)g +(the)h(constructors)f(of)h(some)f(global)h(v)-5 b(ariables.)p +eop +%%Page: 52 54 +52 53 bop -30 -116 a Fr(Index)3646 b(52)-30 299 y Fo(Index)-30 +614 y Fs(A)-30 737 y Fe(abs)26 b(\(\))12 b Fd(.)h(.)f(.)h(.)f(.)g(.)h +(.)f(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.) +g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)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)f(.)33 b Fc(24)2032 +985 y Fe(cl_decoded_float)9 b Fd(.)16 b(.)c(.)h(.)f(.)g(.)h(.)f(.)g(.)g +(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.) +g(.)h(.)f(.)g(.)h(.)34 b Fc(24)2032 1078 y Fe(cl_decoded_lfloat)7 +b Fd(.)17 b(.)12 b(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g +(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)33 +b Fc(24)2032 1170 y Fe(cl_decoded_sfloat)7 b Fd(.)17 +b(.)12 b(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.) +g(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)33 +b Fc(24)2032 1263 y Fe(cl_default_float_format)17 b Fd(.)g(.)c(.)f(.)g +(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.) +g(.)h(.)42 b Fc(25)2032 1356 y Fe(cl_default_print_flags)18 +b Fd(.)g(.)12 b(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h +(.)f(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)44 b Fc(51)2032 1448 +y Fe(cl_default_random_state)17 b Fd(.)g(.)c(.)f(.)g(.)h(.)f(.)g(.)h(.) +f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)42 +b Fc(26)2032 1541 y Fe(cl_DF)8 b Fd(.)13 b(.)g(.)f(.)g(.)h(.)f(.)g(.)h +(.)f(.)g(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.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))d Fd(.)12 b(.)g(.)h(.)f(.)g(.) +h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f +(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)49 +b Fc(41)-30 4382 y Fe(float_digits)28 b(\(\))17 b Fd(.)c(.)f(.)h(.)f(.) +g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f +(.)g(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)43 b Fc(24)-30 +4474 y Fe(float_epsilon)29 b(\(\))16 b Fd(.)c(.)g(.)g(.)h(.)f(.)g(.)h +(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.) +h(.)f(.)g(.)h(.)f(.)g(.)h(.)41 b Fc(25)-30 4566 y Fe(float_exponent)29 +b(\(\))14 b Fd(.)f(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)g(.)h +(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)40 +b Fc(24)-30 4658 y Fe(float_negative_epsilon)31 b(\(\))21 +b Fd(.)12 b(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f +(.)g(.)g(.)h(.)f(.)g(.)47 b Fc(25)-30 4749 y Fe(float_precision)29 +b(\(\))13 b Fd(.)f(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h +(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)39 +b Fc(24)-30 4841 y Fe(float_radix)28 b(\(\))18 b Fd(.)13 +b(.)g(.)f(.)g(.)h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h(.)f(.)g(.)h(.)f +(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)49 +b Fc(40)-30 2063 y(Mon)n(tgomery)25 b(m)n(ultiplication)9 +b Fd(.)k(.)f(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.) +f(.)g(.)h(.)f(.)g(.)h(.)f(.)35 b Fc(34)-30 2155 y Fe +(most_negative_float)30 b(\(\))7 b Fd(.)13 b(.)f(.)g(.)g(.)h(.)f(.)g(.) +h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g +(.)33 b Fc(25)-30 2247 y Fe(most_positive_float)d(\(\))7 +b Fd(.)13 b(.)f(.)g(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g +(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)33 b Fc(25)-30 +2509 y Fs(N)-30 2632 y Fe(numerator)28 b(\(\))21 b Fd(.)13 +b(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g +(.)h(.)f(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.) +47 b Fc(12)-30 2879 y Fs(O)-30 3002 y Fe(oddp)27 b(\(\))10 +b Fd(.)j(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.) +f(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g +(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)36 b Fc(22)-30 3094 y +Fe(one)26 b(\(\))d Fd(.)13 b(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.) +g(.)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(28)2032 2509 y Fs(R)2032 2646 y Fe(random)27 b(\(\))8 +b Fd(.)13 b(.)f(.)g(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g +(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.) +g(.)g(.)h(.)f(.)g(.)h(.)33 b Fc(35)2032 2746 y Fe(random_F)28 +b(\(\))23 b Fd(.)12 b(.)h(.)f(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)h(.)f +(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.) +f(.)g(.)h(.)f(.)g(.)h(.)48 b Fc(26)2032 2845 y Fe(random_I)28 +b(\(\))23 b Fd(.)12 b(.)h(.)f(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)h(.)f +(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.) +f(.)g(.)h(.)f(.)g(.)h(.)48 b Fc(26)2032 2944 y Fe(random_R)28 +b(\(\))23 b Fd(.)12 b(.)h(.)f(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)h(.)f +(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.) +f(.)g(.)h(.)f(.)g(.)h(.)48 b Fc(26)2032 3043 y Fe(random32)28 +b(\(\))23 b Fd(.)12 b(.)h(.)f(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)h(.)f +(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.) +f(.)g(.)h(.)f(.)g(.)h(.)48 b Fc(26)2032 3142 y Fe(rational)28 +b(\(\))23 b Fd(.)12 b(.)h(.)f(.)g(.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f(.)g(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g +(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.) +g(.)g(.)h(.)f(.)g(.)h(.)33 b Fc(15)2032 4826 y(rounding)10 +b Fd(.)i(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.) +g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h +(.)f(.)g(.)h(.)f(.)g(.)h(.)35 b Fc(13)2032 4925 y(rounding)26 +b(error)7 b Fd(.)13 b(.)f(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f +(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.) +h(.)f(.)g(.)h(.)f(.)g(.)34 b Fc(7)2032 5024 y(Rubik's)25 +b(cub)r(e)14 b Fd(.)f(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h +(.)f(.)g(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.) +g(.)h(.)f(.)g(.)h(.)f(.)g(.)41 b Fc(8)p eop +%%Page: 55 57 +55 56 bop -30 -116 a Fr(Index)3646 b(55)-30 299 y Fs(S)-30 +421 y Fe(scale_float)28 b(\(\))18 b Fd(.)13 b(.)g(.)f(.)g(.)h(.)f(.)g +(.)h(.)f(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.) +f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)44 b Fc(23)-30 512 +y(Sc)n(h\177)-38 b(onhage-Strassen)26 b(m)n(ultiplication)14 +b Fd(.)e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.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.) +48 b Fc(9)-30 2263 y(transcenden)n(tal)26 b(functions)c +Fd(.)12 b(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)h +(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)47 b Fc(17)2032 +299 y Fe(truncate1)28 b(\(\))22 b Fd(.)12 b(.)g(.)h(.)f(.)g(.)h(.)f(.)g +(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.) +f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)47 b Fc(14)2032 +393 y Fe(truncate2)28 b(\(\))22 b Fd(.)12 b(.)g(.)h(.)f(.)g(.)h(.)f(.)g +(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.) +f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)47 b Fc(15)2032 +487 y(Tsc)n(heb)n(yc)n(hev)25 b(p)r(olynomial)c Fd(.)12 +b(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)h(.)f(.)g +(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)46 b Fc(42)2032 759 y +Fs(U)2032 887 y Fc(under\015o)n(w)14 b Fd(.)e(.)g(.)h(.)f(.)g(.)h(.)f +(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.) +f(.)g(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)40 +b Fc(51)2032 981 y(univ)l(ariate)26 b(p)r(olynomial)11 +b Fd(.)i(.)f(.)g(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.) +h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)37 b +Fc(38)2032 1253 y Fs(W)2032 1380 y Fe(WANT_OBFUSCATING_OPERATORS)13 +b Fd(.)18 b(.)12 b(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g +(.)h(.)f(.)g(.)h(.)f(.)38 b Fc(27)2032 1640 y Fs(X)2032 +1767 y Fe(xgcd)27 b(\(\))10 b Fd(.)j(.)f(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.) +f(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g +(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)36 +b Fc(23)2032 2041 y Fs(Z)2032 2168 y Fe(zero)27 b(\(\))21 +b Fd(.)13 b(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h +(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.) +g(.)h(.)f(.)g(.)47 b Fc(34,)27 b(40)2032 2263 y Fe(zerop)g(\(\))12 +b Fd(.)h(.)f(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.) +g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)39 +b Fc(13,)26 b(36,)h(41)p eop +%%Page: -1 58 +-1 57 bop 3905 -116 a Fr(i)-30 299 y Fo(T)-13 b(able)54 +b(of)g(Con)l(ten)l(ts)-30 641 y Fs(1)135 b(In)l(tro)t(duction)39 +b Fb(.)20 b(.)f(.)g(.)h(.)f(.)h(.)f(.)h(.)f(.)g(.)h(.)f(.)h(.)f(.)h(.)f +(.)g(.)h(.)f(.)h(.)f(.)h(.)f(.)g(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)g(.) +h(.)f(.)84 b Fs(1)-30 911 y(2)135 b(Installation)13 b +Fb(.)22 b(.)d(.)h(.)f(.)g(.)h(.)f(.)h(.)f(.)h(.)f(.)g(.)h(.)f(.)h(.)f +(.)h(.)f(.)g(.)h(.)f(.)h(.)f(.)h(.)f(.)g(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.) +f(.)g(.)h(.)f(.)58 b Fs(3)269 1048 y Fr(2.1)92 b(Prerequisites)24 +b Fa(.)15 b(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g (.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.) -g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)58 b Fr(3)299 1649 y(2.2)92 -b(Building)30 b(the)h(library)25 b Fa(.)15 b(.)g(.)g(.)g(.)g(.)g(.)g(.) h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g -(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.) -f(.)55 b Fr(4)299 1774 y(2.3)92 b(Installing)31 b(the)g(library)8 +(.)53 b Fr(3)568 1157 y(2.1.1)93 b(C)p Fp(++)29 b Fr(compiler)22 b Fa(.)15 b(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g -(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.) -g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)38 b Fr(5)299 -1898 y(2.4)92 b(Cle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)g(.)h(.)f(.)h(.)f -(.)h(.)f(.)h(.)f(.)g(.)h(.)f(.)h(.)f(.)h(.)83 b Fs(12)299 -3081 y Fr(4.1)92 b(Constructing)30 b(n)m(um)m(b)s(ers)21 -b Fa(.)13 b(.)i(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g -(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.) -g(.)g(.)g(.)g(.)g(.)g(.)g(.)50 b Fr(12)598 3206 y(4.1.1)93 -b(Constructing)30 b(in)m(tegers)24 b Fa(.)15 b(.)g(.)h(.)f(.)g(.)g(.)g +(.)g(.)g(.)h(.)f(.)g(.)42 b Fr(3)568 1596 y(2.2.1)93 +b(Using)30 b(the)h(GNU)g(MP)f(Library)c Fa(.)15 b(.)g(.)g(.)h(.)f(.)g (.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.) -g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)53 b Fr(12)598 3330 y(4.1.2)93 -b(Constructing)30 b(rational)h(n)m(um)m(b)s(ers)11 b -Fa(.)i(.)i(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h -(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)40 b Fr(12)598 3455 y(4.1.3)93 -b(Constructing)30 b(\015oating-p)s(oin)m(t)h(n)m(um)m(b)s(ers)25 -b Fa(.)15 b(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g -(.)g(.)g(.)56 b Fr(12)598 3579 y(4.1.4)93 b(Constructing)30 -b(complex)g(n)m(um)m(b)s(ers)21 b Fa(.)15 b(.)g(.)g(.)g(.)g(.)g(.)g(.)g -(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)53 -b Fr(13)299 3704 y(4.2)92 b(Elemen)m(tary)30 b(functions)17 -b Fa(.)e(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.) -g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g -(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)46 b Fr(13)299 3829 y(4.3)92 -b(Elemen)m(tary)30 b(rational)i(functions)20 b Fa(.)14 -b(.)h(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g -(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)49 -b Fr(15)299 3953 y(4.4)92 b(Elemen)m(tary)30 b(complex)g(functions)11 -b Fa(.)k(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.) -g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)40 -b Fr(15)299 4078 y(4.5)92 b(Comparisons)13 b Fa(.)g(.)i(.)g(.)g(.)g(.)g +g(.)g(.)g(.)g(.)g(.)57 b Fr(4)269 1705 y(2.3)92 b(Installing)31 +b(the)g(library)17 b Fa(.)d(.)h(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g +(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.) +g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)47 +b Fr(4)269 1815 y(2.4)92 b(Cleaning)31 b(up)17 b Fa(.)d(.)h(.)g(.)g(.)g +(.)g(.)g(.)g(.)g(.)g(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(.)16 b(.)f(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g +(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.) +g(.)40 b Fr(10)568 3122 y(4.1.2)93 b(Constructing)30 +b(rational)h(n)m(um)m(b)s(ers)20 b Fa(.)13 b(.)i(.)g(.)g(.)g(.)g(.)g(.) +g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g +(.)49 b Fr(10)568 3231 y(4.1.3)93 b(Constructing)30 b(\015oating-p)s +(oin)m(t)h(n)m(um)m(b)s(ers)14 b Fa(.)f(.)i(.)g(.)g(.)g(.)g(.)g(.)g(.)g +(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)43 b Fr(10)568 +3341 y(4.1.4)93 b(Constructing)30 b(complex)g(n)m(um)m(b)s(ers)11 +b Fa(.)h(.)j(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.) +g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)40 b Fr(10)269 3450 +y(4.2)92 b(Elemen)m(tary)30 b(functions)25 b Fa(.)15 +b(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g (.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.) -g(.)h(.)38 b Fr(17)299 4327 y(4.7)92 b(Ro)s(ots)24 b -Fa(.)15 b(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g +g(.)g(.)g(.)g(.)g(.)g(.)g(.)55 b Fr(11)269 3560 y(4.3)92 +b(Elemen)m(tary)30 b(rational)i(functions)c Fa(.)15 b(.)g(.)g(.)g(.)g (.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.) -g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g -(.)g(.)g(.)g(.)g(.)53 b Fr(21)299 4451 y(4.8)92 b(T)-8 -b(ranscenden)m(tal)31 b(functions)8 b Fa(.)15 b(.)g(.)g(.)g(.)g(.)g(.)g +g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)57 b +Fr(12)269 3670 y(4.4)92 b(Elemen)m(tary)30 b(complex)g(functions)19 +b Fa(.)c(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.) +g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g +(.)49 b Fr(12)269 3779 y(4.5)92 b(Comparisons)21 b Fa(.)14 +b(.)h(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g (.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.) -g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)38 -b Fr(22)598 4576 y(4.8.1)93 b(Exp)s(onen)m(tial)30 b(and)g(logarithmic) -h(functions)9 b Fa(.)15 b(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g -(.)g(.)g(.)g(.)g(.)g(.)38 b Fr(22)598 4700 y(4.8.2)93 -b(T)-8 b(rigonometric)30 b(functions)17 b Fa(.)e(.)h(.)f(.)g(.)g(.)g(.) +g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.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55 b Fr(26)299 5198 y(4.9)92 b(F)-8 b(unctions)31 -b(on)f(in)m(tegers)17 b Fa(.)f(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g -(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.) -g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)46 -b Fr(26)598 5323 y(4.9.1)93 b(Logical)32 b(functions)25 -b Fa(.)15 b(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g -(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.) -g(.)g(.)g(.)55 b Fr(26)p eop -%%Page: -2 73 --2 72 bop 3849 -116 a Fr(ii)598 83 y(4.9.2)93 b(Num)m(b)s(er)28 -b(theoretic)k(functions)11 b Fa(.)k(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g +(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.) +g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)40 +b Fr(16)269 4108 y(4.8)92 b(T)-8 b(ranscenden)m(tal)31 +b(functions)17 b Fa(.)e(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g (.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.) -40 b Fr(29)598 208 y(4.9.3)93 b(Com)m(binatorial)30 b(functions)12 -b Fa(.)j(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.) -g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)42 -b Fr(30)299 332 y(4.10)92 b(F)-8 b(unctions)31 b(on)g(\015oating-p)s -(oin)m(t)g(n)m(um)m(b)s(ers)19 b Fa(.)12 b(.)j(.)h(.)f(.)g(.)g(.)g(.)g +f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)46 b Fr(17)568 4218 +y(4.8.1)93 b(Exp)s(onen)m(tial)30 b(and)g(logarithmic)h(functions)17 +b Fa(.)e(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.) +h(.)f(.)46 b Fr(17)568 4327 y(4.8.2)93 b(T)-8 b(rigonometric)30 +b(functions)c Fa(.)15 b(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g +(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.) +g(.)55 b Fr(17)568 4437 y(4.8.3)93 b(Hyp)s(erb)s(olic)29 +b(functions)23 b Fa(.)15 b(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g +(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.) +g(.)g(.)g(.)g(.)g(.)53 b Fr(19)568 4546 y(4.8.4)93 b(Euler)29 +b(gamma)20 b Fa(.)14 b(.)i(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g +(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.) +g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)49 b Fr(20)568 +4656 y(4.8.5)93 b(Riemann)29 b(zeta)13 b Fa(.)j(.)f(.)g(.)g(.)g(.)g(.)g +(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.) +g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)42 +b Fr(20)269 4765 y(4.9)92 b(F)-8 b(unctions)31 b(on)f(in)m(tegers)c +Fa(.)16 b(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g (.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.) -g(.)48 b Fr(30)299 457 y(4.11)92 b(Con)m(v)m(ersion)31 -b(functions)25 b Fa(.)15 b(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g +g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)54 b Fr(20)568 4875 +y(4.9.1)93 b(Logical)32 b(functions)13 b Fa(.)h(.)h(.)g(.)g(.)g(.)g(.)g +(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.) +g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)42 +b Fr(20)568 4985 y(4.9.2)93 b(Num)m(b)s(er)28 b(theoretic)k(functions) +20 b Fa(.)14 b(.)h(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g +(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)49 +b Fr(23)568 5094 y(4.9.3)93 b(Com)m(binatorial)30 b(functions)21 +b Fa(.)15 b(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g +(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)50 +b Fr(23)269 5204 y(4.10)92 b(F)-8 b(unctions)31 b(on)g(\015oating-p)s +(oin)m(t)g(n)m(um)m(b)s(ers)25 b Fa(.)15 b(.)g(.)g(.)g(.)g(.)g(.)g(.)g (.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.) -g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)54 b Fr(32)598 -581 y(4.11.1)93 b(Con)m(v)m(ersion)31 b(to)g(\015oating-p)s(oin)m(t)h -(n)m(um)m(b)s(ers)9 b Fa(.)j(.)j(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.) -g(.)g(.)g(.)g(.)g(.)g(.)38 b Fr(32)598 706 y(4.11.2)93 -b(Con)m(v)m(ersion)31 b(to)g(rational)h(n)m(um)m(b)s(ers)15 -b Fa(.)d(.)j(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.) -g(.)g(.)g(.)g(.)g(.)g(.)44 b Fr(33)299 830 y(4.12)92 -b(Random)29 b(n)m(um)m(b)s(er)f(generators)16 b Fa(.)g(.)f(.)g(.)g(.)g -(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.) -g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)45 b -Fr(34)299 955 y(4.13)92 b(Obfuscating)30 b(op)s(erators)21 -b Fa(.)16 b(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g +g(.)g(.)56 b Fr(23)269 5313 y(4.11)92 b(Con)m(v)m(ersion)31 +b(functions)12 b Fa(.)j(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g (.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.) -g(.)g(.)g(.)g(.)g(.)g(.)50 b Fr(35)0 1204 y Fs(5)135 -b(Input/Output)28 b Fb(.)18 b(.)i(.)f(.)h(.)f(.)g(.)h(.)f(.)h(.)f(.)h -(.)f(.)g(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)g(.)h(.)f(.)h(.)f(.)h(.)f(.) -g(.)h(.)f(.)h(.)72 b Fs(37)299 1359 y Fr(5.1)92 b(In)m(ternal)31 -b(and)e(prin)m(ted)h(represen)m(tation)20 b Fa(.)d(.)e(.)g(.)g(.)g(.)g +g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)41 b +Fr(25)p eop +%%Page: -2 59 +-2 58 bop 3879 -116 a Fr(ii)568 83 y(4.11.1)93 b(Con)m(v)m(ersion)31 +b(to)g(\015oating-p)s(oin)m(t)h(n)m(um)m(b)s(ers)17 b +Fa(.)c(.)i(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g +(.)g(.)47 b Fr(25)568 193 y(4.11.2)93 b(Con)m(v)m(ersion)31 +b(to)g(rational)h(n)m(um)m(b)s(ers)21 b Fa(.)15 b(.)g(.)g(.)g(.)g(.)g (.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.) -g(.)g(.)g(.)g(.)h(.)49 b Fr(37)299 1484 y(5.2)92 b(Input)29 -b(functions)e Fa(.)15 b(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g -(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.) -g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)57 -b Fr(38)299 1609 y(5.3)92 b(Output)29 b(functions)12 -b Fa(.)j(.)g(.)g(.)g(.)g(.)g(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-b Fb(.)20 b(.)f(.)h(.)f(.)h(.)f(.)g(.)h(.)f(.)h(.)f(.)h(.)f(.)g(.)h(.)f -(.)h(.)f(.)h(.)f(.)h(.)f(.)g(.)h(.)f(.)h(.)74 b Fs(48)299 -2823 y Fr(8.1)92 b(Strings)22 b Fa(.)14 b(.)h(.)g(.)g(.)g(.)g(.)h(.)f +53 b Fr(26)269 302 y(4.12)92 b(Random)29 b(n)m(um)m(b)s(er)f +(generators)e Fa(.)15 b(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g (.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.) -g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g -(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)51 b Fr(48)299 -2947 y(8.2)92 b(Sym)m(b)s(ols)17 b Fa(.)c(.)i(.)g(.)g(.)g(.)g(.)g(.)g +h(.)f(.)g(.)g(.)g(.)53 b Fr(26)269 412 y(4.13)92 b(Obfuscating)30 +b(op)s(erators)g Fa(.)15 b(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g +(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.) +g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)59 b Fr(27)-30 +654 y Fs(5)135 b(Input/Output)26 b Fb(.)19 b(.)h(.)f(.)g(.)h(.)f(.)h(.) +f(.)h(.)f(.)g(.)h(.)f(.)h(.)f(.)h(.)f(.)g(.)h(.)f(.)h(.)f(.)h(.)f(.)g +(.)h(.)f(.)h(.)f(.)h(.)f(.)g(.)h(.)71 b Fs(28)269 791 +y Fr(5.1)92 b(In)m(ternal)31 b(and)e(prin)m(ted)h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253 y Fs(6)135 b(Rings)22 b Fb(.)e(.)f(.)h(.)f(.)h(.)f(.)h +(.)f(.)g(.)h(.)f(.)h(.)f(.)h(.)f(.)g(.)h(.)f(.)h(.)f(.)h(.)f(.)g(.)h(.) +f(.)h(.)f(.)h(.)f(.)g(.)h(.)f(.)h(.)f(.)h(.)f(.)g(.)h(.)f(.)h(.)f(.)67 +b Fs(33)-30 1523 y(7)135 b(Mo)t(dular)44 b(in)l(tegers)27 +b Fb(.)22 b(.)d(.)g(.)h(.)f(.)h(.)f(.)h(.)f(.)g(.)h(.)f(.)h(.)f(.)h(.)f +(.)g(.)h(.)f(.)h(.)f(.)h(.)f(.)g(.)h(.)f(.)h(.)f(.)h(.)f(.)72 +b Fs(34)269 1660 y Fr(7.1)92 b(Mo)s(dular)30 b(in)m(teger)i(rings)18 +b Fa(.)c(.)h(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.) g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g -(.)g(.)46 b Fr(50)299 3477 y(9.2)92 b(F)-8 b(unctions)31 -b(on)f(univ)-5 b(ariate)31 b(p)s(olynomials)20 b Fa(.)14 -b(.)h(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g -(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)49 b Fr(52)299 -3601 y(9.3)92 b(Sp)s(ecial)31 b(p)s(olynomials)25 b Fa(.)15 -b(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g +(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)47 b Fr(34)269 1769 +y(7.2)92 b(F)-8 b(unctions)31 b(on)f(mo)s(dular)e(in)m(tegers)16 +b Fa(.)h(.)e(.)g(.)g(.)g(.)g(.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g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.) +g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g +(.)g(.)g(.)g(.)55 b Fr(37)-30 2501 y Fs(9)135 b(Univ)-7 +b(ariate)46 b(p)t(olynomials)40 b Fb(.)19 b(.)h(.)f(.)g(.)h(.)f(.)h(.)f +(.)h(.)f(.)g(.)h(.)f(.)h(.)f(.)h(.)f(.)g(.)h(.)f(.)h(.)f(.)h(.)f(.)83 +b Fs(38)269 2638 y Fr(9.1)92 b(Univ)-5 b(ariate)32 b(p)s(olynomial)d +(rings)c Fa(.)15 b(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g +(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.) +g(.)g(.)g(.)g(.)g(.)54 b Fr(38)269 2747 y(9.2)92 b(F)-8 +b(unctions)31 b(on)f(univ)-5 b(ariate)31 b(p)s(olynomials)d +Fa(.)15 b(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g +(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)58 +b Fr(40)269 2857 y(9.3)92 b(Sp)s(ecial)31 b(p)s(olynomials)13 +b Fa(.)h(.)h(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.) +g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g +(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)43 b Fr(42)-30 +3099 y Fs(10)135 b(In)l(ternals)20 b Fb(.)g(.)g(.)f(.)g(.)h(.)f(.)h(.)f +(.)h(.)f(.)g(.)h(.)f(.)h(.)f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 +3565 y(10.4)92 b(Garbage)32 b(collection)14 b Fa(.)k(.)d(.)g(.)g(.)g(.) +g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g (.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.) -g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)44 -b Fr(55)299 4255 y(10.3)92 b(Sp)s(eed)30 b(e\016ciency)19 -b Fa(.)d(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.) +g(.)g(.)g(.)g(.)44 b Fr(44)-30 3807 y Fs(11)135 b(Using)46 +b(the)f(library)25 b Fb(.)20 b(.)f(.)g(.)h(.)f(.)h(.)f(.)h(.)f(.)g(.)h +(.)f(.)h(.)f(.)h(.)f(.)g(.)h(.)f(.)h(.)f(.)h(.)f(.)g(.)h(.)f(.)h(.)f(.) +h(.)69 b Fs(45)269 3944 y Fr(11.1)92 b(Compiler)30 b(options)21 +b Fa(.)15 b(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g +(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.) +g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)50 b +Fr(45)269 4054 y(11.2)92 b(Include)30 b(\014les)18 b +Fa(.)d(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g +(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.) +g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)47 +b Fr(45)269 4164 y(11.3)92 b(An)30 b(Example)d Fa(.)15 +b(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g +(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.) +h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)57 +b Fr(48)269 4273 y(11.4)92 b(Debugging)32 b(supp)s(ort)23 +b Fa(.)15 b(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g +(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.) +g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)54 b Fr(49)-30 +4516 y Fs(12)135 b(Customizing)39 b Fb(.)19 b(.)h(.)f(.)h(.)f(.)h(.)f +(.)g(.)h(.)f(.)h(.)f(.)h(.)f(.)g(.)h(.)f(.)h(.)f(.)h(.)f(.)g(.)h(.)f(.) +h(.)f(.)h(.)f(.)h(.)f(.)g(.)h(.)f(.)83 b Fs(51)269 4653 +y Fr(12.1)92 b(Error)30 b(handling)24 b Fa(.)15 b(.)g(.)g(.)g(.)g(.)h +(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.) g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f -(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)48 b Fr(56)299 -4379 y(10.4)92 b(Garbage)32 b(collection)e Fa(.)15 b(.)g(.)g(.)g(.)g(.) -g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g +(.)g(.)g(.)g(.)g(.)g(.)g(.)54 b Fr(51)269 4762 y(12.2)92 +b(Floating-p)s(oin)m(t)33 b(under\015o)m(w)19 b Fa(.)14 +b(.)h(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g (.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.) -g(.)g(.)57 b Fr(56)0 4628 y Fs(11)135 b(Using)46 b(the)f(library)26 -b Fb(.)20 b(.)f(.)h(.)f(.)g(.)h(.)f(.)h(.)f(.)h(.)f(.)g(.)h(.)f(.)h(.)f -(.)h(.)f(.)h(.)f(.)g(.)h(.)f(.)h(.)f(.)h(.)f(.)g(.)71 -b Fs(57)299 4784 y Fr(11.1)92 b(Compiler)30 b(options)12 -b Fa(.)j(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.) -g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g -(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)41 b Fr(57)299 -4909 y(11.2)92 b(Include)30 b(\014les)10 b Fa(.)15 b(.)g(.)g(.)g(.)g(.) -g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g -(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.) -g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)39 b Fr(57)299 5033 -y(11.3)92 b(An)30 b(Example)19 b Fa(.)c(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g -(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.) -g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g -(.)g(.)g(.)g(.)g(.)49 b Fr(61)299 5158 y(11.4)92 b(Debugging)32 -b(supp)s(ort)17 b Fa(.)c(.)i(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.) -g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g -(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)46 -b Fr(62)p eop -%%Page: -3 74 --3 73 bop 3824 -116 a Fr(iii)0 83 y Fs(12)135 b(Customizing)40 -b Fb(.)20 b(.)f(.)h(.)f(.)g(.)h(.)f(.)h(.)f(.)h(.)f(.)g(.)h(.)f(.)h(.)f -(.)h(.)f(.)g(.)h(.)f(.)h(.)f(.)h(.)f(.)g(.)h(.)f(.)h(.)f(.)h(.)f(.)84 -b Fs(64)299 239 y Fr(12.1)92 b(Error)30 b(handling)17 -b Fa(.)d(.)h(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.) -g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g -(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)46 -b Fr(64)299 363 y(12.2)92 b(Floating-p)s(oin)m(t)33 b(under\015o)m(w)11 -b Fa(.)j(.)h(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.) +g(.)g(.)g(.)49 b Fr(51)269 4872 y(12.3)92 b(Customizing)30 +b(I/O)25 b Fa(.)15 b(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.) g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g -(.)g(.)g(.)g(.)40 b Fr(64)299 488 y(12.3)92 b(Customizing)30 -b(I/O)16 b Fa(.)f(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g -(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.) -g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)45 -b Fr(64)299 612 y(12.4)92 b(Customizing)30 b(the)h(memory)d(allo)s -(cator)k Fa(.)15 b(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g -(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)59 -b Fr(65)0 861 y Fs(Index)31 b Fb(.)19 b(.)h(.)f(.)h(.)f(.)g(.)h(.)f(.)h -(.)f(.)h(.)f(.)g(.)h(.)f(.)h(.)f(.)h(.)f(.)g(.)h(.)f(.)h(.)f(.)h(.)f(.) -g(.)h(.)f(.)h(.)f(.)h(.)f(.)g(.)h(.)f(.)h(.)f(.)h(.)f(.)g(.)h(.)f(.)76 -b Fs(66)p eop +(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)54 +b Fr(51)269 4981 y(12.4)92 b(Customizing)30 b(the)h(memory)d(allo)s +(cator)16 b Fa(.)i(.)d(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g +(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)46 +b Fr(51)-30 5224 y Fs(Index)30 b Fb(.)19 b(.)g(.)h(.)f(.)h(.)f(.)h(.)f +(.)g(.)h(.)f(.)h(.)f(.)h(.)f(.)g(.)h(.)f(.)h(.)f(.)h(.)f(.)g(.)h(.)f(.) +h(.)f(.)h(.)f(.)h(.)f(.)g(.)h(.)f(.)h(.)f(.)h(.)f(.)g(.)h(.)f(.)h(.)f +(.)h(.)74 b Fs(52)p eop %%Trailer end userdict /end-hook known{end-hook}if diff --git a/doc/cln.tex b/doc/cln.tex index 21f263e..3bbb9ae 100644 --- a/doc/cln.tex +++ b/doc/cln.tex @@ -283,13 +283,13 @@ initializations will not work. @end itemize @end ignore -@cindex @code{make} @subsection Make utility +@cindex @code{make} To build CLN, you also need to have GNU @code{make} installed. -@cindex @code{sed} @subsection Sed utility +@cindex @code{sed} To build CLN on HP-UX, you also need to have GNU @code{sed} installed. This is because the libtool script, which creates the CLN library, relies @@ -411,6 +411,27 @@ use @samp{--enable-shared} because @code{g++} would miscompile parts of the library. +@subsection Using the GNU MP Library +@cindex GMP + +Starting with version 1.0.4, CLN may be configured to make use of a +preinstalled @code{gmp} library. Please make sure that you have at +least @code{gmp} version 3.0 installed since earlier versions are +unsupported and likely not to work. Enabling this feature by calling +@code{configure} with the option @samp{--with-gmp} is known to be quite +a boost for CLN's performance. + +If you have installed the @code{gmp} library and its header file in +some place where your compiler cannot find it by default, you must help +@code{configure} by setting @code{CPPFLAGS} and @code{LDFLAGS}. Here is +an example: + +@example +$ CC="gcc" CFLAGS="-O2" CXX="g++" CXXFLAGS="-O2 -fno-exceptions" \ + CPPFLAGS="-I/opt/gmp/include" LDFLAGS="-L/opt/gmp/lib" ./configure --with-gmp +@end example + + @section Installing the library @cindex installation @@ -721,10 +742,10 @@ Conversions from any class to any of its subclasses (``derived classes'' in C++ terminology) are not provided. Instead, you can assert and check that a value belongs to a certain subclass, and return it as element of that class, using the @samp{As} and @samp{The} macros. -@cindex @code{As() ()} +@cindex @code{As()()} @code{As(@var{type})(@var{value})} checks that @var{value} belongs to @var{type} and returns it as such. -@cindex @code{The() ()} +@cindex @code{The()()} @code{The(@var{type})(@var{value})} assumes that @var{value} belongs to @var{type} and returns it as such. It is your responsibility to ensure that this assumption is valid. @@ -852,7 +873,7 @@ Returns the reciprocal of the argument. The class @code{cl_I} doesn't define a @samp{/} operation because in the C/C++ language this operator, applied to integral types, denotes the @samp{floor} or @samp{truncate} operation (which one of these, -is implementation dependent). (@xref{Rounding functions}) +is implementation dependent). (@xref{Rounding functions}.) Instead, @code{cl_I} defines an ``exact quotient'' function: @table @code @@ -1196,6 +1217,11 @@ and the remainder. The suffix @samp{2} indicates this. Each of the classes @code{cl_F}, @code{cl_SF}, @code{cl_FF}, @code{cl_DF}, @code{cl_LF} defines the following operations: +@cindex @code{cl_F_fdiv_t} +@cindex @code{cl_SF_fdiv_t} +@cindex @code{cl_FF_fdiv_t} +@cindex @code{cl_DF_fdiv_t} +@cindex @code{cl_LF_fdiv_t} @table @code @item struct @var{type}_fdiv_t @{ @var{type} quotient; @var{type} remainder; @}; @@ -1209,6 +1235,7 @@ defines the following operations: @cindex @code{fround2 ()} @end table and similarly for class @code{cl_R}, but with quotient type @code{cl_F}. +@cindex @code{cl_R_fdiv_t} The class @code{cl_R} defines the following operations: @@ -1482,7 +1509,7 @@ Archimedes' constant pi = 3.14@dots{} is returned by the following functions: @table @code @item cl_F cl_pi (cl_float_format_t f) -@cindex @code{cl_pi} +@cindex @code{cl_pi ()} Returns pi as a float of format @code{f}. @item cl_F cl_pi (const cl_F& y) @@ -2083,6 +2110,7 @@ zero, it is treated as positive. Same for @code{y}. @subsection Conversion to floating-point numbers The type @code{cl_float_format_t} describes a floating-point format. +@cindex @code{cl_float_format_t} @table @code @item cl_float_format_t cl_float_format (uintL n) @@ -2106,7 +2134,7 @@ defines the following operations: @table @code @item cl_F cl_float (const @var{type}&x, cl_float_format_t f) -@cindex @code{cl_float} +@cindex @code{cl_float ()} Returns @code{x} as a float of format @code{f}. @item cl_F cl_float (const @var{type}&x, const cl_F& y) Returns @code{x} in the float format of @code{y}. @@ -2198,6 +2226,7 @@ Calling one of these modifies the state of the random number generator in a complicated but deterministic way. The global variable +@cindex @code{cl_random_state} @cindex @code{cl_default_random_state} @example cl_random_state cl_default_random_state @@ -2684,6 +2713,7 @@ The class of modular integer rings is cl_modint_ring @end example +@cindex @code{cl_modint_ring} and the class of all modular integers (elements of modular integer rings) is @@ -2742,7 +2772,7 @@ This returns @code{1 mod N}. This returns @code{x mod N}. @item cl_I R->retract (const cl_MI& x) -@cindex @code{etract ()} +@cindex @code{retract ()} This is a partial inverse function to @code{R->canonhom}. It returns the standard representative (@code{>=0}, @code{ @end example +@cindex @code{cl_modint_ring} and the class of all modular integers (elements of modular integer rings) is @@ -2986,7 +3028,7 @@ This returns @code{1 mod N}. This returns @code{x mod N}. @item cl_I R->retract (const cl_MI& x) -@cindex @code{etract ()} +@cindex @code{retract ()} This is a partial inverse function to @code{R->canonhom}. It returns the standard representative (@code{>=0}, @code{ - + CLN, a Class Library for Numbers - 1. Introduction diff --git a/doc/cln_10.html b/doc/cln_10.html index d858b76..677b915 100644 --- a/doc/cln_10.html +++ b/doc/cln_10.html @@ -1,6 +1,6 @@ - + CLN, a Class Library for Numbers - 10. Internals @@ -9,13 +9,13 @@ Go to the first, previous,


      -

      10. Internals

      +

      10. Internals

      -

      10.1 Why C++ ?

      +

      10.1 Why C++ ?

      - +

      @@ -30,7 +30,7 @@ Efficiency: It compiles to machine code.

    • - + Portability: It runs on all platforms supporting a C++ compiler. Because of the availability of GNU C++, this includes all currently used 32-bit and 64-bit platforms, independently of the quality of the vendor's C++ compiler. @@ -62,7 +62,7 @@ in a high-level language. -

      10.2 Memory efficiency

      +

      10.2 Memory efficiency

      In order to save memory allocations, CLN implements: @@ -76,8 +76,8 @@ Object sharing: An operation like x+0 returns x withou it.

    • - - + + Garbage collection: A reference counting mechanism makes sure that any number object's storage is freed immediately when the last reference to the object is gone. @@ -91,7 +91,7 @@ on the heap. -

      10.3 Speed efficiency

      +

      10.3 Speed efficiency

      Speed efficiency is obtained by the combination of the following tricks @@ -122,9 +122,9 @@ algorithm. For very large numbers (more than 12000 decimal digits), CLN uses Schönhage-Strassen - -multiplication, which is an asymptotically -optimal multiplication algorithm. + +multiplication, which is an asymptotically optimal multiplication +algorithm.

    • These fast multiplication algorithms also give improvements in the speed @@ -133,9 +133,9 @@ of division and radix conversion. -

      10.4 Garbage collection

      +

      10.4 Garbage collection

      - +

      diff --git a/doc/cln_11.html b/doc/cln_11.html index 411c047..59bcaa8 100644 --- a/doc/cln_11.html +++ b/doc/cln_11.html @@ -1,6 +1,6 @@ - + CLN, a Class Library for Numbers - 11. Using the library @@ -9,7 +9,7 @@ Go to the first, previous,


      -

      11. Using the library

      +

      11. Using the library

      For the following discussion, we will assume that you have installed @@ -21,9 +21,9 @@ environment variables, or directly substitute the appropriate values. -

      11.1 Compiler options

      +

      11.1 Compiler options

      - +

      @@ -60,10 +60,10 @@ linking a CLN application it is sufficient to give the flag -lcln. -

      11.2 Include files

      +

      11.2 Include files

      - - + +

      @@ -256,11 +256,11 @@ Includes all of the above. -

      11.3 An Example

      +

      11.3 An Example

      A function which computes the nth Fibonacci number can be written as follows. - + @@ -344,9 +344,9 @@ contains this implementation together with an even faster algorithm. -

      11.4 Debugging support

      +

      11.4 Debugging support

      - +

      @@ -380,7 +380,7 @@ CLN offers a function cl_print, callable from the debugger, for printing number objects. In order to get this function, you have to define the macro `CL_DEBUG' and then include all the header files for which you want cl_print debugging support. For example: - +

       #define CL_DEBUG
      @@ -407,7 +407,7 @@ only with number objects and similar. Therefore CLN offers a member function
       debug_print() on all CLN types. The same macro `CL_DEBUG'
       is needed for this member function to be implemented. Under gdb,
       you call it like this:
      -
      +
       
       
       (gdb) print s
      diff --git a/doc/cln_12.html b/doc/cln_12.html
      index 9399348..6b80c8c 100644
      --- a/doc/cln_12.html
      +++ b/doc/cln_12.html
      @@ -1,6 +1,6 @@
       
       
      -
      +
       
       CLN, a Class Library for Numbers - 12. Customizing
       
      @@ -9,14 +9,14 @@ Go to the first, previous, 

      -

      12. Customizing

      +

      12. Customizing

      - + -

      12.1 Error handling

      +

      12.1 Error handling

      When a fatal error occurs, an error message is output to the standard error @@ -31,15 +31,15 @@ void cl_abort (void);

      - + This function must not return control to its caller. -

      12.2 Floating-point underflow

      +

      12.2 Floating-point underflow

      - +

      @@ -60,17 +60,17 @@ will be generated instead. The default value of -

      12.3 Customizing I/O

      +

      12.3 Customizing I/O

      The output of the function fprint may be customized by changing the value of the global variable cl_default_print_flags. - + -

      12.4 Customizing the memory allocator

      +

      12.4 Customizing the memory allocator

      Every memory allocation of CLN is done through the function pointer @@ -89,8 +89,8 @@ void (*cl_free_hook) (void* ptr) = ...;

      - - + + The cl_malloc_hook function must not return a NULL pointer. diff --git a/doc/cln_13.html b/doc/cln_13.html index 1240d1e..0bb9712 100644 --- a/doc/cln_13.html +++ b/doc/cln_13.html @@ -1,6 +1,6 @@ - + CLN, a Class Library for Numbers - Index @@ -9,7 +9,7 @@ Go to the first, previous, ne


      -

      Index

      +

      Index

      Jump to: diff --git a/doc/cln_2.html b/doc/cln_2.html index d9f2136..86b3375 100644 --- a/doc/cln_2.html +++ b/doc/cln_2.html @@ -1,6 +1,6 @@ - + CLN, a Class Library for Numbers - 2. Installation @@ -50,21 +50,23 @@ of static and global variables, a feature which I could implement for GNU g++ only. -

      -

      2.1.2 Make utility

      +

      + +

      To build CLN, you also need to have GNU make installed. -

      -

      2.1.3 Sed utility

      +

      + +

      To build CLN on HP-UX, you also need to have GNU sed installed. @@ -200,11 +202,40 @@ library. -

      2.3 Installing the library

      +

      2.2.1 Using the GNU MP Library

      +

      +Starting with version 1.0.4, CLN may be configured to make use of a +preinstalled gmp library. Please make sure that you have at +least gmp version 3.0 installed since earlier versions are +unsupported and likely not to work. Enabling this feature by calling +configure with the option `--with-gmp' is known to be quite +a boost for CLN's performance. + + +

      +If you have installed the gmp library and its header file in +some place where your compiler cannot find it by default, you must help +configure by setting CPPFLAGS and LDFLAGS. Here is +an example: + + + +

      +$ CC="gcc" CFLAGS="-O2" CXX="g++" CXXFLAGS="-O2 -fno-exceptions" \
      +  CPPFLAGS="-I/opt/gmp/include" LDFLAGS="-L/opt/gmp/lib" ./configure --with-gmp
      +
      + + + +

      2.3 Installing the library

      +

      + + +

      As with any autoconfiguring GNU software, installation is as easy as this: @@ -230,7 +261,7 @@ the --prefix=... option. -

      2.4 Cleaning up

      +

      2.4 Cleaning up

      You can remove system-dependent files generated by make through diff --git a/doc/cln_3.html b/doc/cln_3.html index ed3eae4..5a60729 100644 --- a/doc/cln_3.html +++ b/doc/cln_3.html @@ -1,6 +1,6 @@ - + CLN, a Class Library for Numbers - 3. Ordinary number types @@ -9,7 +9,7 @@ Go to the first, previous,


      -

      3. Ordinary number types

      +

      3. Ordinary number types

      CLN implements the following class hierarchy: @@ -45,8 +45,8 @@ Rational number Floating-point number

      - + The base class cl_number is an abstract base class. It is not useful to declare a variable of this type except if you want to completely disable compile-time type checking and use run-time type @@ -54,24 +54,24 @@ checking instead.

      - + The class cl_N comprises real and complex numbers. There is no special class for complex numbers since complex numbers with imaginary part 0 are automatically converted to real numbers.

      - + The class cl_R comprises real numbers of different kinds. It is an abstract class.

      - + The class cl_RA comprises exact real numbers: rational numbers, including integers. There is no special class for non-integral rational numbers since rational numbers with denominator 1 are automatically converted @@ -79,16 +79,16 @@ to integers.

      - + The class cl_F implements floating-point approximations to real numbers. It is an abstract class. -

      3.1 Exact numbers

      +

      3.1 Exact numbers

      - +

      @@ -130,9 +130,9 @@ is completely transparent. -

      3.2 Floating-point numbers

      +

      3.2 Floating-point numbers

      - +

      @@ -144,7 +144,7 @@ CLN implements ordinary floating-point numbers, with mantissa and exponent.

      - + The elementary operations (+, -, *, /, ...) only return approximate results. For example, the value of the expression (cl_F) 0.3 + (cl_F) 0.4 prints as `0.70000005', not as @@ -175,7 +175,7 @@ Floating point numbers come in four flavors:

      • - + Short floats, type cl_SF. They have 1 sign bit, 8 exponent bits (including the exponent's sign), and 17 mantissa bits (including the "hidden" bit). @@ -183,7 +183,7 @@ They don't consume heap allocation.
      • - + Single floats, type cl_FF. They have 1 sign bit, 8 exponent bits (including the exponent's sign), and 24 mantissa bits (including the "hidden" bit). @@ -192,7 +192,7 @@ This corresponds closely to the C/C++ type `float'.
      • - + Double floats, type cl_DF. They have 1 sign bit, 11 exponent bits (including the exponent's sign), and 53 mantissa bits (including the "hidden" bit). @@ -201,7 +201,7 @@ This corresponds closely to the C/C++ type `double'.
      • - + Long floats, type cl_LF. They have 1 sign bit, 32 exponent bits (including the exponent's sign), and n mantissa bits (including the "hidden" bit), where n >= 64. @@ -222,7 +222,7 @@ with larger exponent range.

        - + As a user of CLN, you can forget about the differences between the four floating-point types and just declare all your floating-point variables as being of type cl_F. This has the advantage that @@ -237,9 +237,9 @@ the floating point contagion rule happened to change in the future.) -

        3.3 Complex numbers

        +

        3.3 Complex numbers

        - +

        @@ -256,9 +256,9 @@ through application of sqrt or transcendental functions. -

        3.4 Conversions

        +

        3.4 Conversions

        - +

        @@ -317,7 +317,7 @@ Conversions from `const char *' are provided for the classes cl_R, cl_N. The easiest way to specify a value which is outside of the range of the C++ built-in types is therefore to specify it as a string, like this: - +

            cl_I order_of_rubiks_cube_group = "43252003274489856000";
        @@ -337,16 +337,16 @@ the functions
         
         
        int cl_I_to_int (const cl_I& x)
        - +
        unsigned int cl_I_to_uint (const cl_I& x)
        - +
        long cl_I_to_long (const cl_I& x)
        - +
        unsigned long cl_I_to_ulong (const cl_I& x)
        - + Returns x as element of the C type ctype. If x is not representable in the range of ctype, a runtime error occurs. @@ -363,10 +363,10 @@ the functions
        float cl_float_approx (const type& x)
        - +
        double cl_double_approx (const type& x)
        - + Returns an approximation of x of C type ctype. If abs(x) is too close to 0 (underflow), 0 is returned. If abs(x) is too large (overflow), an IEEE infinity is returned. @@ -377,10 +377,10 @@ Conversions from any class to any of its subclasses ("derived classes" in C++ terminology) are not provided. Instead, you can assert and check that a value belongs to a certain subclass, and return it as element of that class, using the `As' and `The' macros. - + As(type)(value) checks that value belongs to type and returns it as such. - + The(type)(value) assumes that value belongs to type and returns it as such. It is your responsibility to ensure that this assumption is valid. diff --git a/doc/cln_4.html b/doc/cln_4.html index 4bf113f..183858e 100644 --- a/doc/cln_4.html +++ b/doc/cln_4.html @@ -1,6 +1,6 @@ - + CLN, a Class Library for Numbers - 4. Functions on numbers @@ -9,7 +9,7 @@ Go to the first, previous,

        -

        4. Functions on numbers

        +

        4. Functions on numbers

        Each of the number classes declares its mathematical operations in the @@ -19,7 +19,7 @@ objects of type cl_I, it should #include <cl_integer.h -

        4.1 Constructing numbers

        +

        4.1 Constructing numbers

        Here is how to create number objects "from nothing". @@ -27,37 +27,37 @@ Here is how to create number objects "from nothing". -

        4.1.1 Constructing integers

        +

        4.1.1 Constructing integers

        cl_I objects are most easily constructed from C integers and from -strings. See section 3.4 Conversions. +strings. See section 3.4 Conversions. -

        4.1.2 Constructing rational numbers

        +

        4.1.2 Constructing rational numbers

        cl_RA objects can be constructed from strings. The syntax -for rational numbers is described in section 5.1 Internal and printed representation. +for rational numbers is described in section 5.1 Internal and printed representation. Another standard way to produce a rational number is through application of `operator /' or `recip' on integers. -

        4.1.3 Constructing floating-point numbers

        +

        4.1.3 Constructing floating-point numbers

        cl_F objects with low precision are most easily constructed from -C `float' and `double'. See section 3.4 Conversions. +C `float' and `double'. See section 3.4 Conversions.

        To construct a cl_F with high precision, you can use the conversion from `const char *', but you have to specify the desired precision -within the string. (See section 5.1 Internal and printed representation.) +within the string. (See section 5.1 Internal and printed representation.) Example:

        @@ -71,7 +71,7 @@ will set `e' to the given value, with a precision of 40 decimal dig
         

        The programmatic way to construct a cl_F with high precision is through the cl_float conversion function, see -section 4.11.1 Conversion to floating-point numbers. For example, to compute +section 4.11.1 Conversion to floating-point numbers. For example, to compute e to 40 decimal places, first construct 1.0 to 40 decimal places and then apply the exponential function: @@ -82,7 +82,7 @@ and then apply the exponential function: -

        4.1.4 Constructing complex numbers

        +

        4.1.4 Constructing complex numbers

        Non-real cl_N objects are normally constructed through the function @@ -92,12 +92,12 @@ Non-real cl_N objects are normally constructed through the function

        -See section 4.4 Elementary complex functions. +See section 4.4 Elementary complex functions. -

        4.2 Elementary functions

        +

        4.2 Elementary functions

        Each of the classes cl_N, cl_R, cl_RA, cl_I, @@ -109,12 +109,12 @@ defines the following operations:

        type operator + (const type&, const type&)
        - + Addition.
        type operator - (const type&, const type&)
        - + Subtraction.
        type operator - (const type&) @@ -123,22 +123,22 @@ Returns the negative of the argument.
        type plus1 (const type& x)
        - + Returns x + 1.
        type minus1 (const type& x)
        - + Returns x - 1.
        type operator * (const type&, const type&)
        - + Multiplication.
        type square (const type& x)
        - + Returns x * x. @@ -152,12 +152,12 @@ defines the following operations:
        type operator / (const type&, const type&)
        - + Division.
        type recip (const type&)
        - + Returns the reciprocal of the argument. @@ -165,7 +165,7 @@ Returns the reciprocal of the argument. The class cl_I doesn't define a `/' operation because in the C/C++ language this operator, applied to integral types, denotes the `floor' or `truncate' operation (which one of these, -is implementation dependent). (See section 4.6 Rounding functions) +is implementation dependent). (See section 4.6 Rounding functions.) Instead, cl_I defines an "exact quotient" function: @@ -173,7 +173,7 @@ Instead, cl_I defines an "exact quotient" function:
        cl_I exquo (const cl_I& x, const cl_I& y)
        - + Checks that y divides x, and returns the quotient x/y. @@ -185,14 +185,14 @@ The following exponentiation functions are defined:
        cl_I expt_pos (const cl_I& x, const cl_I& y)
        - +
        cl_RA expt_pos (const cl_RA& x, const cl_I& y)
        y must be > 0. Returns x^y.
        cl_RA expt (const cl_RA& x, const cl_I& y)
        - +
        cl_R expt (const cl_R& x, const cl_I& y)
        cl_N expt (const cl_N& x, const cl_I& y) @@ -210,7 +210,7 @@ defines the following operation:
        type abs (const type& x)
        - + Returns the absolute value of x. This is x if x >= 0, and -x if x <= 0. @@ -236,7 +236,7 @@ defines the following operation:
        type signum (const type& x)
        - + Returns the sign of x, in the same number format as x. This is defined as x / abs(x) if x is non-zero, and x if x is zero. If x is real, the value is either @@ -245,7 +245,7 @@ This is defined as x / abs(x) if x is non-zero, and -

        4.3 Elementary rational functions

        +

        4.3 Elementary rational functions

        Each of the classes cl_RA, cl_I defines the following operations: @@ -255,12 +255,12 @@ Each of the classes cl_RA, cl_I defines the following

        cl_I numerator (const type& x)
        - + Returns the numerator of x.
        cl_I denominator (const type& x)
        - + Returns the denominator of x. @@ -271,7 +271,7 @@ a way that they have no factor in common and the denominator is positive. -

        4.4 Elementary complex functions

        +

        4.4 Elementary complex functions

        The class cl_N defines the following operation: @@ -281,7 +281,7 @@ The class cl_N defines the following operation:

        cl_N complex (const cl_R& a, const cl_R& b)
        - + Returns the complex number a+bi, that is, the complex number with real part a and imaginary part b. @@ -294,17 +294,17 @@ Each of the classes cl_N, cl_R defines the following o
        cl_R realpart (const type& x)
        - + Returns the real part of x.
        cl_R imagpart (const type& x)
        - + Returns the imaginary part of x.
        type conjugate (const type& x)
        - + Returns the complex conjugate of x. @@ -324,9 +324,9 @@ We have the relations -

        4.5 Comparisons

        +

        4.5 Comparisons

        - +

        @@ -339,22 +339,22 @@ defines the following operations:

        bool operator == (const type&, const type&)
        - +
        bool operator != (const type&, const type&)
        - + Comparison, as in C and C++.
        uint32 cl_equal_hashcode (const type&)
        - + Returns a 32-bit hash code that is the same for any two numbers which are the same according to ==. This hash code depends on the number's value, not its type or precision.
        cl_boolean zerop (const type& x)
        - + Compare against zero: x == 0 @@ -368,42 +368,42 @@ defines the following operations:
        cl_signean cl_compare (const type& x, const type& y)
        - + Compares x and y. Returns +1 if x>y, -1 if x<y, 0 if x=y.
        bool operator <= (const type&, const type&)
        - +
        bool operator < (const type&, const type&)
        - +
        bool operator >= (const type&, const type&)
        - +
        bool operator > (const type&, const type&)
        - + Comparison, as in C and C++.
        cl_boolean minusp (const type& x)
        - + Compare against zero: x < 0
        cl_boolean plusp (const type& x)
        - + Compare against zero: x > 0
        type max (const type& x, const type& y)
        - + Return the maximum of x and y.
        type min (const type& x, const type& y)
        - + Return the minimum of x and y. @@ -418,9 +418,9 @@ there is no floating point number whose value is exactly 1/3. -

        4.6 Rounding functions

        +

        4.6 Rounding functions

        - +

        @@ -491,19 +491,19 @@ defines the following operations:

        cl_I floor1 (const type& x)
        - + Returns floor(x).
        cl_I ceiling1 (const type& x)
        - + Returns ceiling(x).
        cl_I truncate1 (const type& x)
        - + Returns truncate(x).
        cl_I round1 (const type& x)
        - + Returns round(x). @@ -592,16 +592,16 @@ defines the following operations:
        type_div_t floor2 (const type& x, const type& y)
        - +
        type_div_t ceiling2 (const type& x, const type& y)
        - +
        type_div_t truncate2 (const type& x, const type& y)
        - +
        type_div_t round2 (const type& x, const type& y)
        - +

        @@ -620,16 +620,16 @@ defines the following operations:

        type ffloor (const type& x)
        - +
        type fceiling (const type& x)
        - +
        type ftruncate (const type& x)
        - +
        type fround (const type& x)
        - +

        @@ -661,6 +661,11 @@ and the remainder. The suffix `2' indicates this. Each of the classes cl_F, cl_SF, cl_FF, cl_DF, cl_LF defines the following operations: + + + + +

        @@ -669,19 +674,20 @@ defines the following operations:
        type_fdiv_t ffloor2 (const type& x)
        - +
        type_fdiv_t fceiling2 (const type& x)
        - +
        type_fdiv_t ftruncate2 (const type& x)
        - +
        type_fdiv_t fround2 (const type& x)
        - +

        and similarly for class cl_R, but with quotient type cl_F. +

        @@ -733,15 +739,15 @@ The classes cl_R, cl_I define the following operations

        type mod (const type& x, const type& y)
        - +
        type rem (const type& x, const type& y)
        - + -

        4.7 Roots

        +

        4.7 Roots

        Each of the classes cl_R, @@ -753,7 +759,7 @@ defines the following operation:

        type sqrt (const type& x)
        - + x must be >= 0. This function returns the square root of x, normalized to be >= 0. If x is the square of a rational number, sqrt(x) will be a rational number, else it will return a @@ -768,7 +774,7 @@ The classes cl_RA, cl_I define the following operation
        cl_boolean sqrtp (const type& x, type* root)
        - + This tests whether x is a perfect square. If so, it returns true and the exact square root in *root, else it returns false. @@ -781,7 +787,7 @@ Furthermore, for integers, similarly:
        cl_boolean isqrt (const type& x, type* root)
        - + x should be >= 0. This function sets *root to floor(sqrt(x)) and returns the same value as sqrtp: the boolean value (expt(*root,2) == x). @@ -796,7 +802,7 @@ define the following operation:
        cl_boolean rootp (const type& x, const cl_I& n, type* root)
        - + x must be >= 0. n must be > 0. This tests whether x is an nth power of a rational number. If so, it returns true and the exact root in *root, else it returns @@ -812,7 +818,7 @@ for class cl_N:
        cl_N sqrt (const cl_N& z)
        - + Returns the square root of z, as defined by the formula sqrt(z) = exp(log(z)/2). Conversion to a floating-point type or to a complex number are done if necessary. The range of the result is the @@ -824,9 +830,9 @@ The result is an exact number only if z is an exact number. -

        4.8 Transcendental functions

        +

        4.8 Transcendental functions

        - +

        @@ -838,13 +844,13 @@ For example, cos(0) = 1 returns the rational number 1. -

        4.8.1 Exponential and logarithmic functions

        +

        4.8.1 Exponential and logarithmic functions

        cl_R exp (const cl_R& x)
        - +
        cl_N exp (const cl_N& x)
        Returns the exponential function of x. This is e^x where @@ -853,12 +859,12 @@ is the entire complex plane excluding 0.
        cl_R ln (const cl_R& x)
        - + x must be > 0. Returns the (natural) logarithm of x.
        cl_N log (const cl_N& x)
        - + Returns the (natural) logarithm of x. If x is real and positive, this is ln(x). In general, log(x) = log(abs(x)) + i*phase(x). The range of the result is the strip in the complex plane @@ -866,7 +872,7 @@ The range of the result is the strip in the complex plane
        cl_R phase (const cl_N& x)
        - + Returns the angle part of x in its polar representation as a complex number. That is, phase(x) = atan(realpart(x),imagpart(x)). This is also the imaginary part of log(x). @@ -888,7 +894,7 @@ Returns the logarithm of a with respect to base b.
        cl_N expt (const cl_N& x, const cl_N& y)
        - + Exponentiation: Returns x^y = exp(y*log(x)).
        @@ -900,7 +906,7 @@ The constant e = exp(1) = 2.71828... is returned by the following functions:
        cl_F cl_exp1 (cl_float_format_t f)
        - + Returns e as a float of format f.
        cl_F cl_exp1 (const cl_F& y) @@ -914,13 +920,13 @@ Returns e as a float of format cl_default_float_format. -

        4.8.2 Trigonometric functions

        +

        4.8.2 Trigonometric functions

        cl_R sin (const cl_R& x)
        - + Returns sin(x). The range of the result is the interval -1 <= sin(x) <= 1. @@ -930,7 +936,7 @@ Returns sin(z). The range of the result is the entire complex plane
        cl_R cos (const cl_R& x)
        - + Returns cos(x). The range of the result is the interval -1 <= cos(x) <= 1. @@ -940,31 +946,31 @@ Returns cos(z). The range of the result is the entire complex plane
        struct cl_cos_sin_t { cl_R cos; cl_R sin; };
        - +
        cl_cos_sin_t cl_cos_sin (const cl_R& x)
        Returns both sin(x) and cos(x). This is more efficient than - + computing them separately. The relation cos^2 + sin^2 = 1 will hold only approximately.
        cl_R tan (const cl_R& x)
        - +
        cl_N tan (const cl_N& x)
        Returns tan(x) = sin(x)/cos(x).
        cl_N cis (const cl_R& x)
        - +
        cl_N cis (const cl_N& x)
        Returns exp(i*x). The name `cis' means "cos + i sin", because e^(i*x) = cos(x) + i*sin(x). - - + +
        cl_N asin (const cl_N& z)
        Returns arcsin(z). This is defined as @@ -977,7 +983,7 @@ with realpart = pi/2 and imagpart > 0.
        cl_N acos (const cl_N& z)
        - + Returns arccos(z). This is defined as arccos(z) = pi/2 - arcsin(z) = log(z+i*sqrt(1-z^2))/i and satisfies arccos(-z) = pi - arccos(z). @@ -986,8 +992,8 @@ The range of the result is the strip in the complex domain with realpart = 0 and imagpart < 0 and the numbers with realpart = pi and imagpart > 0. - - + +
        cl_R atan (const cl_R& x, const cl_R& y)
        Returns the angle of the polar representation of the complex number @@ -1016,8 +1022,8 @@ with realpart = pi/2 and imagpart <= 0.

        - - + + Archimedes' constant pi = 3.14... is returned by the following functions: @@ -1025,7 +1031,7 @@ Archimedes' constant pi = 3.14... is returned by the following functions:

        cl_F cl_pi (cl_float_format_t f)
        - + Returns pi as a float of format f.
        cl_F cl_pi (const cl_F& y) @@ -1039,13 +1045,13 @@ Returns pi as a float of format cl_default_float_format. -

        4.8.3 Hyperbolic functions

        +

        4.8.3 Hyperbolic functions

        cl_R sinh (const cl_R& x)
        - + Returns sinh(x).
        cl_N sinh (const cl_N& z) @@ -1054,7 +1060,7 @@ Returns sinh(z). The range of the result is the entire complex plan
        cl_R cosh (const cl_R& x)
        - + Returns cosh(x). The range of the result is the interval cosh(x) >= 1. @@ -1064,24 +1070,24 @@ Returns cosh(z). The range of the result is the entire complex plan
        struct cl_cosh_sinh_t { cl_R cosh; cl_R sinh; };
        - +
        cl_cosh_sinh_t cl_cosh_sinh (const cl_R& x)
        - + Returns both sinh(x) and cosh(x). This is more efficient than computing them separately. The relation cosh^2 - sinh^2 = 1 will hold only approximately.
        cl_R tanh (const cl_R& x)
        - +
        cl_N tanh (const cl_N& x)
        Returns tanh(x) = sinh(x)/cosh(x).
        cl_N asinh (const cl_N& z)
        - + Returns arsinh(z). This is defined as arsinh(z) = log(z+sqrt(1+z^2)) and satisfies arsinh(-z) = -arsinh(z). @@ -1092,7 +1098,7 @@ with imagpart = pi/2 and realpart < 0.
        cl_N acosh (const cl_N& z)
        - + Returns arcosh(z). This is defined as arcosh(z) = 2*log(sqrt((z+1)/2)+sqrt((z-1)/2)). The range of the result is the half-strip in the complex domain @@ -1101,7 +1107,7 @@ excluding the numbers with realpart = 0 and -pi < imagpar
        cl_N atanh (const cl_N& z)
        - + Returns artanh(z). This is defined as artanh(z) = (log(1+z)-log(1-z)) / 2 and satisfies artanh(-z) = -artanh(z). The range of the result is @@ -1113,9 +1119,9 @@ with imagpart = pi/2 and realpart >= 0. -

        4.8.4 Euler gamma

        +

        4.8.4 Euler gamma

        - +

        @@ -1126,7 +1132,7 @@ Euler's constant C = 0.577... is returned by the following functions:

        cl_F cl_eulerconst (cl_float_format_t f)
        - + Returns Euler's constant as a float of format f.
        cl_F cl_eulerconst (const cl_F& y) @@ -1140,14 +1146,14 @@ Returns Euler's constant as a float of format cl_default_float_format Catalan's constant G = 0.915... is returned by the following functions: - +
        cl_F cl_catalanconst (cl_float_format_t f)
        - + Returns Catalan's constant as a float of format f.
        cl_F cl_catalanconst (const cl_F& y) @@ -1161,9 +1167,9 @@ Returns Catalan's constant as a float of format cl_default_float_format4.8.5 Riemann zeta +

        4.8.5 Riemann zeta

        - +

        @@ -1175,7 +1181,7 @@ following functions:

        cl_F cl_zeta (int s, cl_float_format_t f)
        - + Returns Riemann's zeta function at s as a float of format f.
        cl_F cl_zeta (int s, const cl_F& y) @@ -1190,11 +1196,11 @@ Returns Riemann's zeta function at s as a float of format -

        4.9 Functions on integers

        +

        4.9 Functions on integers

        -

        4.9.1 Logical functions

        +

        4.9.1 Logical functions

        Integers, when viewed as in two's complement notation, can be thought as @@ -1215,69 +1221,69 @@ on each of the bit positions in parallel.

        cl_I lognot (const cl_I& x)
        - +
        cl_I operator ~ (const cl_I& x)
        - + Logical not, like ~x in C. This is the same as -1-x.
        cl_I logand (const cl_I& x, const cl_I& y)
        - +
        cl_I operator & (const cl_I& x, const cl_I& y)
        - + Logical and, like x & y in C.
        cl_I logior (const cl_I& x, const cl_I& y)
        - +
        cl_I operator | (const cl_I& x, const cl_I& y)
        - + Logical (inclusive) or, like x | y in C.
        cl_I logxor (const cl_I& x, const cl_I& y)
        - +
        cl_I operator ^ (const cl_I& x, const cl_I& y)
        - + Exclusive or, like x ^ y in C.
        cl_I logeqv (const cl_I& x, const cl_I& y)
        - + Bitwise equivalence, like ~(x ^ y) in C.
        cl_I lognand (const cl_I& x, const cl_I& y)
        - + Bitwise not and, like ~(x & y) in C.
        cl_I lognor (const cl_I& x, const cl_I& y)
        - + Bitwise not or, like ~(x | y) in C.
        cl_I logandc1 (const cl_I& x, const cl_I& y)
        - + Logical and, complementing the first argument, like ~x & y in C.
        cl_I logandc2 (const cl_I& x, const cl_I& y)
        - + Logical and, complementing the second argument, like x & ~y in C.
        cl_I logorc1 (const cl_I& x, const cl_I& y)
        - + Logical or, complementing the first argument, like ~x | y in C.
        cl_I logorc2 (const cl_I& x, const cl_I& y)
        - + Logical or, complementing the second argument, like x | ~y in C.
        @@ -1287,7 +1293,7 @@ These operations are all available though the function
        cl_I boole (cl_boole op, const cl_I& x, const cl_I& y)
        - +

        where op must have one of the 16 values (each one stands for a function @@ -1296,13 +1302,6 @@ which combines two bits into one bit): boole_clr, boole_setboole_and, boole_ior, boole_xor, boole_eqv, boole_nand, boole_nor, boole_andc1, boole_andc2, boole_orc1, boole_orc2. - - - - - - - @@ -1311,6 +1310,13 @@ which combines two bits into one bit): boole_clr, boole_set + + + + + + +

        @@ -1321,19 +1327,19 @@ Other functions that view integers as bit strings:

        cl_boolean logtest (const cl_I& x, const cl_I& y)
        - + Returns true if some bit is set in both x and y, i.e. if logand(x,y) != 0.
        cl_boolean logbitp (const cl_I& n, const cl_I& x)
        - + Returns true if the nth bit (from the right) of x is set. Bit 0 is the least significant bit.
        uintL logcount (const cl_I& x)
        - + Returns the number of one bits in x, if x >= 0, or the number of zero bits in x, if x < 0. @@ -1347,7 +1353,7 @@ struct cl_byte { uintL size; uintL position; };

        - + represents the bit interval containing the bits position...position+size-1 of an integer. The constructor cl_byte(size,position) constructs a cl_byte. @@ -1357,19 +1363,19 @@ The constructor cl_byte(size,position) constructs a cl_bytecl_I ldb (const cl_I& n, const cl_byte& b)

        - + extracts the bits of n described by the bit interval b and returns them as a nonnegative integer with b.size bits.
        cl_boolean ldb_test (const cl_I& n, const cl_byte& b)
        - + Returns true if some bit described by the bit interval b is set in n.
        cl_I dpb (const cl_I& newbyte, const cl_I& n, const cl_byte& b)
        - + Returns n, with the bits described by the bit interval b replaced by newbyte. Only the lowest b.size bits of newbyte are relevant. @@ -1384,13 +1390,13 @@ functions are their counterparts without shifting:
        cl_I mask_field (const cl_I& n, const cl_byte& b)
        - + returns an integer with the bits described by the bit interval b copied from the corresponding bits in n, the other bits zero.
        cl_I deposit_field (const cl_I& newbyte, const cl_I& n, const cl_byte& b)
        - + returns an integer where the bits described by the bit interval b come from newbyte and the other bits come from n. @@ -1421,39 +1427,39 @@ for common arithmetic operations:
        cl_boolean oddp (const cl_I& x)
        - + Returns true if the least significant bit of x is 1. Equivalent to mod(x,2) != 0.
        cl_boolean evenp (const cl_I& x)
        - + Returns true if the least significant bit of x is 0. Equivalent to mod(x,2) == 0.
        cl_I operator << (const cl_I& x, const cl_I& n)
        - + Shifts x by n bits to the left. n should be >=0. Equivalent to x * expt(2,n).
        cl_I operator >> (const cl_I& x, const cl_I& n)
        - + Shifts x by n bits to the right. n should be >=0. Bits shifted out to the right are thrown away. Equivalent to floor(x / expt(2,n)).
        cl_I ash (const cl_I& x, const cl_I& y)
        - + Shifts x by y bits to the left (if y>=0) or by -y bits to the right (if y<=0). In other words, this returns floor(x * expt(2,y)).
        uintL integer_length (const cl_I& x)
        - + Returns the number of bits (excluding the sign bit) needed to represent x in two's complement notation. This is the smallest n >= 0 such that -2^n <= x < 2^n. If x > 0, this is the unique n > 0 such that @@ -1461,14 +1467,14 @@ in two's complement notation. This is the smallest n >= 0 such that
        uintL ord2 (const cl_I& x)
        - + x must be non-zero. This function returns the number of 0 bits at the right of x in two's complement notation. This is the largest n >= 0 such that 2^n divides x.
        uintL power2p (const cl_I& x)
        - + x must be > 0. This function checks whether x is a power of 2. If x = 2^(n-1), it returns n. Else it returns 0. (See also the function logp.) @@ -1476,13 +1482,13 @@ If x = 2^(n-1), it returns n. Else it returns 0. -

        4.9.2 Number theoretic functions

        +

        4.9.2 Number theoretic functions

        uint32 gcd (uint32 a, uint32 b)
        - +
        cl_I gcd (const cl_I& a, const cl_I& b)
        This function returns the greatest common divisor of a and b, @@ -1490,7 +1496,7 @@ normalized to be >= 0.
        cl_I xgcd (const cl_I& a, const cl_I& b, cl_I* u, cl_I* v)
        - + This function ("extended gcd") returns the greatest common divisor g of a and b and at the same time the representation of g as an integral linear combination of a and b: @@ -1502,13 +1508,13 @@ value, in the following sense: If a and b are non-zero
        cl_I lcm (const cl_I& a, const cl_I& b)
        - + This function returns the least common multiple of a and b, normalized to be >= 0.
        cl_boolean logp (const cl_I& a, const cl_I& b, cl_RA* l)
        - +
        cl_boolean logp (const cl_RA& a, const cl_RA& b, cl_RA* l)
        a must be > 0. b must be >0 and != 1. If log(a,b) is @@ -1518,26 +1524,26 @@ it returns false. -

        4.9.3 Combinatorial functions

        +

        4.9.3 Combinatorial functions

        cl_I factorial (uintL n)
        - + n must be a small integer >= 0. This function returns the factorial n! = 1*2*...*n.
        cl_I doublefactorial (uintL n)
        - + n must be a small integer >= 0. This function returns the doublefactorial n!! = 1*3*...*n or n!! = 2*4*...*n, respectively.
        cl_I binomial (uintL n, uintL k)
        - + n and k must be small integers >= 0. This function returns the binomial coefficient (n choose k) = n! / k! (n-k)! @@ -1546,7 +1552,7 @@ for 0 <= k <= n, 0 else. -

        4.10 Functions on floating-point numbers

        +

        4.10 Functions on floating-point numbers

        Recall that a floating-point number consists of a sign s, an @@ -1564,7 +1570,7 @@ defines the following operations.

        type scale_float (const type& x, sintL delta)
        - +
        type scale_float (const type& x, const cl_I& delta)
        Returns x*2^delta. This is more efficient than an explicit multiplication @@ -1580,32 +1586,32 @@ representation of floating-point numbers.
        sintL float_exponent (const type& x)
        - + Returns the exponent e of x. For x = 0.0, this is 0. For x non-zero, this is the unique integer with 2^(e-1) <= abs(x) < 2^e.
        sintL float_radix (const type& x)
        - + Returns the base of the floating-point representation. This is always 2.
        type float_sign (const type& x)
        - + Returns the sign s of x as a float. The value is 1 for x >= 0, -1 for x < 0.
        uintL float_digits (const type& x)
        - + Returns the number of mantissa bits in the floating-point representation of x, including the hidden bit. The value only depends on the type of x, not on its value.
        uintL float_precision (const type& x)
        - + Returns the number of significant mantissa bits in the floating-point representation of x. Since denormalized numbers are not supported, this is the same as float_digits(x) if x is non-zero, and @@ -1614,11 +1620,11 @@ this is the same as float_digits(x) if x is non-zero,

        The complete internal representation of a float is encoded in the type - - - - - + + + + + cl_decoded_float (or cl_decoded_sfloat, cl_decoded_ffloat, cl_decoded_dfloat, cl_decoded_lfloat, respectively), defined by @@ -1636,7 +1642,7 @@ and returned by the function

        cl_decoded_typefloat decode_float (const type& x)
        - + For x non-zero, this returns (-1)^s, e, m with x = (-1)^s * 2^e * m and 0.5 <= m < 1.0. For x = 0, it returns (-1)^s=1, e=0, m=0. @@ -1647,7 +1653,7 @@ it returns (-1)^s=1, e=0, m=0. A complete decoding in terms of integers is provided as type
        -struct cl_idecoded_float {
        +struct cl_idecoded_float {
                 cl_I mantissa; cl_I exponent; cl_I sign;
         };
         
        @@ -1660,7 +1666,7 @@ by the following function:
        cl_idecoded_float integer_decode_float (const type& x)
        - + For x non-zero, this returns (-1)^s, e, m with x = (-1)^s * 2^e * m and m an integer with float_digits(x) bits. For x = 0, it returns (-1)^s=1, e=0, m=0. @@ -1676,7 +1682,7 @@ Some other function, implemented only for class cl_F:
        cl_F float_sign (const cl_F& x, const cl_F& y)
        - + This returns a floating point number whose precision and absolute value is that of y and whose sign is that of x. If x is zero, it is treated as positive. Same for y. @@ -1684,24 +1690,25 @@ zero, it is treated as positive. Same for y. -

        4.11 Conversion functions

        +

        4.11 Conversion functions

        - + -

        4.11.1 Conversion to floating-point numbers

        +

        4.11.1 Conversion to floating-point numbers

        The type cl_float_format_t describes a floating-point format. +

        cl_float_format_t cl_float_format (uintL n)
        - + Returns the smallest float format which guarantees at least n decimal digits in the mantissa (after the decimal point). @@ -1711,7 +1718,7 @@ Returns the floating point format of x.
        cl_float_format_t cl_default_float_format
        - + Global variable: the default float format used when converting rational numbers to floats.
        @@ -1727,7 +1734,7 @@ defines the following operations:
        cl_F cl_float (const type&x, cl_float_format_t f)
        - + Returns x as a float of format f.
        cl_F cl_float (const type&x, const cl_F& y)
        @@ -1750,40 +1757,40 @@ Every floating-point format has some characteristic numbers:
        cl_F most_positive_float (cl_float_format_t f)
        - + Returns the largest (most positive) floating point number in float format f.
        cl_F most_negative_float (cl_float_format_t f)
        - + Returns the smallest (most negative) floating point number in float format f.
        cl_F least_positive_float (cl_float_format_t f)
        - + Returns the least positive floating point number (i.e. > 0 but closest to 0) in float format f.
        cl_F least_negative_float (cl_float_format_t f)
        - + Returns the least negative floating point number (i.e. < 0 but closest to 0) in float format f.
        cl_F float_epsilon (cl_float_format_t f)
        - + Returns the smallest floating point number e > 0 such that 1+e != 1.
        cl_F float_negative_epsilon (cl_float_format_t f)
        - + Returns the smallest floating point number e > 0 such that 1-e != 1.
        -

        4.11.2 Conversion to rational numbers

        +

        4.11.2 Conversion to rational numbers

        Each of the classes cl_R, cl_RA, cl_F @@ -1794,7 +1801,7 @@ defines the following operation:

        cl_RA rational (const type& x)
        - + Returns the value of x as an exact number. If x is already an exact number, this is x. If x is a floating-point number, the value is a rational number whose denominator is a power of 2. @@ -1809,7 +1816,7 @@ the function
        cl_RA rationalize (const cl_R& x)
        - + If x is a floating-point number, it actually represents an interval of real numbers, and this function returns the rational number with smallest denominator (and smallest numerator, in magnitude) @@ -1833,7 +1840,7 @@ If x is any float, one has -

        4.12 Random number generators

        +

        4.12 Random number generators

        A random generator is a machine which produces (pseudo-)random numbers. @@ -1851,7 +1858,8 @@ a complicated but deterministic way.

        The global variable - + +

         cl_random_state cl_default_random_state
        @@ -1868,14 +1876,14 @@ below are called without cl_random_state argument.
         
        uint32 random32 ()
        - + Returns a random unsigned 32-bit number. All bits are equally random.
        cl_I random_I (cl_random_state& randomstate, const cl_I& n)
        cl_I random_I (const cl_I& n)
        - + n must be an integer > 0. This function returns a random integer x in the range 0 <= x < n. @@ -1883,7 +1891,7 @@ in the range 0 <= x < n.
        cl_F random_F (const cl_F& n)
        - + n must be a float > 0. This function returns a random floating-point number of the same format as n in the range 0 <= x < n. @@ -1891,16 +1899,16 @@ number of the same format as n in the range 0 <= x <
        cl_R random_R (const cl_R& n)
        - + Behaves like random_I if n is an integer and like random_F if n is a float.
        -

        4.13 Obfuscating operators

        +

        4.13 Obfuscating operators

        - +

        @@ -1916,7 +1924,7 @@ to get happy, then add

        - + to the beginning of your source files, before the inclusion of any CLN include files. This flag will enable the following operators: @@ -1930,16 +1938,16 @@ For the classes cl_N, cl_R, cl_RA,

        type& operator += (type&, const type&)
        - +
        type& operator -= (type&, const type&)
        - +
        type& operator *= (type&, const type&)
        - +
        type& operator /= (type&, const type&)
        - +

        @@ -1956,19 +1964,19 @@ For the class cl_I:

        type& operator &= (type&, const type&)
        - +
        type& operator |= (type&, const type&)
        - +
        type& operator ^= (type&, const type&)
        - +
        type& operator <<= (type&, const type&)
        - +
        type& operator >>= (type&, const type&)
        - +

        @@ -1980,7 +1988,7 @@ For the classes cl_N, cl_R, cl_RA,

        type& operator ++ (type& x)
        - + The prefix operator ++x.
        void operator ++ (type& x, int) @@ -1989,7 +1997,7 @@ The postfix operator x++.
        type& operator -- (type& x)
        - + The prefix operator --x.
        void operator -- (type& x, int) diff --git a/doc/cln_5.html b/doc/cln_5.html index 7f83961..32c6e79 100644 --- a/doc/cln_5.html +++ b/doc/cln_5.html @@ -1,6 +1,6 @@ - + CLN, a Class Library for Numbers - 5. Input/Output @@ -9,16 +9,16 @@ Go to the first, previous,

        -

        5. Input/Output

        +

        5. Input/Output

        - + -

        5.1 Internal and printed representation

        +

        5.1 Internal and printed representation

        - +

        @@ -33,9 +33,9 @@ Several external representations may denote the same number, for example,

        Converting an internal to an external representation is called "printing", - + converting an external to an internal representation is called "reading". - + In CLN, it is always true that conversion of an internal to an external representation and then back to an internal representation will yield the same internal representation. Symbolically: read(print(x)) == x. @@ -115,7 +115,7 @@ In Common Lisp notation: #C(realpart imagpart)5.2 Input functions +

        5.2 Input functions

        Including <cl_io.h> defines a type cl_istream, which is @@ -267,7 +267,7 @@ precision corresponding to their number of significant digits. -

        5.3 Output functions

        +

        5.3 Output functions

        Including <cl_io.h> defines a type cl_ostream, which is diff --git a/doc/cln_6.html b/doc/cln_6.html index 4ccf7aa..e75c4a4 100644 --- a/doc/cln_6.html +++ b/doc/cln_6.html @@ -1,6 +1,6 @@ - + CLN, a Class Library for Numbers - 6. Rings @@ -9,7 +9,7 @@ Go to the first, previous,


        -

        6. Rings

        +

        6. Rings

        CLN has a class of abstract rings. diff --git a/doc/cln_7.html b/doc/cln_7.html index 007ae5a..b67dd03 100644 --- a/doc/cln_7.html +++ b/doc/cln_7.html @@ -1,6 +1,6 @@ - + CLN, a Class Library for Numbers - 7. Modular integers @@ -9,16 +9,16 @@ Go to the first, previous,


        -

        7. Modular integers

        +

        7. Modular integers

        - + -

        7.1 Modular integer rings

        +

        7.1 Modular integer rings

        - +

        @@ -46,6 +46,10 @@ The class of modular integer rings is <cl_modinteger.h> +

        + + +

        and the class of all modular integers (elements of modular integer rings) is @@ -65,11 +69,11 @@ Modular integer rings are constructed using the function

        cl_modint_ring cl_find_modint_ring (const cl_I& N)
        - + This function returns the modular ring `Z/NZ'. It takes care of finding out about special cases of N, like powers of two and odd numbers for which Montgomery multiplication will be a win, - + and precomputes any necessary auxiliary data for computing modulo N. There is a cache table of rings, indexed by N (or, more precisely, by abs(N)). This ensures that the precomputation costs are reduced @@ -84,10 +88,10 @@ Modular integer rings can be compared for equality:
        bool operator== (const cl_modint_ring&, const cl_modint_ring&)
        - +
        bool operator!= (const cl_modint_ring&, const cl_modint_ring&)
        - + These compare two modular integer rings for equality. Two different calls to cl_find_modint_ring with the same argument necessarily return the same ring because it is memoized in the cache table. @@ -95,7 +99,7 @@ same ring because it is memoized in the cache table. -

        7.2 Functions on modular integers

        +

        7.2 Functions on modular integers

        Given a modular integer ring R, the following members can be used. @@ -105,27 +109,27 @@ Given a modular integer ring R, the following members can be used.

        cl_I R->modulus
        - + This is the ring's modulus, normalized to be nonnegative: abs(N).
        cl_MI R->zero()
        - + This returns 0 mod N.
        cl_MI R->one()
        - + This returns 1 mod N.
        cl_MI R->canonhom (const cl_I& x)
        - + This returns x mod N.
        cl_I R->retract (const cl_MI& x)
        - + This is a partial inverse function to R->canonhom. It returns the standard representative (>=0, <N) of x. @@ -133,7 +137,7 @@ standard representative (>=0, <N) of x
        cl_MI R->random()
        - + This returns a random integer modulo N. @@ -145,18 +149,18 @@ The following operations are defined on modular integers.
        cl_modint_ring x.ring ()
        - + Returns the ring to which the modular integer x belongs.
        cl_MI operator+ (const cl_MI&, const cl_MI&)
        - + Returns the sum of two modular integers. One of the arguments may also be a plain integer.
        cl_MI operator- (const cl_MI&, const cl_MI&)
        - + Returns the difference of two modular integers. One of the arguments may also be a plain integer. @@ -166,61 +170,61 @@ Returns the negative of a modular integer.
        cl_MI operator* (const cl_MI&, const cl_MI&)
        - + Returns the product of two modular integers. One of the arguments may also be a plain integer.
        cl_MI square (const cl_MI&)
        - + Returns the square of a modular integer.
        cl_MI recip (const cl_MI& x)
        - + Returns the reciprocal x^-1 of a modular integer x. x must be coprime to the modulus, otherwise an error message is issued.
        cl_MI div (const cl_MI& x, const cl_MI& y)
        - + Returns the quotient x*y^-1 of two modular integers x, y. y must be coprime to the modulus, otherwise an error message is issued.
        cl_MI expt_pos (const cl_MI& x, const cl_I& y)
        - + y must be > 0. Returns x^y.
        cl_MI expt (const cl_MI& x, const cl_I& y)
        - + Returns x^y. If y is negative, x must be coprime to the modulus, else an error message is issued.
        cl_MI operator<< (const cl_MI& x, const cl_I& y)
        - + Returns x*2^y.
        cl_MI operator>> (const cl_MI& x, const cl_I& y)
        - + Returns x*2^-y. When y is positive, the modulus must be odd, or an error message is issued.
        bool operator== (const cl_MI&, const cl_MI&)
        - +
        bool operator!= (const cl_MI&, const cl_MI&)
        - + Compares two modular integers, belonging to the same modular integer ring, for equality.
        cl_boolean zerop (const cl_MI& x)
        - + Returns true if x is 0 mod N. @@ -233,10 +237,10 @@ input/output).
        void fprint (cl_ostream stream, const cl_MI& x)
        - +
        cl_ostream operator<< (cl_ostream stream, const cl_MI& x)
        - + Prints the modular integer x on the stream. The output may depend on the global printer settings in the variable cl_default_print_flags. diff --git a/doc/cln_8.html b/doc/cln_8.html index 3dd2018..c46c223 100644 --- a/doc/cln_8.html +++ b/doc/cln_8.html @@ -1,6 +1,6 @@ - + CLN, a Class Library for Numbers - 8. Symbolic data types @@ -9,9 +9,9 @@ Go to the first, previous,

        -

        8. Symbolic data types

        +

        8. Symbolic data types

        - +

        @@ -20,9 +20,9 @@ CLN implements two symbolic (non-numeric) data types: strings and symbols. -

        8.1 Strings

        +

        8.1 Strings

        - +

        @@ -48,7 +48,7 @@ Strings are constructed through the following constructors:

        cl_string (const char * s)
        - + Returns an immutable copy of the (zero-terminated) C string s.
        cl_string (const char * ptr, unsigned long len) @@ -69,30 +69,30 @@ Assignment from cl_string and const char *.
        s.length()
        - +
        strlen(s)
        - + Returns the length of the string s.
        s[i]
        - + Returns the ith character of the string s. i must be in the range 0 <= i < s.length().
        bool equal (const cl_string& s1, const cl_string& s2)
        - + Compares two strings for equality. One of the arguments may also be a plain const char *. -

        8.2 Symbols

        +

        8.2 Symbols

        - +

        @@ -112,7 +112,7 @@ Symbols are constructed through the following constructor:

        cl_symbol (const cl_string& s)
        - + Looks up or creates a new symbol with a given name. @@ -129,7 +129,7 @@ Conversion to cl_string: Returns the string which names the symbol
        bool equal (const cl_symbol& sym1, const cl_symbol& sym2)
        - + Compares two symbols for equality. This is very fast. diff --git a/doc/cln_9.html b/doc/cln_9.html index 08c8bfe..f11c049 100644 --- a/doc/cln_9.html +++ b/doc/cln_9.html @@ -1,6 +1,6 @@ - + CLN, a Class Library for Numbers - 9. Univariate polynomials @@ -9,15 +9,15 @@ Go to the first, previous,

        -

        9. Univariate polynomials

        +

        9. Univariate polynomials

        - - + + -

        9.1 Univariate polynomial rings

        +

        9.1 Univariate polynomial rings

        CLN implements univariate polynomials (polynomials in one variable) over an @@ -125,7 +125,7 @@ return the same polynomial ring.

        cl_univpoly_complex_ring cl_find_univpoly_ring (const cl_complex_ring& R)
        - +
        cl_univpoly_complex_ring cl_find_univpoly_ring (const cl_complex_ring& R, const cl_symbol& varname)
        cl_univpoly_real_ring cl_find_univpoly_ring (const cl_real_ring& R) @@ -150,7 +150,7 @@ only the return type is more specific, according to the base ring's type. -

        9.2 Functions on univariate polynomials

        +

        9.2 Functions on univariate polynomials

        Given a univariate polynomial ring R, the following members can be used. @@ -160,33 +160,33 @@ Given a univariate polynomial ring R, the following members can be

        cl_ring R->basering()
        - + This returns the base ring, as passed to `cl_find_univpoly_ring'.
        cl_UP R->zero()
        - + This returns 0 in R, a polynomial of degree -1.
        cl_UP R->one()
        - + This returns 1 in R, a polynomial of degree <= 0.
        cl_UP R->canonhom (const cl_I& x)
        - + This returns x in R, a polynomial of degree <= 0.
        cl_UP R->monomial (const cl_ring_element& x, uintL e)
        - + This returns a sparse polynomial: x * X^e, where X is the indeterminate.
        cl_UP R->create (sintL degree)
        - + Creates a new polynomial with a given degree. The zero polynomial has degree -1. After creating the polynomial, you should put in the coefficients, using the set_coeff member function, and then call the finalize @@ -201,14 +201,14 @@ The following are the only destructive operations on univariate polynomials.
        void set_coeff (cl_UP& x, uintL index, const cl_ring_element& y)
        - + This changes the coefficient of X^index in x to be y. After changing a polynomial and before applying any "normal" operation on it, you should call its finalize member function.
        void finalize (cl_UP& x)
        - + This function marks the endpoint of destructive modifications of a polynomial. It normalizes the internal representation so that subsequent computations have less overhead. Doing normal computations on unnormalized polynomials may @@ -223,17 +223,17 @@ The following operations are defined on univariate polynomials.
        cl_univpoly_ring x.ring ()
        - + Returns the ring to which the univariate polynomial x belongs.
        cl_UP operator+ (const cl_UP&, const cl_UP&)
        - + Returns the sum of two univariate polynomials.
        cl_UP operator- (const cl_UP&, const cl_UP&)
        - + Returns the difference of two univariate polynomials.
        cl_UP operator- (const cl_UP&) @@ -242,54 +242,54 @@ Returns the negative of a univariate polynomial.
        cl_UP operator* (const cl_UP&, const cl_UP&)
        - + Returns the product of two univariate polynomials. One of the arguments may also be a plain integer or an element of the base ring.
        cl_UP square (const cl_UP&)
        - + Returns the square of a univariate polynomial.
        cl_UP expt_pos (const cl_UP& x, const cl_I& y)
        - + y must be > 0. Returns x^y.
        bool operator== (const cl_UP&, const cl_UP&)
        - +
        bool operator!= (const cl_UP&, const cl_UP&)
        - + Compares two univariate polynomials, belonging to the same univariate polynomial ring, for equality.
        cl_boolean zerop (const cl_UP& x)
        - + Returns true if x is 0 in R.
        sintL degree (const cl_UP& x)
        - + Returns the degree of the polynomial. The zero polynomial has degree -1.
        cl_ring_element coeff (const cl_UP& x, uintL index)
        - + Returns the coefficient of X^index in the polynomial x.
        cl_ring_element x (const cl_ring_element& y)
        - + Evaluation: If x is a polynomial and y belongs to the base ring, then `x(y)' returns the value of the substitution of y into x.
        cl_UP deriv (const cl_UP& x)
        - + Returns the derivative of the polynomial x with respect to the indeterminate X. @@ -303,10 +303,10 @@ input/output).
        void fprint (cl_ostream stream, const cl_UP& x)
        - +
        cl_ostream operator<< (cl_ostream stream, const cl_UP& x)
        - + Prints the univariate polynomial x on the stream. The output may depend on the global printer settings in the variable cl_default_print_flags. @@ -314,7 +314,7 @@ depend on the global printer settings in the variable -

        9.3 Special polynomials

        +

        9.3 Special polynomials

        The following functions return special polynomials. @@ -324,26 +324,26 @@ The following functions return special polynomials.

        cl_UP_I cl_tschebychev (sintL n)
        - - + + Returns the n-th Tchebychev polynomial (n >= 0).
        cl_UP_I cl_hermite (sintL n)
        - - + + Returns the n-th Hermite polynomial (n >= 0).
        cl_UP_RA cl_legendre (sintL n)
        - - + + Returns the n-th Legendre polynomial (n >= 0).
        cl_UP_I cl_laguerre (sintL n)
        - - + + Returns the n-th Laguerre polynomial (n >= 0). diff --git a/doc/cln_toc.html b/doc/cln_toc.html index 5dd7415..73d2e87 100644 --- a/doc/cln_toc.html +++ b/doc/cln_toc.html @@ -1,6 +1,6 @@ - + CLN, a Class Library for Numbers - Table of Contents @@ -20,102 +20,105 @@
      • 2.1.3 Sed utility
    • 2.2 Building the library -
    • 2.3 Installing the library -
    • 2.4 Cleaning up + +
    • 2.3 Installing the library +
    • 2.4 Cleaning up
    -
  • 3. Ordinary number types +
  • 3. Ordinary number types -
  • 4. Functions on numbers +
  • 4. Functions on numbers -
  • 5. Input/Output +
  • 5. Input/Output -
  • 6. Rings -
  • 7. Modular integers +
  • 6. Rings +
  • 7. Modular integers -
  • 8. Symbolic data types +
  • 8. Symbolic data types -
  • 9. Univariate polynomials +
  • 9. Univariate polynomials -
  • 10. Internals +
  • 10. Internals -
  • 11. Using the library +
  • 11. Using the library -
  • 12. Customizing +
  • 12. Customizing -
  • Index +
  • Index


    -This document was generated on 4 May 2000 using +This document was generated on 5 May 2000 using texi2html 1.56k. diff --git a/doc/texinfo.tex b/doc/texinfo.tex index 75b7f23..5d0f53c 100644 --- a/doc/texinfo.tex +++ b/doc/texinfo.tex @@ -1,78 +1,90 @@ -%% TeX macros to handle texinfo files - -% Copyright (C) 1985, 86, 88, 90, 91, 92, 93, -% 94, 95, 1996 Free Software Foundation, Inc. - -%This texinfo.tex file is free software; you can redistribute it and/or -%modify it under the terms of the GNU General Public License as -%published by the Free Software Foundation; either version 2, or (at -%your option) any later version. - -%This texinfo.tex file is distributed in the hope that it will be -%useful, but WITHOUT ANY WARRANTY; without even the implied warranty -%of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -%General Public License for more details. - -%You should have received a copy of the GNU General Public License -%along with this texinfo.tex file; see the file COPYING. If not, write -%to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, -%Boston, MA 02111-1307, USA. - - -%In other words, you are welcome to use, share and improve this program. -%You are forbidden to forbid anyone else to use, share and improve -%what you give them. Help stamp out software-hoarding! - - -% Send bug reports to bug-texinfo@prep.ai.mit.edu. -% Please include a *precise* test case in each bug report. - - -% Make it possible to create a .fmt file just by loading this file: -% if the underlying format is not loaded, start by loading it now. -% Added by gildea November 1993. +% texinfo.tex -- TeX macros to handle Texinfo files. +% +% Load plain if necessary, i.e., if running under initex. \expandafter\ifx\csname fmtname\endcsname\relax\input plain\fi +% +\def\texinfoversion{1999-10-01.07} +% +% Copyright (C) 1985, 86, 88, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99 +% Free Software Foundation, Inc. +% +% This texinfo.tex file is free software; you can redistribute it and/or +% modify it under the terms of the GNU General Public License as +% published by the Free Software Foundation; either version 2, or (at +% your option) any later version. +% +% This texinfo.tex file is distributed in the hope that it will be +% useful, but WITHOUT ANY WARRANTY; without even the implied warranty +% of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +% General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this texinfo.tex file; see the file COPYING. If not, write +% to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, +% Boston, MA 02111-1307, USA. +% +% In other words, you are welcome to use, share and improve this program. +% You are forbidden to forbid anyone else to use, share and improve +% what you give them. Help stamp out software-hoarding! +% +% Please try the latest version of texinfo.tex before submitting bug +% reports; you can get the latest version from: +% ftp://ftp.gnu.org/gnu/texinfo.tex +% (and all GNU mirrors, see http://www.gnu.org/order/ftp.html) +% ftp://texinfo.org/tex/texinfo.tex +% ftp://us.ctan.org/macros/texinfo/texinfo.tex +% (and all CTAN mirrors, finger ctan@us.ctan.org for a list). +% /home/gd/gnu/doc/texinfo.tex on the GNU machines. +% The texinfo.tex in any given Texinfo distribution could well be out +% of date, so if that's what you're using, please check. +% Texinfo has a small home page at http://texinfo.org/. +% +% Send bug reports to bug-texinfo@gnu.org. Please include including a +% complete document in each bug report with which we can reproduce the +% problem. Patches are, of course, greatly appreciated. +% +% To process a Texinfo manual with TeX, it's most reliable to use the +% texi2dvi shell script that comes with the distribution. For a simple +% manual foo.texi, however, you can get away with this: +% tex foo.texi +% texindex foo.?? +% tex foo.texi +% tex foo.texi +% dvips foo.dvi -o # or whatever, to process the dvi file; this makes foo.ps. +% The extra runs of TeX get the cross-reference information correct. +% Sometimes one run after texindex suffices, and sometimes you need more +% than two; texi2dvi does it as many times as necessary. +% +% It is possible to adapt texinfo.tex for other languages. You can get +% the existing language-specific files from ftp://ftp.gnu.org/gnu/texinfo/. -% This automatically updates the version number based on RCS. -\def\deftexinfoversion$#1: #2 ${\def\texinfoversion{#2}} -\deftexinfoversion$Revision: 1.1 $ -\message{Loading texinfo package [Version \texinfoversion]:} +\message{Loading texinfo [version \texinfoversion]:} % If in a .fmt file, print the version number % and turn on active characters that we couldn't do earlier because % they might have appeared in the input file name. -\everyjob{\message{[Texinfo version \texinfoversion]}\message{} +\everyjob{\message{[Texinfo version \texinfoversion]}% \catcode`+=\active \catcode`\_=\active} % Save some parts of plain tex whose names we will redefine. - -\let\ptextilde=\~ -\let\ptexlbrace=\{ -\let\ptexrbrace=\} -\let\ptexdots=\dots -\let\ptexdot=\. -\let\ptexstar=\* -\let\ptexend=\end -\let\ptexbullet=\bullet \let\ptexb=\b +\let\ptexbullet=\bullet \let\ptexc=\c +\let\ptexcomma=\, +\let\ptexdot=\. +\let\ptexdots=\dots +\let\ptexend=\end +\let\ptexequiv=\equiv +\let\ptexexclam=\! \let\ptexi=\i +\let\ptexlbrace=\{ +\let\ptexrbrace=\} +\let\ptexstar=\* \let\ptext=\t -\let\ptexl=\l -\let\ptexL=\L -% Be sure we're in horizontal mode when doing a tie, since we make space -% equivalent to this in @example-like environments. Otherwise, a space -% at the beginning of a line will start with \penalty -- and -% since \penalty is valid in vertical mode, we'd end up putting the -% penalty on the vertical list instead of in the new paragraph. -{\catcode`@ = 11 - % Avoid using \@M directly, because that causes trouble - % if the definition is written into an index file. - \global\let\tiepenalty = \@M - \gdef\tie{\leavevmode\penalty\tiepenalty\ } -} -\let\~ = \tie % And make it available as @~. +% We never want plain's outer \+ definition in Texinfo. +% For @tex, we can use \tabalign. +\let\+ = \relax \message{Basics,} \chardef\other=12 @@ -81,18 +93,47 @@ % starts a new line in the output. \newlinechar = `^^J -% Set up fixed words for English. -\ifx\putwordChapter\undefined{\gdef\putwordChapter{Chapter}}\fi% -\def\putwordInfo{Info}% -\ifx\putwordSee\undefined{\gdef\putwordSee{See}}\fi% -\ifx\putwordsee\undefined{\gdef\putwordsee{see}}\fi% -\ifx\putwordfile\undefined{\gdef\putwordfile{file}}\fi% -\ifx\putwordpage\undefined{\gdef\putwordpage{page}}\fi% -\ifx\putwordsection\undefined{\gdef\putwordsection{section}}\fi% -\ifx\putwordSection\undefined{\gdef\putwordSection{Section}}\fi% -\ifx\putwordTableofContents\undefined{\gdef\putwordTableofContents{Table of Contents}}\fi% -\ifx\putwordShortContents\undefined{\gdef\putwordShortContents{Short Contents}}\fi% -\ifx\putwordAppendix\undefined{\gdef\putwordAppendix{Appendix}}\fi% +% Set up fixed words for English if not already set. +\ifx\putwordAppendix\undefined \gdef\putwordAppendix{Appendix}\fi +\ifx\putwordChapter\undefined \gdef\putwordChapter{Chapter}\fi +\ifx\putwordfile\undefined \gdef\putwordfile{file}\fi +\ifx\putwordin\undefined \gdef\putwordin{in}\fi +\ifx\putwordIndexIsEmpty\undefined \gdef\putwordIndexIsEmpty{(Index is empty)}\fi +\ifx\putwordIndexNonexistent\undefined \gdef\putwordIndexNonexistent{(Index is nonexistent)}\fi +\ifx\putwordInfo\undefined \gdef\putwordInfo{Info}\fi +\ifx\putwordInstanceVariableof\undefined \gdef\putwordInstanceVariableof{Instance Variable of}\fi +\ifx\putwordMethodon\undefined \gdef\putwordMethodon{Method on}\fi +\ifx\putwordNoTitle\undefined \gdef\putwordNoTitle{No Title}\fi +\ifx\putwordof\undefined \gdef\putwordof{of}\fi +\ifx\putwordon\undefined \gdef\putwordon{on}\fi +\ifx\putwordpage\undefined \gdef\putwordpage{page}\fi +\ifx\putwordsection\undefined \gdef\putwordsection{section}\fi +\ifx\putwordSection\undefined \gdef\putwordSection{Section}\fi +\ifx\putwordsee\undefined \gdef\putwordsee{see}\fi +\ifx\putwordSee\undefined \gdef\putwordSee{See}\fi +\ifx\putwordShortTOC\undefined \gdef\putwordShortTOC{Short Contents}\fi +\ifx\putwordTOC\undefined \gdef\putwordTOC{Table of Contents}\fi +% +\ifx\putwordMJan\undefined \gdef\putwordMJan{January}\fi +\ifx\putwordMFeb\undefined \gdef\putwordMFeb{February}\fi +\ifx\putwordMMar\undefined \gdef\putwordMMar{March}\fi +\ifx\putwordMApr\undefined \gdef\putwordMApr{April}\fi +\ifx\putwordMMay\undefined \gdef\putwordMMay{May}\fi +\ifx\putwordMJun\undefined \gdef\putwordMJun{June}\fi +\ifx\putwordMJul\undefined \gdef\putwordMJul{July}\fi +\ifx\putwordMAug\undefined \gdef\putwordMAug{August}\fi +\ifx\putwordMSep\undefined \gdef\putwordMSep{September}\fi +\ifx\putwordMOct\undefined \gdef\putwordMOct{October}\fi +\ifx\putwordMNov\undefined \gdef\putwordMNov{November}\fi +\ifx\putwordMDec\undefined \gdef\putwordMDec{December}\fi +% +\ifx\putwordDefmac\undefined \gdef\putwordDefmac{Macro}\fi +\ifx\putwordDefspec\undefined \gdef\putwordDefspec{Special Form}\fi +\ifx\putwordDefvar\undefined \gdef\putwordDefvar{Variable}\fi +\ifx\putwordDefopt\undefined \gdef\putwordDefopt{User Option}\fi +\ifx\putwordDeftypevar\undefined\gdef\putwordDeftypevar{Variable}\fi +\ifx\putwordDeffunc\undefined \gdef\putwordDeffunc{Function}\fi +\ifx\putwordDeftypefun\undefined\gdef\putwordDeftypefun{Function}\fi % Ignore a token. % @@ -101,89 +142,130 @@ \hyphenation{ap-pen-dix} \hyphenation{mini-buf-fer mini-buf-fers} \hyphenation{eshell} +\hyphenation{white-space} % Margin to add to right of even pages, to left of odd pages. -\newdimen \bindingoffset \bindingoffset=0pt -\newdimen \normaloffset \normaloffset=\hoffset +\newdimen \bindingoffset +\newdimen \normaloffset \newdimen\pagewidth \newdimen\pageheight -\pagewidth=\hsize \pageheight=\vsize % Sometimes it is convenient to have everything in the transcript file % and nothing on the terminal. We don't just call \tracingall here, % since that produces some useless output on the terminal. % \def\gloggingall{\begingroup \globaldefs = 1 \loggingall \endgroup}% +\ifx\eTeXversion\undefined \def\loggingall{\tracingcommands2 \tracingstats2 \tracingpages1 \tracingoutput1 \tracinglostchars1 \tracingmacros2 \tracingparagraphs1 \tracingrestores1 \showboxbreadth\maxdimen\showboxdepth\maxdimen }% +\else +\def\loggingall{\tracingcommands3 \tracingstats2 + \tracingpages1 \tracingoutput1 \tracinglostchars1 + \tracingmacros2 \tracingparagraphs1 \tracingrestores1 + \tracingscantokens1 \tracingassigns1 \tracingifs1 + \tracinggroups1 \tracingnesting2 + \showboxbreadth\maxdimen\showboxdepth\maxdimen +}% +\fi -%---------------------Begin change----------------------- +% For @cropmarks command. +% Do @cropmarks to get crop marks. % -%%%% For @cropmarks command. -% Dimensions to add cropmarks at corners Added by P. A. MacKay, 12 Nov. 1986 +\newif\ifcropmarks +\let\cropmarks = \cropmarkstrue % -\newdimen\cornerlong \newdimen\cornerthick -\newdimen \topandbottommargin -\newdimen \outerhsize \newdimen \outervsize -\cornerlong=1pc\cornerthick=.3pt % These set size of cropmarks -\outerhsize=7in -%\outervsize=9.5in -% Alternative @smallbook page size is 9.25in -\outervsize=9.25in -\topandbottommargin=.75in +% Dimensions to add cropmarks at corners. +% Added by P. A. MacKay, 12 Nov. 1986 % -%---------------------End change----------------------- +\newdimen\outerhsize \newdimen\outervsize % set by the paper size routines +\newdimen\cornerlong \cornerlong=1pc +\newdimen\cornerthick \cornerthick=.3pt +\newdimen\topandbottommargin \topandbottommargin=.75in + +% Main output routine. +\chardef\PAGE = 255 +\output = {\onepageout{\pagecontents\PAGE}} + +\newbox\headlinebox +\newbox\footlinebox % \onepageout takes a vbox as an argument. Note that \pagecontents -% does insertions itself, but you have to call it yourself. -\chardef\PAGE=255 \output={\onepageout{\pagecontents\PAGE}} -\def\onepageout#1{\hoffset=\normaloffset -\ifodd\pageno \advance\hoffset by \bindingoffset -\else \advance\hoffset by -\bindingoffset\fi -{\escapechar=`\\\relax % makes sure backslash is used in output files. -\shipout\vbox{{\let\hsize=\pagewidth \makeheadline} \pagebody{#1}% -{\let\hsize=\pagewidth \makefootline}}}% -\advancepageno \ifnum\outputpenalty>-20000 \else\dosupereject\fi} - -%%%% For @cropmarks command %%%% - -% Here is a modification of the main output routine for Near East Publications -% This provides right-angle cropmarks at all four corners. -% The contents of the page are centerlined into the cropmarks, -% and any desired binding offset is added as an \hskip on either -% site of the centerlined box. (P. A. MacKay, 12 November, 1986) -% -\def\croppageout#1{\hoffset=0pt % make sure this doesn't mess things up -{\escapechar=`\\\relax % makes sure backslash is used in output files. - \shipout - \vbox to \outervsize{\hsize=\outerhsize - \vbox{\line{\ewtop\hfill\ewtop}} - \nointerlineskip - \line{\vbox{\moveleft\cornerthick\nstop} - \hfill - \vbox{\moveright\cornerthick\nstop}} - \vskip \topandbottommargin - \centerline{\ifodd\pageno\hskip\bindingoffset\fi - \vbox{ - {\let\hsize=\pagewidth \makeheadline} - \pagebody{#1} - {\let\hsize=\pagewidth \makefootline}} - \ifodd\pageno\else\hskip\bindingoffset\fi} - \vskip \topandbottommargin plus1fill minus1fill - \boxmaxdepth\cornerthick - \line{\vbox{\moveleft\cornerthick\nsbot} - \hfill - \vbox{\moveright\cornerthick\nsbot}} - \nointerlineskip - \vbox{\line{\ewbot\hfill\ewbot}} - }} +% does insertions, but you have to call it yourself. +\def\onepageout#1{% + \ifcropmarks \hoffset=0pt \else \hoffset=\normaloffset \fi + % + \ifodd\pageno \advance\hoffset by \bindingoffset + \else \advance\hoffset by -\bindingoffset\fi + % + % Do this outside of the \shipout so @code etc. will be expanded in + % the headline as they should be, not taken literally (outputting ''code). + \setbox\headlinebox = \vbox{\let\hsize=\pagewidth \makeheadline}% + \setbox\footlinebox = \vbox{\let\hsize=\pagewidth \makefootline}% + % + {% + % Have to do this stuff outside the \shipout because we want it to + % take effect in \write's, yet the group defined by the \vbox ends + % before the \shipout runs. + % + \escapechar = `\\ % use backslash in output files. + \indexdummies % don't expand commands in the output. + \normalturnoffactive % \ in index entries must not stay \, e.g., if + % the page break happens to be in the middle of an example. + \shipout\vbox{% + \ifcropmarks \vbox to \outervsize\bgroup + \hsize = \outerhsize + \vskip-\topandbottommargin + \vtop to0pt{% + \line{\ewtop\hfil\ewtop}% + \nointerlineskip + \line{% + \vbox{\moveleft\cornerthick\nstop}% + \hfill + \vbox{\moveright\cornerthick\nstop}% + }% + \vss}% + \vskip\topandbottommargin + \line\bgroup + \hfil % center the page within the outer (page) hsize. + \ifodd\pageno\hskip\bindingoffset\fi + \vbox\bgroup + \fi + % + \unvbox\headlinebox + \pagebody{#1}% + \ifdim\ht\footlinebox > 0pt + % Only leave this space if the footline is nonempty. + % (We lessened \vsize for it in \oddfootingxxx.) + % The \baselineskip=24pt in plain's \makefootline has no effect. + \vskip 2\baselineskip + \unvbox\footlinebox + \fi + % + \ifpdfmakepagedest \pdfmkdest{\the\pageno} \fi + % + \ifcropmarks + \egroup % end of \vbox\bgroup + \hfil\egroup % end of (centering) \line\bgroup + \vskip\topandbottommargin plus1fill minus1fill + \boxmaxdepth = \cornerthick + \vbox to0pt{\vss + \line{% + \vbox{\moveleft\cornerthick\nsbot}% + \hfill + \vbox{\moveright\cornerthick\nsbot}% + }% + \nointerlineskip + \line{\ewbot\hfil\ewbot}% + }% + \egroup % \vbox from first cropmarks clause + \fi + }% end of \shipout\vbox + }% end of group with \turnoffactive \advancepageno - \ifnum\outputpenalty>-20000 \else\dosupereject\fi} -% -% Do @cropmarks to get crop marks -\def\cropmarks{\let\onepageout=\croppageout } + \ifnum\outputpenalty>-20000 \else\dosupereject\fi +} \newinsert\margin \dimen\margin=\maxdimen @@ -198,7 +280,6 @@ \ifr@ggedbottom \kern-\dimen@ \vfil \fi} } -% % Here are the rules for the cropmarks. Note that they are % offset so that the space between them is truly \outerhsize or \outervsize % (P. A. MacKay, 12 November, 1986) @@ -293,11 +374,11 @@ %% Call \inENV within environments (after a \begingroup) \newif\ifENV \ENVfalse \def\inENV{\ifENV\relax\else\ENVtrue\fi} \def\ENVcheck{% -\ifENV\errmessage{Still within an environment. Type Return to continue.} +\ifENV\errmessage{Still within an environment; press RETURN to continue} \endgroup\fi} % This is not perfect, but it should reduce lossage % @begin foo is the same as @foo, for now. -\newhelp\EMsimple{Type to continue.} +\newhelp\EMsimple{Press RETURN to continue.} \outer\def\begin{\parsearg\beginxxx} @@ -356,7 +437,7 @@ % @@ prints an @ % Kludge this until the fonts are right (grr). -\def\@{{\tt \char '100}} +\def\@{{\tt\char64}} % This is turned off because it was never documented % and you can use @w{...} around a quote to suppress ligatures. @@ -366,11 +447,55 @@ %\def\'{{'}} % Used to generate quoted braces. - -\def\mylbrace {{\tt \char '173}} -\def\myrbrace {{\tt \char '175}} +\def\mylbrace {{\tt\char123}} +\def\myrbrace {{\tt\char125}} \let\{=\mylbrace \let\}=\myrbrace +\begingroup + % Definitions to produce actual \{ & \} command in an index. + \catcode`\{ = 12 \catcode`\} = 12 + \catcode`\[ = 1 \catcode`\] = 2 + \catcode`\@ = 0 \catcode`\\ = 12 + @gdef@lbracecmd[\{]% + @gdef@rbracecmd[\}]% +@endgroup + +% Accents: @, @dotaccent @ringaccent @ubaraccent @udotaccent +% Others are defined by plain TeX: @` @' @" @^ @~ @= @v @H. +\let\, = \c +\let\dotaccent = \. +\def\ringaccent#1{{\accent23 #1}} +\let\tieaccent = \t +\let\ubaraccent = \b +\let\udotaccent = \d + +% Other special characters: @questiondown @exclamdown +% Plain TeX defines: @AA @AE @O @OE @L (and lowercase versions) @ss. +\def\questiondown{?`} +\def\exclamdown{!`} + +% Dotless i and dotless j, used for accents. +\def\imacro{i} +\def\jmacro{j} +\def\dotless#1{% + \def\temp{#1}% + \ifx\temp\imacro \ptexi + \else\ifx\temp\jmacro \j + \else \errmessage{@dotless can be used only with i or j}% + \fi\fi +} + +% Be sure we're in horizontal mode when doing a tie, since we make space +% equivalent to this in @example-like environments. Otherwise, a space +% at the beginning of a line will start with \penalty -- and +% since \penalty is valid in vertical mode, we'd end up putting the +% penalty on the vertical list instead of in the new paragraph. +{\catcode`@ = 11 + % Avoid using \@M directly, because that causes trouble + % if the definition is written into an index file. + \global\let\tiepenalty = \@M + \gdef\tie{\leavevmode\penalty\tiepenalty\ } +} % @: forces normal size whitespace following. \def\:{\spacefactor=1000 } @@ -381,14 +506,11 @@ % @. is an end-of-sentence period. \def\.{.\spacefactor=3000 } -% @enddots{} is an end-of-sentence ellipsis. -\gdef\enddots{$\mathinner{\ldotp\ldotp\ldotp\ldotp}$\spacefactor=3000} - % @! is an end-of-sentence bang. -\gdef\!{!\spacefactor=3000 } +\def\!{!\spacefactor=3000 } % @? is an end-of-sentence query. -\gdef\?{?\spacefactor=3000 } +\def\?{?\spacefactor=3000 } % @w prevents a word break. Without the \leavevmode, @w at the % beginning of a paragraph, when TeX is still in vertical mode, would @@ -472,53 +594,81 @@ where each line of input produces a line of output.} %% This method tries to make TeX break the page naturally %% if the depth of the box does not fit. %{\baselineskip=0pt% -%\vtop to #1\mil{\vfil}\kern -#1\mil\penalty 10000 +%\vtop to #1\mil{\vfil}\kern -#1\mil\nobreak %\prevdepth=-1000pt %}} \def\needx#1{% - % Go into vertical mode, so we don't make a big box in the middle of a + % Ensure vertical mode, so we don't make a big box in the middle of a % paragraph. \par % - % Don't add any leading before our big empty box, but allow a page - % break, since the best break might be right here. - \allowbreak - \nointerlineskip - \vtop to #1\mil{\vfil}% - % - % TeX does not even consider page breaks if a penalty added to the - % main vertical list is 10000 or more. But in order to see if the - % empty box we just added fits on the page, we must make it consider - % page breaks. On the other hand, we don't want to actually break the - % page after the empty box. So we use a penalty of 9999. - % - % There is an extremely small chance that TeX will actually break the - % page at this \penalty, if there are no other feasible breakpoints in - % sight. (If the user is using lots of big @group commands, which - % almost-but-not-quite fill up a page, TeX will have a hard time doing - % good page breaking, for example.) However, I could not construct an - % example where a page broke at this \penalty; if it happens in a real - % document, then we can reconsider our strategy. - \penalty9999 - % - % Back up by the size of the box, whether we did a page break or not. - \kern -#1\mil - % - % Do not allow a page break right after this kern. - \nobreak + % If the @need value is less than one line space, it's useless. + \dimen0 = #1\mil + \dimen2 = \ht\strutbox + \advance\dimen2 by \dp\strutbox + \ifdim\dimen0 > \dimen2 + % + % Do a \strut just to make the height of this box be normal, so the + % normal leading is inserted relative to the preceding line. + % And a page break here is fine. + \vtop to #1\mil{\strut\vfil}% + % + % TeX does not even consider page breaks if a penalty added to the + % main vertical list is 10000 or more. But in order to see if the + % empty box we just added fits on the page, we must make it consider + % page breaks. On the other hand, we don't want to actually break the + % page after the empty box. So we use a penalty of 9999. + % + % There is an extremely small chance that TeX will actually break the + % page at this \penalty, if there are no other feasible breakpoints in + % sight. (If the user is using lots of big @group commands, which + % almost-but-not-quite fill up a page, TeX will have a hard time doing + % good page breaking, for example.) However, I could not construct an + % example where a page broke at this \penalty; if it happens in a real + % document, then we can reconsider our strategy. + \penalty9999 + % + % Back up by the size of the box, whether we did a page break or not. + \kern -#1\mil + % + % Do not allow a page break right after this kern. + \nobreak + \fi } % @br forces paragraph break \let\br = \par -% @dots{} output some dots +% @dots{} output an ellipsis using the current font. +% We do .5em per period so that it has the same spacing in a typewriter +% font as three actual period characters. +% +\def\dots{% + \leavevmode + \hbox to 1.5em{% + \hskip 0pt plus 0.25fil minus 0.25fil + .\hss.\hss.% + \hskip 0pt plus 0.5fil minus 0.5fil + }% +} + +% @enddots{} is an end-of-sentence ellipsis. +% +\def\enddots{% + \leavevmode + \hbox to 2em{% + \hskip 0pt plus 0.25fil minus 0.25fil + .\hss.\hss.\hss.% + \hskip 0pt plus 0.5fil minus 0.5fil + }% + \spacefactor=3000 +} -\def\dots{$\ldots$} % @page forces the start of a new page - +% \def\page{\par\vfill\supereject} % @exdent text.... @@ -579,391 +729,301 @@ where each line of input produces a line of output.} % @sp n outputs n lines of vertical space \def\sp{\parsearg\spxxx} -\def\spxxx #1{\par \vskip #1\baselineskip} +\def\spxxx #1{\vskip #1\baselineskip} % @comment ...line which is ignored... % @c is the same as @comment % @ignore ... @end ignore is another way to write a comment -\def\comment{\catcode 64=\other \catcode 123=\other \catcode 125=\other% -\parsearg \commentxxx} - -\def\commentxxx #1{\catcode 64=0 \catcode 123=1 \catcode 125=2 } +\def\comment{\begingroup \catcode`\^^M=\other% +\catcode`\@=\other \catcode`\{=\other \catcode`\}=\other% +\commentxxx} +{\catcode`\^^M=\other \gdef\commentxxx#1^^M{\endgroup}} \let\c=\comment -% Prevent errors for section commands. -% Used in @ignore and in failing conditionals. -\def\ignoresections{% -\let\chapter=\relax -\let\unnumbered=\relax -\let\top=\relax -\let\unnumberedsec=\relax -\let\unnumberedsection=\relax -\let\unnumberedsubsec=\relax -\let\unnumberedsubsection=\relax -\let\unnumberedsubsubsec=\relax -\let\unnumberedsubsubsection=\relax -\let\section=\relax -\let\subsec=\relax -\let\subsubsec=\relax -\let\subsection=\relax -\let\subsubsection=\relax -\let\appendix=\relax -\let\appendixsec=\relax -\let\appendixsection=\relax -\let\appendixsubsec=\relax -\let\appendixsubsection=\relax -\let\appendixsubsubsec=\relax -\let\appendixsubsubsection=\relax -\let\contents=\relax -\let\smallbook=\relax -\let\titlepage=\relax +% @paragraphindent NCHARS +% We'll use ems for NCHARS, close enough. +% We cannot implement @paragraphindent asis, though. +% +\def\asisword{asis} % no translation, these are keywords +\def\noneword{none} +% +\def\paragraphindent{\parsearg\doparagraphindent} +\def\doparagraphindent#1{% + \def\temp{#1}% + \ifx\temp\asisword + \else + \ifx\temp\noneword + \defaultparindent = 0pt + \else + \defaultparindent = #1em + \fi + \fi + \parindent = \defaultparindent } -% Used in nested conditionals, where we have to parse the Texinfo source -% and so want to turn off most commands, in case they are used -% incorrectly. -% -\def\ignoremorecommands{% - \let\defcv = \relax - \let\deffn = \relax - \let\deffnx = \relax - \let\defindex = \relax - \let\defivar = \relax - \let\defmac = \relax - \let\defmethod = \relax - \let\defop = \relax - \let\defopt = \relax - \let\defspec = \relax - \let\deftp = \relax - \let\deftypefn = \relax - \let\deftypefun = \relax - \let\deftypevar = \relax - \let\deftypevr = \relax - \let\defun = \relax - \let\defvar = \relax - \let\defvr = \relax - \let\ref = \relax - \let\xref = \relax - \let\printindex = \relax - \let\pxref = \relax - \let\settitle = \relax - \let\setchapternewpage = \relax - \let\setchapterstyle = \relax - \let\everyheading = \relax - \let\evenheading = \relax - \let\oddheading = \relax - \let\everyfooting = \relax - \let\evenfooting = \relax - \let\oddfooting = \relax - \let\headings = \relax - \let\include = \relax - \let\lowersections = \relax - \let\down = \relax - \let\raisesections = \relax - \let\up = \relax - \let\set = \relax - \let\clear = \relax - \let\item = \relax - \let\message = \relax +% @exampleindent NCHARS +% We'll use ems for NCHARS like @paragraphindent. +% It seems @exampleindent asis isn't necessary, but +% I preserve it to make it similar to @paragraphindent. +\def\exampleindent{\parsearg\doexampleindent} +\def\doexampleindent#1{% + \def\temp{#1}% + \ifx\temp\asisword + \else + \ifx\temp\noneword + \lispnarrowing = 0pt + \else + \lispnarrowing = #1em + \fi + \fi } -% Ignore @ignore ... @end ignore. +% @asis just yields its argument. Used with @table, for example. % -\def\ignore{\doignore{ignore}} +\def\asis#1{#1} -% Also ignore @ifinfo, @ifhtml, @html, @menu, and @direntry text. +% @math means output in math mode. +% We don't use $'s directly in the definition of \math because control +% sequences like \math are expanded when the toc file is written. Then, +% we read the toc file back, the $'s will be normal characters (as they +% should be, according to the definition of Texinfo). So we must use a +% control sequence to switch into and out of math mode. % -\def\ifinfo{\doignore{ifinfo}} -\def\ifhtml{\doignore{ifhtml}} -\def\html{\doignore{html}} -\def\menu{\doignore{menu}} -\def\direntry{\doignore{direntry}} +% This isn't quite enough for @math to work properly in indices, but it +% seems unlikely it will ever be needed there. +% +\let\implicitmath = $ +\def\math#1{\implicitmath #1\implicitmath} -% @dircategory CATEGORY -- specify a category of the dir file -% which this file should belong to. Ignore this in TeX. +% @bullet and @minus need the same treatment as @math, just above. +\def\bullet{\implicitmath\ptexbullet\implicitmath} +\def\minus{\implicitmath-\implicitmath} -\def\dircategory{\comment} +% @refill is a no-op. +\let\refill=\relax -% Ignore text until a line `@end #1'. +% If working on a large document in chapters, it is convenient to +% be able to disable indexing, cross-referencing, and contents, for test runs. +% This is done with @novalidate (before @setfilename). % -\def\doignore#1{\begingroup - % Don't complain about control sequences we have declared \outer. - \ignoresections - % - % Define a command to swallow text until we reach `@end #1'. - \long\def\doignoretext##1\end #1{\enddoignore}% - % - % Make sure that spaces turn into tokens that match what \doignoretext wants. - \catcode32 = 10 - % - % And now expand that command. - \doignoretext +\newif\iflinks \linkstrue % by default we want the aux files. +\let\novalidate = \linksfalse + +% @setfilename is done at the beginning of every texinfo file. +% So open here the files we need to have open while reading the input. +% This makes it possible to make a .fmt file for texinfo. +\def\setfilename{% + \iflinks + \readauxfile + \fi % \openindices needs to do some work in any case. + \openindices + \fixbackslash % Turn off hack to swallow `\input texinfo'. + \global\let\setfilename=\comment % Ignore extra @setfilename cmds. + % + % If texinfo.cnf is present on the system, read it. + % Useful for site-wide @afourpaper, etc. + % Just to be on the safe side, close the input stream before the \input. + \openin 1 texinfo.cnf + \ifeof1 \let\temp=\relax \else \def\temp{\input texinfo.cnf }\fi + \closein1 + \temp + % + \comment % Ignore the actual filename. } -% What we do to finish off ignored text. +% Called from \setfilename. % -\def\enddoignore{\endgroup\ignorespaces}% - -\newif\ifwarnedobs\warnedobsfalse -\def\obstexwarn{% - \ifwarnedobs\relax\else - % We need to warn folks that they may have trouble with TeX 3.0. - % This uses \immediate\write16 rather than \message to get newlines. - \immediate\write16{} - \immediate\write16{***WARNING*** for users of Unix TeX 3.0!} - \immediate\write16{This manual trips a bug in TeX version 3.0 (tex hangs).} - \immediate\write16{If you are running another version of TeX, relax.} - \immediate\write16{If you are running Unix TeX 3.0, kill this TeX process.} - \immediate\write16{ Then upgrade your TeX installation if you can.} - \immediate\write16{If you are stuck with version 3.0, run the} - \immediate\write16{ script ``tex3patch'' from the Texinfo distribution} - \immediate\write16{ to use a workaround.} - \immediate\write16{} - \global\warnedobstrue - \fi +\def\openindices{% + \newindex{cp}% + \newcodeindex{fn}% + \newcodeindex{vr}% + \newcodeindex{tp}% + \newcodeindex{ky}% + \newcodeindex{pg}% } -% **In TeX 3.0, setting text in \nullfont hangs tex. For a -% workaround (which requires the file ``dummy.tfm'' to be installed), -% uncomment the following line: -%%%%%\font\nullfont=dummy\let\obstexwarn=\relax +% @bye. +\outer\def\bye{\pagealignmacro\tracingstats=1\ptexend} -% Ignore text, except that we keep track of conditional commands for -% purposes of nesting, up to an `@end #1' command. -% -\def\nestedignore#1{% - \obstexwarn - % We must actually expand the ignored text to look for the @end - % command, so that nested ignore constructs work. Thus, we put the - % text into a \vbox and then do nothing with the result. To minimize - % the change of memory overflow, we follow the approach outlined on - % page 401 of the TeXbook: make the current font be a dummy font. - % - \setbox0 = \vbox\bgroup - % Don't complain about control sequences we have declared \outer. - \ignoresections - % - % Define `@end #1' to end the box, which will in turn undefine the - % @end command again. - \expandafter\def\csname E#1\endcsname{\egroup\ignorespaces}% - % - % We are going to be parsing Texinfo commands. Most cause no - % trouble when they are used incorrectly, but some commands do - % complicated argument parsing or otherwise get confused, so we - % undefine them. - % - % We can't do anything about stray @-signs, unfortunately; - % they'll produce `undefined control sequence' errors. - \ignoremorecommands - % - % Set the current font to be \nullfont, a TeX primitive, and define - % all the font commands to also use \nullfont. We don't use - % dummy.tfm, as suggested in the TeXbook, because not all sites - % might have that installed. Therefore, math mode will still - % produce output, but that should be an extremely small amount of - % stuff compared to the main input. - % - \nullfont - \let\tenrm = \nullfont \let\tenit = \nullfont \let\tensl = \nullfont - \let\tenbf = \nullfont \let\tentt = \nullfont \let\smallcaps = \nullfont - \let\tensf = \nullfont - % Similarly for index fonts (mostly for their use in - % smallexample) - \let\indrm = \nullfont \let\indit = \nullfont \let\indsl = \nullfont - \let\indbf = \nullfont \let\indtt = \nullfont \let\indsc = \nullfont - \let\indsf = \nullfont - % - % Don't complain when characters are missing from the fonts. - \tracinglostchars = 0 - % - % Don't bother to do space factor calculations. - \frenchspacing - % - % Don't report underfull hboxes. - \hbadness = 10000 - % - % Do minimal line-breaking. - \pretolerance = 10000 - % - % Do not execute instructions in @tex - \def\tex{\doignore{tex}} -} - -% @set VAR sets the variable VAR to an empty value. -% @set VAR REST-OF-LINE sets VAR to the value REST-OF-LINE. -% -% Since we want to separate VAR from REST-OF-LINE (which might be -% empty), we can't just use \parsearg; we have to insert a space of our -% own to delimit the rest of the line, and then take it out again if we -% didn't need it. Make sure the catcode of space is correct to avoid -% losing inside @example, for instance. -% -\def\set{\begingroup\catcode` =10 \parsearg\setxxx} -\def\setxxx#1{\setyyy#1 \endsetyyy} -\def\setyyy#1 #2\endsetyyy{% - \def\temp{#2}% - \ifx\temp\empty \global\expandafter\let\csname SET#1\endcsname = \empty - \else \setzzz{#1}#2\endsetzzz % Remove the trailing space \setxxx inserted. - \fi - \endgroup -} -% Can't use \xdef to pre-expand #2 and save some time, since \temp or -% \next or other control sequences that we've defined might get us into -% an infinite loop. Consider `@set foo @cite{bar}'. -\def\setzzz#1#2 \endsetzzz{\expandafter\gdef\csname SET#1\endcsname{#2}} - -% @clear VAR clears (i.e., unsets) the variable VAR. -% -\def\clear{\parsearg\clearxxx} -\def\clearxxx#1{\global\expandafter\let\csname SET#1\endcsname=\relax} - -% @value{foo} gets the text saved in variable foo. -% -\def\value#1{\expandafter - \ifx\csname SET#1\endcsname\relax - {\{No value for ``#1''\}} - \else \csname SET#1\endcsname \fi} - -% @ifset VAR ... @end ifset reads the `...' iff VAR has been defined -% with @set. -% -\def\ifset{\parsearg\ifsetxxx} -\def\ifsetxxx #1{% - \expandafter\ifx\csname SET#1\endcsname\relax - \expandafter\ifsetfail - \else - \expandafter\ifsetsucceed - \fi -} -\def\ifsetsucceed{\conditionalsucceed{ifset}} -\def\ifsetfail{\nestedignore{ifset}} -\defineunmatchedend{ifset} -% @ifclear VAR ... @end ifclear reads the `...' iff VAR has never been -% defined with @set, or has been undefined with @clear. -% -\def\ifclear{\parsearg\ifclearxxx} -\def\ifclearxxx #1{% - \expandafter\ifx\csname SET#1\endcsname\relax - \expandafter\ifclearsucceed +\message{pdf,} +% adobe `portable' document format +\newcount\tempnum +\newcount\lnkcount +\newtoks\filename +\newcount\filenamelength +\newcount\pgn +\newtoks\toksA +\newtoks\toksB +\newtoks\toksC +\newtoks\toksD +\newbox\boxA +\newcount\countA +\newif\ifpdf +\newif\ifpdfmakepagedest + +\ifx\pdfoutput\undefined + \pdffalse + \let\pdfmkdest = \gobble + \let\pdfurl = \gobble + \let\endlink = \relax + \let\linkcolor = \relax + \let\pdfmakeoutlines = \relax +\else + \pdftrue + \pdfoutput = 1 + \input pdfcolor + \def\dopdfimage#1#2#3{% + \def\imagewidth{#2}% + \def\imageheight{#3}% + \ifnum\pdftexversion < 14 + \pdfimage + \else + \pdfximage + \fi + \ifx\empty\imagewidth\else width \imagewidth \fi + \ifx\empty\imageheight\else height \imageheight \fi + {#1.pdf}% + \ifnum\pdftexversion < 14 \else + \pdfrefximage \pdflastximage + \fi} + \def\pdfmkdest#1{\pdfdest name{#1@} xyz} + \def\pdfmkpgn#1{#1@} + \let\linkcolor = \Cyan + \def\endlink{\Black\pdfendlink} + % Adding outlines to PDF; macros for calculating structure of outlines + % come from Petr Olsak + \def\expnumber#1{\expandafter\ifx\csname#1\endcsname\relax 0% + \else \csname#1\endcsname \fi} + \def\advancenumber#1{\tempnum=\expnumber{#1}\relax + \advance\tempnum by1 + \expandafter\xdef\csname#1\endcsname{\the\tempnum}} + \def\pdfmakeoutlines{{% + \openin 1 \jobname.toc + \ifeof 1\else\bgroup + \closein 1 + \indexnofonts + \def\tt{} + % thanh's hack / proper braces in bookmarks + \edef\mylbrace{\iftrue \string{\else}\fi}\let\{=\mylbrace + \edef\myrbrace{\iffalse{\else\string}\fi}\let\}=\myrbrace + % + \def\chapentry ##1##2##3{} + \def\unnumbchapentry ##1##2{} + \def\secentry ##1##2##3##4{\advancenumber{chap##2}} + \def\unnumbsecentry ##1##2{} + \def\subsecentry ##1##2##3##4##5{\advancenumber{sec##2.##3}} + \def\unnumbsubsecentry ##1##2{} + \def\subsubsecentry ##1##2##3##4##5##6{\advancenumber{subsec##2.##3.##4}} + \def\unnumbsubsubsecentry ##1##2{} + \input \jobname.toc + \def\chapentry ##1##2##3{% + \pdfoutline goto name{\pdfmkpgn{##3}}count-\expnumber{chap##2}{##1}} + \def\unnumbchapentry ##1##2{% + \pdfoutline goto name{\pdfmkpgn{##2}}{##1}} + \def\secentry ##1##2##3##4{% + \pdfoutline goto name{\pdfmkpgn{##4}}count-\expnumber{sec##2.##3}{##1}} + \def\unnumbsecentry ##1##2{% + \pdfoutline goto name{\pdfmkpgn{##2}}{##1}} + \def\subsecentry ##1##2##3##4##5{% + \pdfoutline goto name{\pdfmkpgn{##5}}count-\expnumber{subsec##2.##3.##4}{##1}} + \def\unnumbsubsecentry ##1##2{% + \pdfoutline goto name{\pdfmkpgn{##2}}{##1}} + \def\subsubsecentry ##1##2##3##4##5##6{% + \pdfoutline goto name{\pdfmkpgn{##6}}{##1}} + \def\unnumbsubsubsecentry ##1##2{% + \pdfoutline goto name{\pdfmkpgn{##2}}{##1}} + \input \jobname.toc + \egroup\fi + }} + \def\makelinks #1,{% + \def\params{#1}\def\E{END}% + \ifx\params\E + \let\nextmakelinks=\relax + \else + \let\nextmakelinks=\makelinks + \ifnum\lnkcount>0,\fi + \picknum{#1}% + \startlink attr{/Border [0 0 0]} + goto name{\pdfmkpgn{\the\pgn}}% + \linkcolor #1% + \advance\lnkcount by 1% + \endlink + \fi + \nextmakelinks + } + \def\picknum#1{\expandafter\pn#1} + \def\pn#1{% + \def\p{#1}% + \ifx\p\lbrace + \let\nextpn=\ppn + \else + \let\nextpn=\ppnn + \def\first{#1} + \fi + \nextpn + } + \def\ppn#1{\pgn=#1\gobble} + \def\ppnn{\pgn=\first} + \def\pdfmklnk#1{\lnkcount=0\makelinks #1,END,} + \def\addtokens#1#2{\edef\addtoks{\noexpand#1={\the#1#2}}\addtoks} + \def\skipspaces#1{\def\PP{#1}\def\D{|}% + \ifx\PP\D\let\nextsp\relax + \else\let\nextsp\skipspaces + \ifx\p\space\else\addtokens{\filename}{\PP}% + \advance\filenamelength by 1 + \fi + \fi + \nextsp} + \def\getfilename#1{\filenamelength=0\expandafter\skipspaces#1|\relax} + \ifnum\pdftexversion < 14 + \let \startlink \pdfannotlink \else - \expandafter\ifclearfail + \let \startlink \pdfstartlink \fi -} -\def\ifclearsucceed{\conditionalsucceed{ifclear}} -\def\ifclearfail{\nestedignore{ifclear}} -\defineunmatchedend{ifclear} - -% @iftex always succeeds; we read the text following, through @end -% iftex). But `@end iftex' should be valid only after an @iftex. -% -\def\iftex{\conditionalsucceed{iftex}} -\defineunmatchedend{iftex} - -% We can't just want to start a group at @iftex (for example) and end it -% at @end iftex, since then @set commands inside the conditional have no -% effect (they'd get reverted at the end of the group). So we must -% define \Eiftex to redefine itself to be its previous value. (We can't -% just define it to fail again with an ``unmatched end'' error, since -% the @ifset might be nested.) -% -\def\conditionalsucceed#1{% - \edef\temp{% - % Remember the current value of \E#1. - \let\nece{prevE#1} = \nece{E#1}% - % - % At the `@end #1', redefine \E#1 to be its previous value. - \def\nece{E#1}{\let\nece{E#1} = \nece{prevE#1}}% - }% - \temp -} - -% We need to expand lots of \csname's, but we don't want to expand the -% control sequences after we've constructed them. -% -\def\nece#1{\expandafter\noexpand\csname#1\endcsname} - -% @asis just yields its argument. Used with @table, for example. -% -\def\asis#1{#1} - -% @math means output in math mode. -% We don't use $'s directly in the definition of \math because control -% sequences like \math are expanded when the toc file is written. Then, -% we read the toc file back, the $'s will be normal characters (as they -% should be, according to the definition of Texinfo). So we must use a -% control sequence to switch into and out of math mode. -% -% This isn't quite enough for @math to work properly in indices, but it -% seems unlikely it will ever be needed there. -% -\let\implicitmath = $ -\def\math#1{\implicitmath #1\implicitmath} - -% @bullet and @minus need the same treatment as @math, just above. -\def\bullet{\implicitmath\ptexbullet\implicitmath} -\def\minus{\implicitmath-\implicitmath} - -\def\node{\ENVcheck\parsearg\nodezzz} -\def\nodezzz#1{\nodexxx [#1,]} -\def\nodexxx[#1,#2]{\gdef\lastnode{#1}} -\let\nwnode=\node -\let\lastnode=\relax - -\def\donoderef{\ifx\lastnode\relax\else -\expandafter\expandafter\expandafter\setref{\lastnode}\fi -\global\let\lastnode=\relax} - -\def\unnumbnoderef{\ifx\lastnode\relax\else -\expandafter\expandafter\expandafter\unnumbsetref{\lastnode}\fi -\global\let\lastnode=\relax} - -\def\appendixnoderef{\ifx\lastnode\relax\else -\expandafter\expandafter\expandafter\appendixsetref{\lastnode}\fi -\global\let\lastnode=\relax} - -\let\refill=\relax - -% @setfilename is done at the beginning of every texinfo file. -% So open here the files we need to have open while reading the input. -% This makes it possible to make a .fmt file for texinfo. -\def\setfilename{% - \readauxfile - \opencontents - \openindices - \fixbackslash % Turn off hack to swallow `\input texinfo'. - \global\let\setfilename=\comment % Ignore extra @setfilename cmds. - \comment % Ignore the actual filename. -} - -\outer\def\bye{\pagealignmacro\tracingstats=1\ptexend} - -\def\inforef #1{\inforefzzz #1,,,,**} -\def\inforefzzz #1,#2,#3,#4**{\putwordSee{} \putwordInfo{} \putwordfile{} \file{\ignorespaces #3{}}, - node \samp{\ignorespaces#1{}}} - -\def\macro#1{\begingroup\ignoresections\catcode`\#=6\def\macrotemp{#1}\parsearg\macroxxx} -\def\macroxxx#1#2 \end macro{% -\expandafter\gdef\macrotemp#1{#2}% -\endgroup} - -%\def\linemacro#1{\begingroup\ignoresections\catcode`\#=6\def\macrotemp{#1}\parsearg\linemacroxxx} -%\def\linemacroxxx#1#2 \end linemacro{% -%\let\parsearg=\relax -%\edef\macrotempx{\csname M\butfirst\expandafter\string\macrotemp\endcsname}% -%\expandafter\xdef\macrotemp{\parsearg\macrotempx}% -%\expandafter\gdef\macrotempx#1{#2}% -%\endgroup} + \def\pdfurl#1{% + \begingroup + \normalturnoffactive\def\@{@}% + \leavevmode\Red + \startlink attr{/Border [0 0 0]}% + user{/Subtype /Link /A << /S /URI /URI (#1) >>}% + % #1 + \endgroup} + \def\pdfgettoks#1.{\setbox\boxA=\hbox{\toksA={#1.}\toksB={}\maketoks}} + \def\addtokens#1#2{\edef\addtoks{\noexpand#1={\the#1#2}}\addtoks} + \def\adn#1{\addtokens{\toksC}{#1}\global\countA=1\let\next=\maketoks} + \def\poptoks#1#2|ENDTOKS|{\let\first=#1\toksD={#1}\toksA={#2}} + \def\maketoks{% + \expandafter\poptoks\the\toksA|ENDTOKS| + \ifx\first0\adn0 + \else\ifx\first1\adn1 \else\ifx\first2\adn2 \else\ifx\first3\adn3 + \else\ifx\first4\adn4 \else\ifx\first5\adn5 \else\ifx\first6\adn6 + \else\ifx\first7\adn7 \else\ifx\first8\adn8 \else\ifx\first9\adn9 + \else + \ifnum0=\countA\else\makelink\fi + \ifx\first.\let\next=\done\else + \let\next=\maketoks + \addtokens{\toksB}{\the\toksD} + \ifx\first,\addtokens{\toksB}{\space}\fi + \fi + \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi + \next} + \def\makelink{\addtokens{\toksB}% + {\noexpand\pdflink{\the\toksC}}\toksC={}\global\countA=0} + \def\pdflink#1{% + \startlink attr{/Border [0 0 0]} goto name{\mkpgn{#1}} + \linkcolor #1\endlink} + \def\mkpgn#1{#1@} + \def\done{\edef\st{\global\noexpand\toksA={\the\toksB}}\st} +\fi % \ifx\pdfoutput -%\def\butfirst#1{} \message{fonts,} - % Font-change commands. -% Texinfo supports the sans serif font style, which plain TeX does not. +% Texinfo sort of supports the sans serif font style, which plain TeX does not. % So we set up a \sf analogous to plain's \rm, etc. \newfam\sffam \def\sf{\fam=\sffam \tensf} @@ -972,8 +1032,9 @@ where each line of input produces a line of output.} % We don't need math for this one. \def\ttsl{\tenttsl} -%% Try out Computer Modern fonts at \magstephalf -\let\mainmagstep=\magstephalf +% Use Computer Modern fonts at \magstephalf (11pt). +\newcount\mainmagstep +\mainmagstep=\magstephalf % Set the font macro #1 to the font named #2, adding on the % specified font prefix (normally `cm'). @@ -988,7 +1049,7 @@ where each line of input produces a line of output.} \fi % Support font families that don't use the same naming scheme as CM. \def\rmshape{r} -\def\rmbshape{bx} %where the normal face is bold +\def\rmbshape{bx} %where the normal face is bold \def\bfshape{b} \def\bxshape{bx} \def\ttshape{tt} @@ -1028,35 +1089,44 @@ where each line of input produces a line of output.} \setfont\deftt\ttshape{10}{\magstep1} \def\df{\let\tentt=\deftt \let\tenbf = \defbf \bf} -% Fonts for indices and small examples. -% We actually use the slanted font rather than the italic, -% because texinfo normally uses the slanted fonts for that. -% Do not make many font distinctions in general in the index, since they -% aren't very useful. -\setfont\ninett\ttshape{9}{1000} -\setfont\indrm\rmshape{9}{1000} -\setfont\indit\slshape{9}{1000} -\let\indsl=\indit -\let\indtt=\ninett -\let\indttsl=\ninett -\let\indsf=\indrm -\let\indbf=\indrm -\setfont\indsc\scshape{10}{900} -\font\indi=cmmi9 -\font\indsy=cmsy9 - -% Fonts for headings +% Fonts for indices, footnotes, small examples (9pt). +\setfont\smallrm\rmshape{9}{1000} +\setfont\smalltt\ttshape{9}{1000} +\setfont\smallbf\bfshape{10}{900} +\setfont\smallit\itshape{9}{1000} +\setfont\smallsl\slshape{9}{1000} +\setfont\smallsf\sfshape{9}{1000} +\setfont\smallsc\scshape{10}{900} +\setfont\smallttsl\ttslshape{10}{900} +\font\smalli=cmmi9 +\font\smallsy=cmsy9 + +% Fonts for title page: +\setfont\titlerm\rmbshape{12}{\magstep3} +\setfont\titleit\itbshape{10}{\magstep4} +\setfont\titlesl\slbshape{10}{\magstep4} +\setfont\titlett\ttbshape{12}{\magstep3} +\setfont\titlettsl\ttslshape{10}{\magstep4} +\setfont\titlesf\sfbshape{17}{\magstep1} +\let\titlebf=\titlerm +\setfont\titlesc\scbshape{10}{\magstep4} +\font\titlei=cmmi12 scaled \magstep3 +\font\titlesy=cmsy10 scaled \magstep4 +\def\authorrm{\secrm} + +% Chapter (and unnumbered) fonts (17.28pt). \setfont\chaprm\rmbshape{12}{\magstep2} \setfont\chapit\itbshape{10}{\magstep3} \setfont\chapsl\slbshape{10}{\magstep3} \setfont\chaptt\ttbshape{12}{\magstep2} \setfont\chapttsl\ttslshape{10}{\magstep3} -\setfont\chapsf\sfbshape{12}{\magstep2} +\setfont\chapsf\sfbshape{17}{1000} \let\chapbf=\chaprm \setfont\chapsc\scbshape{10}{\magstep3} \font\chapi=cmmi12 scaled \magstep2 \font\chapsy=cmsy10 scaled \magstep3 +% Section fonts (14.4pt). \setfont\secrm\rmbshape{12}{\magstep1} \setfont\secit\itbshape{10}{\magstep2} \setfont\secsl\slbshape{10}{\magstep2} @@ -1074,31 +1144,28 @@ where each line of input produces a line of output.} % \setfont\ssectt\ttshape{10}{\magstep1} % \setfont\ssecsf\sfshape{10}{\magstep1} -%\setfont\ssecrm\bfshape{10}{1315} % Note the use of cmb rather than cmbx. -%\setfont\ssecit\itshape{10}{1315} % Also, the size is a little larger than -%\setfont\ssecsl\slshape{10}{1315} % being scaled magstep1. +%\setfont\ssecrm\bfshape{10}{1315} % Note the use of cmb rather than cmbx. +%\setfont\ssecit\itshape{10}{1315} % Also, the size is a little larger than +%\setfont\ssecsl\slshape{10}{1315} % being scaled magstep1. %\setfont\ssectt\ttshape{10}{1315} %\setfont\ssecsf\sfshape{10}{1315} %\let\ssecbf=\ssecrm +% Subsection fonts (13.15pt). \setfont\ssecrm\rmbshape{12}{\magstephalf} \setfont\ssecit\itbshape{10}{1315} \setfont\ssecsl\slbshape{10}{1315} \setfont\ssectt\ttbshape{12}{\magstephalf} -\setfont\ssecttsl\ttslshape{10}{\magstep1} +\setfont\ssecttsl\ttslshape{10}{1315} \setfont\ssecsf\sfbshape{12}{\magstephalf} \let\ssecbf\ssecrm \setfont\ssecsc\scbshape{10}{\magstep1} \font\sseci=cmmi12 scaled \magstephalf -\font\ssecsy=cmsy10 scaled \magstep1 +\font\ssecsy=cmsy10 scaled 1315 % The smallcaps and symbol fonts should actually be scaled \magstep1.5, % but that is not a standard magnification. -% Fonts for title page: -\setfont\titlerm\rmbshape{12}{\magstep3} -\let\authorrm = \secrm - % In order for the font changes to affect most math symbols and letters, % we have to define the \textfont of the standard families. Since % texinfo doesn't allow for producing subscripts and superscripts, we @@ -1123,31 +1190,44 @@ where each line of input produces a line of output.} \let\tenbf=\textbf \let\tentt=\texttt \let\smallcaps=\textsc \let\tensf=\textsf \let\teni=\texti \let\tensy=\textsy \let\tenttsl=\textttsl \resetmathfonts} +\def\titlefonts{% + \let\tenrm=\titlerm \let\tenit=\titleit \let\tensl=\titlesl + \let\tenbf=\titlebf \let\tentt=\titlett \let\smallcaps=\titlesc + \let\tensf=\titlesf \let\teni=\titlei \let\tensy=\titlesy + \let\tenttsl=\titlettsl + \resetmathfonts \setleading{25pt}} +\def\titlefont#1{{\titlefonts\rm #1}} \def\chapfonts{% \let\tenrm=\chaprm \let\tenit=\chapit \let\tensl=\chapsl \let\tenbf=\chapbf \let\tentt=\chaptt \let\smallcaps=\chapsc \let\tensf=\chapsf \let\teni=\chapi \let\tensy=\chapsy \let\tenttsl=\chapttsl - \resetmathfonts} + \resetmathfonts \setleading{19pt}} \def\secfonts{% \let\tenrm=\secrm \let\tenit=\secit \let\tensl=\secsl \let\tenbf=\secbf \let\tentt=\sectt \let\smallcaps=\secsc \let\tensf=\secsf \let\teni=\seci \let\tensy=\secsy \let\tenttsl=\secttsl - \resetmathfonts} + \resetmathfonts \setleading{16pt}} \def\subsecfonts{% \let\tenrm=\ssecrm \let\tenit=\ssecit \let\tensl=\ssecsl \let\tenbf=\ssecbf \let\tentt=\ssectt \let\smallcaps=\ssecsc \let\tensf=\ssecsf \let\teni=\sseci \let\tensy=\ssecsy \let\tenttsl=\ssecttsl - \resetmathfonts} -\def\indexfonts{% - \let\tenrm=\indrm \let\tenit=\indit \let\tensl=\indsl - \let\tenbf=\indbf \let\tentt=\indtt \let\smallcaps=\indsc - \let\tensf=\indsf \let\teni=\indi \let\tensy=\indsy \let\tenttsl=\indttsl - \resetmathfonts} + \resetmathfonts \setleading{15pt}} +\let\subsubsecfonts = \subsecfonts % Maybe make sssec fonts scaled magstephalf? +\def\smallfonts{% + \let\tenrm=\smallrm \let\tenit=\smallit \let\tensl=\smallsl + \let\tenbf=\smallbf \let\tentt=\smalltt \let\smallcaps=\smallsc + \let\tensf=\smallsf \let\teni=\smalli \let\tensy=\smallsy + \let\tenttsl=\smallttsl + \resetmathfonts \setleading{11pt}} % Set up the default fonts, so we can use them for creating boxes. % \textfonts +% Define these so they can be easily changed for other fonts. +\def\angleleft{$\langle$} +\def\angleright{$\rangle$} + % Count depth in font-changes, for error checks \newcount\fontdepth \fontdepth=0 @@ -1162,13 +1242,14 @@ where each line of input produces a line of output.} % \smartitalic{ARG} outputs arg in italics, followed by an italic correction % unless the following character is such as not to need one. \def\smartitalicx{\ifx\next,\else\ifx\next-\else\ifx\next.\else\/\fi\fi\fi} -\def\smartitalic#1{{\sl #1}\futurelet\next\smartitalicx} +\def\smartslanted#1{{\sl #1}\futurelet\next\smartitalicx} +\def\smartitalic#1{{\it #1}\futurelet\next\smartitalicx} \let\i=\smartitalic -\let\var=\smartitalic -\let\dfn=\smartitalic +\let\var=\smartslanted +\let\dfn=\smartslanted \let\emph=\smartitalic -\let\cite=\smartitalic +\let\cite=\smartslanted \def\b#1{{\bf #1}} \let\strong=\b @@ -1185,12 +1266,22 @@ where each line of input produces a line of output.} \null } \let\ttfont=\t -\def\samp #1{`\tclose{#1}'\null} -\def\key #1{{\ttsl \nohyphenation \uppercase{#1}}\null} +\def\samp#1{`\tclose{#1}'\null} +\setfont\keyrm\rmshape{8}{1000} +\font\keysy=cmsy9 +\def\key#1{{\keyrm\textfont2=\keysy \leavevmode\hbox{% + \raise0.4pt\hbox{\angleleft}\kern-.08em\vtop{% + \vbox{\hrule\kern-0.4pt + \hbox{\raise0.4pt\hbox{\vphantom{\angleleft}}#1}}% + \kern-0.4pt\hrule}% + \kern-.06em\raise0.4pt\hbox{\angleright}}}} +% The old definition, with no lozenge: +%\def\key #1{{\ttsl \nohyphenation \uppercase{#1}}\null} \def\ctrl #1{{\tt \rawbackslash \hat}#1} +% @file, @option are the same as @samp. \let\file=\samp -\let\url=\samp % perhaps include a hypertex \special eventually +\let\option=\samp % @code is a modification of @t, % which makes spaces the same size as normal in the surrounding text. @@ -1222,57 +1313,141 @@ where each line of input produces a line of output.} % Unfortunately, TeX uses one parameter (\hyphenchar) to control % both hyphenation at - and hyphenation within words. % We must therefore turn them both off (\tclose does that) -% and arrange explicitly to hyphenate an a dash. +% and arrange explicitly to hyphenate at a dash. % -- rms. { -\catcode`\-=\active -\catcode`\_=\active -\global\def\code{\begingroup \catcode`\-=\active \let-\codedash \catcode`\_=\active \let_\codeunder \codex} -% The following is used by \doprintindex to insure that long function names -% wrap around. It is necessary for - and _ to be active before the index is -% read from the file, as \entry parses the arguments long before \code is -% ever called. -- mycroft -\global\def\indexbreaks{\catcode`\-=\active \let-\realdash \catcode`\_=\active \let_\realunder} + \catcode`\-=\active + \catcode`\_=\active + % + \global\def\code{\begingroup + \catcode`\-=\active \let-\codedash + \catcode`\_=\active \let_\codeunder + \codex + } + % + % If we end up with any active - characters when handling the index, + % just treat them as a normal -. + \global\def\indexbreaks{\catcode`\-=\active \let-\realdash} } \def\realdash{-} -\def\realunder{_} \def\codedash{-\discretionary{}{}{}} -\def\codeunder{\normalunderscore\discretionary{}{}{}} +\def\codeunder{\ifusingtt{\normalunderscore\discretionary{}{}{}}{\_}} \def\codex #1{\tclose{#1}\endgroup} %\let\exp=\tclose %Was temporary % @kbd is like @code, except that if the argument is just one @key command, % then @kbd has no effect. -% + +% @kbdinputstyle -- arg is `distinct' (@kbd uses slanted tty font always), +% `example' (@kbd uses ttsl only inside of @example and friends), +% or `code' (@kbd uses normal tty font always). +\def\kbdinputstyle{\parsearg\kbdinputstylexxx} +\def\kbdinputstylexxx#1{% + \def\arg{#1}% + \ifx\arg\worddistinct + \gdef\kbdexamplefont{\ttsl}\gdef\kbdfont{\ttsl}% + \else\ifx\arg\wordexample + \gdef\kbdexamplefont{\ttsl}\gdef\kbdfont{\tt}% + \else\ifx\arg\wordcode + \gdef\kbdexamplefont{\tt}\gdef\kbdfont{\tt}% + \fi\fi\fi +} +\def\worddistinct{distinct} +\def\wordexample{example} +\def\wordcode{code} + +% Default is kbdinputdistinct. (Too much of a hassle to call the macro, +% the catcodes are wrong for parsearg to work.) +\gdef\kbdexamplefont{\ttsl}\gdef\kbdfont{\ttsl} + \def\xkey{\key} \def\kbdfoo#1#2#3\par{\def\one{#1}\def\three{#3}\def\threex{??}% \ifx\one\xkey\ifx\threex\three \key{#2}% -\else{\tclose{\ttsl\look}}\fi -\else{\tclose{\ttsl\look}}\fi} +\else{\tclose{\kbdfont\look}}\fi +\else{\tclose{\kbdfont\look}}\fi} + +% For @url, @env, @command quotes seem unnecessary, so use \code. +\let\url=\code +\let\env=\code +\let\command=\code + +% @uref (abbreviation for `urlref') takes an optional (comma-separated) +% second argument specifying the text to display and an optional third +% arg as text to display instead of (rather than in addition to) the url +% itself. First (mandatory) arg is the url. Perhaps eventually put in +% a hypertex \special here. +% +\def\uref#1{\douref #1,,,\finish} +\def\douref#1,#2,#3,#4\finish{\begingroup + \unsepspaces + \pdfurl{#1}% + \setbox0 = \hbox{\ignorespaces #3}% + \ifdim\wd0 > 0pt + \unhbox0 % third arg given, show only that + \else + \setbox0 = \hbox{\ignorespaces #2}% + \ifdim\wd0 > 0pt + \ifpdf + \unhbox0 % PDF: 2nd arg given, show only it + \else + \unhbox0\ (\code{#1})% DVI: 2nd arg given, show both it and url + \fi + \else + \code{#1}% only url given, so show it + \fi + \fi + \endlink +\endgroup} + +% rms does not like angle brackets --karl, 17may97. +% So now @email is just like @uref, unless we are pdf. +% +%\def\email#1{\angleleft{\tt #1}\angleright} +\ifpdf + \def\email#1{\doemail#1,,\finish} + \def\doemail#1,#2,#3\finish{\begingroup + \unsepspaces + \pdfurl{mailto:#1}% + \setbox0 = \hbox{\ignorespaces #2}% + \ifdim\wd0>0pt\unhbox0\else\code{#1}\fi + \endlink + \endgroup} +\else + \let\email=\uref +\fi % Check if we are currently using a typewriter font. Since all the % Computer Modern typewriter fonts have zero interword stretch (and % shrink), and it is reasonable to expect all typewriter fonts to have % this property, we can check that font parameter. -% +% \def\ifmonospace{\ifdim\fontdimen3\font=0pt } % Typeset a dimension, e.g., `in' or `pt'. The only reason for the -% argument is to make the input look right: @dmn{pt} instead of -% @dmn{}pt. +% argument is to make the input look right: @dmn{pt} instead of @dmn{}pt. % \def\dmn#1{\thinspace #1} \def\kbd#1{\def\look{#1}\expandafter\kbdfoo\look??\par} -\def\l#1{{\li #1}\null} % +% @l was never documented to mean ``switch to the Lisp font'', +% and it is not used as such in any manual I can find. We need it for +% Polish suppressed-l. --karl, 22sep96. +%\def\l#1{{\li #1}\null} + +% Explicit font changes: @r, @sc, undocumented @ii. +\def\r#1{{\rm #1}} % roman font +\def\sc#1{{\smallcaps#1}} % smallcaps font +\def\ii#1{{\it #1}} % italic font + +% @acronym downcases the argument and prints in smallcaps. +\def\acronym#1{{\smallcaps \lowercase{#1}}} + +% @pounds{} is a sterling sign. +\def\pounds{{\it\$}} -\def\r#1{{\rm #1}} % roman font -% Use of \lowercase was suggested. -\def\sc#1{{\smallcaps#1}} % smallcaps font -\def\ii#1{{\it #1}} % italic font \message{page headings,} @@ -1280,20 +1455,23 @@ where each line of input produces a line of output.} \newskip\titlepagebottomglue \titlepagebottomglue = 2pc % First the title page. Must do @settitle before @titlepage. -\def\titlefont#1{{\titlerm #1}} - \newif\ifseenauthor \newif\iffinishedtitlepage +% Do an implicit @contents or @shortcontents after @end titlepage if the +% user says @setcontentsaftertitlepage or @setshortcontentsaftertitlepage. +% +\newif\ifsetcontentsaftertitlepage + \let\setcontentsaftertitlepage = \setcontentsaftertitlepagetrue +\newif\ifsetshortcontentsaftertitlepage + \let\setshortcontentsaftertitlepage = \setshortcontentsaftertitlepagetrue + \def\shorttitlepage{\parsearg\shorttitlepagezzz} \def\shorttitlepagezzz #1{\begingroup\hbox{}\vskip 1.5in \chaprm \centerline{#1}% - \endgroup\page\hbox{}\page} + \endgroup\page\hbox{}\page} \def\titlepage{\begingroup \parindent=0pt \textfonts \let\subtitlerm=\tenrm -% I deinstalled the following change because \cmr12 is undefined. -% This change was not in the ChangeLog anyway. --rms. -% \let\subtitlerm=\cmr12 \def\subtitlefont{\subtitlerm \normalbaselineskip = 13pt \normalbaselines}% % \def\authorfont{\authorrm \normalbaselineskip = 16pt \normalbaselines}% @@ -1303,10 +1481,10 @@ where each line of input produces a line of output.} % % Now you can print the title using @title. \def\title{\parsearg\titlezzz}% - \def\titlezzz##1{\leftline{\titlefont{##1}} - % print a rule at the page bottom also. - \finishedtitlepagefalse - \vskip4pt \hrule height 4pt width \hsize \vskip4pt}% + \def\titlezzz##1{\leftline{\titlefonts\rm ##1} + % print a rule at the page bottom also. + \finishedtitlepagefalse + \vskip4pt \hrule height 4pt width \hsize \vskip4pt}% % No rule at page bottom unless we print one at the top with @title. \finishedtitlepagetrue % @@ -1324,7 +1502,7 @@ where each line of input produces a line of output.} \let\oldpage = \page \def\page{% \iffinishedtitlepage\else - \finishtitlepage + \finishtitlepage \fi \oldpage \let\page = \oldpage @@ -1342,6 +1520,23 @@ where each line of input produces a line of output.} % after the title page, which we certainly don't want. \oldpage \endgroup + % + % If they want short, they certainly want long too. + \ifsetshortcontentsaftertitlepage + \shortcontents + \contents + \global\let\shortcontents = \relax + \global\let\contents = \relax + \fi + % + \ifsetcontentsaftertitlepage + \contents + \global\let\contents = \relax + \global\let\shortcontents = \relax + \fi + % + \ifpdf \pdfmakepagedesttrue \fi + % \HEADINGSon } @@ -1355,10 +1550,10 @@ where each line of input produces a line of output.} \let\thispage=\folio -\newtoks \evenheadline % Token sequence for heading line of even pages -\newtoks \oddheadline % Token sequence for heading line of odd pages -\newtoks \evenfootline % Token sequence for footing line of even pages -\newtoks \oddfootline % Token sequence for footing line of odd pages +\newtoks\evenheadline % headline on even pages +\newtoks\oddheadline % headline on odd pages +\newtoks\evenfootline % footline on even pages +\newtoks\oddfootline % footline on odd pages % Now make Tex use those variables \headline={{\textfonts\rm \ifodd\pageno \the\oddheadline @@ -1392,10 +1587,7 @@ where each line of input produces a line of output.} \gdef\oddheadingyyy #1@|#2@|#3@|#4\finish{% \global\oddheadline={\rlap{\centerline{#2}}\line{#1\hfil#3}}} -\gdef\everyheadingxxx #1{\everyheadingyyy #1@|@|@|@|\finish} -\gdef\everyheadingyyy #1@|#2@|#3@|#4\finish{% -\global\evenheadline={\rlap{\centerline{#2}}\line{#1\hfil#3}} -\global\oddheadline={\rlap{\centerline{#2}}\line{#1\hfil#3}}} +\gdef\everyheadingxxx#1{\oddheadingxxx{#1}\evenheadingxxx{#1}}% \gdef\evenfootingxxx #1{\evenfootingyyy #1@|@|@|@|\finish} \gdef\evenfootingyyy #1@|#2@|#3@|#4\finish{% @@ -1403,23 +1595,27 @@ where each line of input produces a line of output.} \gdef\oddfootingxxx #1{\oddfootingyyy #1@|@|@|@|\finish} \gdef\oddfootingyyy #1@|#2@|#3@|#4\finish{% -\global\oddfootline={\rlap{\centerline{#2}}\line{#1\hfil#3}}} + \global\oddfootline = {\rlap{\centerline{#2}}\line{#1\hfil#3}}% + % + % Leave some space for the footline. Hopefully ok to assume + % @evenfooting will not be used by itself. + \global\advance\pageheight by -\baselineskip + \global\advance\vsize by -\baselineskip +} -\gdef\everyfootingxxx #1{\everyfootingyyy #1@|@|@|@|\finish} -\gdef\everyfootingyyy #1@|#2@|#3@|#4\finish{% -\global\evenfootline={\rlap{\centerline{#2}}\line{#1\hfil#3}} -\global\oddfootline={\rlap{\centerline{#2}}\line{#1\hfil#3}}} +\gdef\everyfootingxxx#1{\oddfootingxxx{#1}\evenfootingxxx{#1}} % }% unbind the catcode of @. -% @headings double turns headings on for double-sided printing. -% @headings single turns headings on for single-sided printing. -% @headings off turns them off. -% @headings on same as @headings double, retained for compatibility. -% @headings after turns on double-sided headings after this page. -% @headings doubleafter turns on double-sided headings after this page. +% @headings double turns headings on for double-sided printing. +% @headings single turns headings on for single-sided printing. +% @headings off turns them off. +% @headings on same as @headings double, retained for compatibility. +% @headings after turns on double-sided headings after this page. +% @headings doubleafter turns on double-sided headings after this page. % @headings singleafter turns on single-sided headings after this page. -% By default, they are off. +% By default, they are off at the start of a document, +% and turned `on' after @end titlepage. \def\headings #1 {\csname HEADINGS#1\endcsname} @@ -1433,22 +1629,24 @@ where each line of input produces a line of output.} % title on inside top of left hand pages, and page numbers on outside top % edge of all pages. \def\HEADINGSdouble{ -%\pagealignmacro \global\pageno=1 \global\evenfootline={\hfil} \global\oddfootline={\hfil} \global\evenheadline={\line{\folio\hfil\thistitle}} \global\oddheadline={\line{\thischapter\hfil\folio}} +\global\let\contentsalignmacro = \chapoddpage } +\let\contentsalignmacro = \chappager + % For single-sided printing, chapter title goes across top left of page, % page number on top right. \def\HEADINGSsingle{ -%\pagealignmacro \global\pageno=1 \global\evenfootline={\hfil} \global\oddfootline={\hfil} \global\evenheadline={\line{\thischapter\hfil\folio}} \global\oddheadline={\line{\thischapter\hfil\folio}} +\global\let\contentsalignmacro = \chappager } \def\HEADINGSon{\HEADINGSdouble} @@ -1459,6 +1657,7 @@ where each line of input produces a line of output.} \global\oddfootline={\hfil} \global\evenheadline={\line{\folio\hfil\thistitle}} \global\oddheadline={\line{\thischapter\hfil\folio}} +\global\let\contentsalignmacro = \chapoddpage } \def\HEADINGSsingleafter{\let\HEADINGShook=\HEADINGSsinglex} @@ -1467,42 +1666,28 @@ where each line of input produces a line of output.} \global\oddfootline={\hfil} \global\evenheadline={\line{\thischapter\hfil\folio}} \global\oddheadline={\line{\thischapter\hfil\folio}} +\global\let\contentsalignmacro = \chappager } % Subroutines used in generating headings % Produces Day Month Year style of output. -\def\today{\number\day\space -\ifcase\month\or -January\or February\or March\or April\or May\or June\or -July\or August\or September\or October\or November\or December\fi -\space\number\year} - -% Use this if you want the Month Day, Year style of output. -%\def\today{\ifcase\month\or -%January\or February\or March\or April\or May\or June\or -%July\or August\or September\or October\or November\or December\fi -%\space\number\day, \number\year} - -% @settitle line... specifies the title of the document, for headings -% It generates no output of its own - -\def\thistitle{No Title} +\def\today{% + \number\day\space + \ifcase\month + \or\putwordMJan\or\putwordMFeb\or\putwordMMar\or\putwordMApr + \or\putwordMMay\or\putwordMJun\or\putwordMJul\or\putwordMAug + \or\putwordMSep\or\putwordMOct\or\putwordMNov\or\putwordMDec + \fi + \space\number\year} + +% @settitle line... specifies the title of the document, for headings. +% It generates no output of its own. +\def\thistitle{\putwordNoTitle} \def\settitle{\parsearg\settitlezzz} \def\settitlezzz #1{\gdef\thistitle{#1}} -\message{tables,} - -% @tabs -- simple alignment - -% These don't work. For one thing, \+ is defined as outer. -% So these macros cannot even be defined. - -%\def\tabs{\parsearg\tabszzz} -%\def\tabszzz #1{\settabs\+#1\cr} -%\def\tabline{\parsearg\tablinezzz} -%\def\tablinezzz #1{\+#1\cr} -%\def\&{&} +\message{tables,} % Tables -- @table, @ftable, @vtable, @item(x), @kitem(x), @xitem(x). % default indentation of table text @@ -1546,11 +1731,6 @@ July\or August\or September\or October\or November\or December\fi \itemindex{#1}% \nobreak % This prevents a break before @itemx. % - % Be sure we are not still in the middle of a paragraph. - %{\parskip = 0in - %\par - %}% - % % If the item text does not fit in the space we have, put it on a line % by itself, and do not allow a page break either before or after that % line. We do not start a paragraph here because then if the next @@ -1579,13 +1759,17 @@ July\or August\or September\or October\or November\or December\fi \itemxneedsnegativevskipfalse \else % The item text fits into the space. Start a paragraph, so that the - % following text (if any) will end up on the same line. Since that - % text will be indented by \tableindent, we make the item text be in - % a zero-width box. + % following text (if any) will end up on the same line. \noindent - \rlap{\hskip -\tableindent\box0}\ignorespaces% - \endgroup% - \itemxneedsnegativevskiptrue% + % Do this with kerns and \unhbox so that if there is a footnote in + % the item text, it can migrate to the main vertical list and + % eventually be printed. + \nobreak\kern-\tableindent + \dimen0 = \itemmax \advance\dimen0 by \itemmargin \advance\dimen0 by -\wd0 + \unhbox0 + \nobreak\kern\dimen0 + \endgroup + \itemxneedsnegativevskiptrue \fi } @@ -1596,9 +1780,10 @@ July\or August\or September\or October\or November\or December\fi \def\xitem{\errmessage{@xitem while not in a table}} \def\xitemx{\errmessage{@xitemx while not in a table}} -%% Contains a kludge to get @end[description] to work +% Contains a kludge to get @end[description] to work. \def\description{\tablez{\dontindex}{1}{}{}{}{}} +% @table, @ftable, @vtable. \def\table{\begingroup\inENV\obeylines\obeyspaces\tablex} {\obeylines\obeyspaces% \gdef\tablex #1^^M{% @@ -1658,7 +1843,7 @@ July\or August\or September\or October\or November\or December\fi \def\itemize{\parsearg\itemizezzz} \def\itemizezzz #1{% - \begingroup % ended by the @end itemsize + \begingroup % ended by the @end itemize \itemizey {#1}{\Eitemize} } @@ -1786,7 +1971,7 @@ July\or August\or September\or October\or November\or December\fi \def\itemizeitem{% \advance\itemno by 1 {\let\par=\endgraf \smallbreak}% -\ifhmode \errmessage{\in hmode at itemizeitem}\fi +\ifhmode \errmessage{In hmode at itemizeitem}\fi {\parskip=0in \hskip 0pt \hbox to 0pt{\hss \itemcontents\hskip \itemmargin}% \vadjust{\penalty 1200}}% @@ -1804,7 +1989,7 @@ July\or August\or September\or October\or November\or December\fi % To make preamble: % -% Either define widths of columns in terms of percent of \hsize: +% Either define widths of columns in terms of percent of \hsize: % @multitable @columnfractions .25 .3 .45 % @item ... % @@ -1812,6 +1997,7 @@ July\or August\or September\or October\or November\or December\fi % current hsize to be used for each column. You may use as many % columns as desired. + % Or use a template: % @multitable {Column 1 template} {Column 2 template} {Column 3 template} % @item ... @@ -1821,33 +2007,33 @@ July\or August\or September\or October\or November\or December\fi % the preamble, break the line within one argument and it % will parse correctly, i.e., % -% @multitable {Column 1 template} {Column 2 template} {Column 3 +% @multitable {Column 1 template} {Column 2 template} {Column 3 % template} % Not: -% @multitable {Column 1 template} {Column 2 template} +% @multitable {Column 1 template} {Column 2 template} % {Column 3 template} -% Each new table line starts with @item, each subsequent new column +% Each new table line starts with @item, each subsequent new column % starts with @tab. Empty columns may be produced by supplying @tab's % with nothing between them for as many times as empty columns are needed, % ie, @tab@tab@tab will produce two empty columns. -% @item, @tab, @multicolumn or @endmulticolumn do not need to be on their +% @item, @tab, @multitable or @end multitable do not need to be on their % own lines, but it will not hurt if they are. % Sample multitable: % @multitable {Column 1 template} {Column 2 template} {Column 3 template} % @item first col stuff @tab second col stuff @tab third col -% @item -% first col stuff -% @tab -% second col stuff -% @tab -% third col -% @item first col stuff @tab second col stuff +% @item +% first col stuff +% @tab +% second col stuff +% @tab +% third col +% @item first col stuff @tab second col stuff % @tab Many paragraphs of text may be used in any column. -% +% % They will wrap at the width determined by the template. % @item@tab@tab This will be in third column. % @end multitable @@ -1859,10 +2045,7 @@ July\or August\or September\or October\or November\or December\fi % @multitablelinespace is space to leave between table items, baseline % to baseline. % 0pt means it depends on current normal line spacing. - -%%%% -% Dimensions - +% \newskip\multitableparskip \newskip\multitableparindent \newdimen\multitablecolspace @@ -1872,127 +2055,512 @@ July\or August\or September\or October\or November\or December\fi \multitablecolspace=12pt \multitablelinespace=0pt -%%%% -% Macros used to set up halign preamble: -\let\endsetuptable\relax -\def\xendsetuptable{\endsetuptable} -\let\columnfractions\relax -\def\xcolumnfractions{\columnfractions} -\newif\ifsetpercent +% Macros used to set up halign preamble: +% +\let\endsetuptable\relax +\def\xendsetuptable{\endsetuptable} +\let\columnfractions\relax +\def\xcolumnfractions{\columnfractions} +\newif\ifsetpercent + +% #1 is the part of the @columnfraction before the decimal point, which +% is presumably either 0 or the empty string (but we don't check, we +% just throw it away). #2 is the decimal part, which we use as the +% percent of \hsize for this column. +\def\pickupwholefraction#1.#2 {% + \global\advance\colcount by 1 + \expandafter\xdef\csname col\the\colcount\endcsname{.#2\hsize}% + \setuptable +} + +\newcount\colcount +\def\setuptable#1{% + \def\firstarg{#1}% + \ifx\firstarg\xendsetuptable + \let\go = \relax + \else + \ifx\firstarg\xcolumnfractions + \global\setpercenttrue + \else + \ifsetpercent + \let\go\pickupwholefraction + \else + \global\advance\colcount by 1 + \setbox0=\hbox{#1\unskip }% Add a normal word space as a separator; + % typically that is always in the input, anyway. + \expandafter\xdef\csname col\the\colcount\endcsname{\the\wd0}% + \fi + \fi + \ifx\go\pickupwholefraction + % Put the argument back for the \pickupwholefraction call, so + % we'll always have a period there to be parsed. + \def\go{\pickupwholefraction#1}% + \else + \let\go = \setuptable + \fi% + \fi + \go +} + +% This used to have \hskip1sp. But then the space in a template line is +% not enough. That is bad. So let's go back to just & until we +% encounter the problem it was intended to solve again. +% --karl, nathan@acm.org, 20apr99. +\def\tab{&} + +% @multitable ... @end multitable definitions: +% +\def\multitable{\parsearg\dotable} +\def\dotable#1{\bgroup + \vskip\parskip + \let\item\crcr + \tolerance=9500 + \hbadness=9500 + \setmultitablespacing + \parskip=\multitableparskip + \parindent=\multitableparindent + \overfullrule=0pt + \global\colcount=0 + \def\Emultitable{\global\setpercentfalse\cr\egroup\egroup}% + % + % To parse everything between @multitable and @item: + \setuptable#1 \endsetuptable + % + % \everycr will reset column counter, \colcount, at the end of + % each line. Every column entry will cause \colcount to advance by one. + % The table preamble + % looks at the current \colcount to find the correct column width. + \everycr{\noalign{% + % + % \filbreak%% keeps underfull box messages off when table breaks over pages. + % Maybe so, but it also creates really weird page breaks when the table + % breaks over pages. Wouldn't \vfil be better? Wait until the problem + % manifests itself, so it can be fixed for real --karl. + \global\colcount=0\relax}}% + % + % This preamble sets up a generic column definition, which will + % be used as many times as user calls for columns. + % \vtop will set a single line and will also let text wrap and + % continue for many paragraphs if desired. + \halign\bgroup&\global\advance\colcount by 1\relax + \multistrut\vtop{\hsize=\expandafter\csname col\the\colcount\endcsname + % + % In order to keep entries from bumping into each other + % we will add a \leftskip of \multitablecolspace to all columns after + % the first one. + % + % If a template has been used, we will add \multitablecolspace + % to the width of each template entry. + % + % If the user has set preamble in terms of percent of \hsize we will + % use that dimension as the width of the column, and the \leftskip + % will keep entries from bumping into each other. Table will start at + % left margin and final column will justify at right margin. + % + % Make sure we don't inherit \rightskip from the outer environment. + \rightskip=0pt + \ifnum\colcount=1 + % The first column will be indented with the surrounding text. + \advance\hsize by\leftskip + \else + \ifsetpercent \else + % If user has not set preamble in terms of percent of \hsize + % we will advance \hsize by \multitablecolspace. + \advance\hsize by \multitablecolspace + \fi + % In either case we will make \leftskip=\multitablecolspace: + \leftskip=\multitablecolspace + \fi + % Ignoring space at the beginning and end avoids an occasional spurious + % blank line, when TeX decides to break the line at the space before the + % box from the multistrut, so the strut ends up on a line by itself. + % For example: + % @multitable @columnfractions .11 .89 + % @item @code{#} + % @tab Legal holiday which is valid in major parts of the whole country. + % Is automatically provided with highlighting sequences respectively marking + % characters. + \noindent\ignorespaces##\unskip\multistrut}\cr +} + +\def\setmultitablespacing{% test to see if user has set \multitablelinespace. +% If so, do nothing. If not, give it an appropriate dimension based on +% current baselineskip. +\ifdim\multitablelinespace=0pt +\setbox0=\vbox{X}\global\multitablelinespace=\the\baselineskip +\global\advance\multitablelinespace by-\ht0 +%% strut to put in table in case some entry doesn't have descenders, +%% to keep lines equally spaced +\let\multistrut = \strut +\else +%% FIXME: what is \box0 supposed to be? +\gdef\multistrut{\vrule height\multitablelinespace depth\dp0 +width0pt\relax} \fi +%% Test to see if parskip is larger than space between lines of +%% table. If not, do nothing. +%% If so, set to same dimension as multitablelinespace. +\ifdim\multitableparskip>\multitablelinespace +\global\multitableparskip=\multitablelinespace +\global\advance\multitableparskip-7pt %% to keep parskip somewhat smaller + %% than skip between lines in the table. +\fi% +\ifdim\multitableparskip=0pt +\global\multitableparskip=\multitablelinespace +\global\advance\multitableparskip-7pt %% to keep parskip somewhat smaller + %% than skip between lines in the table. +\fi} + + +\message{conditionals,} +% Prevent errors for section commands. +% Used in @ignore and in failing conditionals. +\def\ignoresections{% + \let\chapter=\relax + \let\unnumbered=\relax + \let\top=\relax + \let\unnumberedsec=\relax + \let\unnumberedsection=\relax + \let\unnumberedsubsec=\relax + \let\unnumberedsubsection=\relax + \let\unnumberedsubsubsec=\relax + \let\unnumberedsubsubsection=\relax + \let\section=\relax + \let\subsec=\relax + \let\subsubsec=\relax + \let\subsection=\relax + \let\subsubsection=\relax + \let\appendix=\relax + \let\appendixsec=\relax + \let\appendixsection=\relax + \let\appendixsubsec=\relax + \let\appendixsubsection=\relax + \let\appendixsubsubsec=\relax + \let\appendixsubsubsection=\relax + \let\contents=\relax + \let\smallbook=\relax + \let\titlepage=\relax +} + +% Used in nested conditionals, where we have to parse the Texinfo source +% and so want to turn off most commands, in case they are used +% incorrectly. +% +\def\ignoremorecommands{% + \let\defcodeindex = \relax + \let\defcv = \relax + \let\deffn = \relax + \let\deffnx = \relax + \let\defindex = \relax + \let\defivar = \relax + \let\defmac = \relax + \let\defmethod = \relax + \let\defop = \relax + \let\defopt = \relax + \let\defspec = \relax + \let\deftp = \relax + \let\deftypefn = \relax + \let\deftypefun = \relax + \let\deftypeivar = \relax + \let\deftypeop = \relax + \let\deftypevar = \relax + \let\deftypevr = \relax + \let\defun = \relax + \let\defvar = \relax + \let\defvr = \relax + \let\ref = \relax + \let\xref = \relax + \let\printindex = \relax + \let\pxref = \relax + \let\settitle = \relax + \let\setchapternewpage = \relax + \let\setchapterstyle = \relax + \let\everyheading = \relax + \let\evenheading = \relax + \let\oddheading = \relax + \let\everyfooting = \relax + \let\evenfooting = \relax + \let\oddfooting = \relax + \let\headings = \relax + \let\include = \relax + \let\lowersections = \relax + \let\down = \relax + \let\raisesections = \relax + \let\up = \relax + \let\set = \relax + \let\clear = \relax + \let\item = \relax +} + +% Ignore @ignore ... @end ignore. +% +\def\ignore{\doignore{ignore}} + +% Ignore @ifinfo, @ifhtml, @ifnottex, @html, @menu, and @direntry text. +% +\def\ifinfo{\doignore{ifinfo}} +\def\ifhtml{\doignore{ifhtml}} +\def\ifnottex{\doignore{ifnottex}} +\def\html{\doignore{html}} +\def\menu{\doignore{menu}} +\def\direntry{\doignore{direntry}} + +% @dircategory CATEGORY -- specify a category of the dir file +% which this file should belong to. Ignore this in TeX. +\let\dircategory = \comment + +% Ignore text until a line `@end #1'. +% +\def\doignore#1{\begingroup + % Don't complain about control sequences we have declared \outer. + \ignoresections + % + % Define a command to swallow text until we reach `@end #1'. + % This @ is a catcode 12 token (that is the normal catcode of @ in + % this texinfo.tex file). We change the catcode of @ below to match. + \long\def\doignoretext##1@end #1{\enddoignore}% + % + % Make sure that spaces turn into tokens that match what \doignoretext wants. + \catcode32 = 10 + % + % Ignore braces, too, so mismatched braces don't cause trouble. + \catcode`\{ = 9 + \catcode`\} = 9 + % + % We must not have @c interpreted as a control sequence. + \catcode`\@ = 12 + % + % Make the letter c a comment character so that the rest of the line + % will be ignored. This way, the document can have (for example) + % @c @end ifinfo + % and the @end ifinfo will be properly ignored. + % (We've just changed @ to catcode 12.) + \catcode`\c = 14 + % + % And now expand that command. + \doignoretext +} + +% What we do to finish off ignored text. +% +\def\enddoignore{\endgroup\ignorespaces}% + +\newif\ifwarnedobs\warnedobsfalse +\def\obstexwarn{% + \ifwarnedobs\relax\else + % We need to warn folks that they may have trouble with TeX 3.0. + % This uses \immediate\write16 rather than \message to get newlines. + \immediate\write16{} + \immediate\write16{WARNING: for users of Unix TeX 3.0!} + \immediate\write16{This manual trips a bug in TeX version 3.0 (tex hangs).} + \immediate\write16{If you are running another version of TeX, relax.} + \immediate\write16{If you are running Unix TeX 3.0, kill this TeX process.} + \immediate\write16{ Then upgrade your TeX installation if you can.} + \immediate\write16{ (See ftp://ftp.gnu.org/pub/gnu/TeX.README.)} + \immediate\write16{If you are stuck with version 3.0, run the} + \immediate\write16{ script ``tex3patch'' from the Texinfo distribution} + \immediate\write16{ to use a workaround.} + \immediate\write16{} + \global\warnedobstrue + \fi +} + +% **In TeX 3.0, setting text in \nullfont hangs tex. For a +% workaround (which requires the file ``dummy.tfm'' to be installed), +% uncomment the following line: +%%%%%\font\nullfont=dummy\let\obstexwarn=\relax + +% Ignore text, except that we keep track of conditional commands for +% purposes of nesting, up to an `@end #1' command. +% +\def\nestedignore#1{% + \obstexwarn + % We must actually expand the ignored text to look for the @end + % command, so that nested ignore constructs work. Thus, we put the + % text into a \vbox and then do nothing with the result. To minimize + % the change of memory overflow, we follow the approach outlined on + % page 401 of the TeXbook: make the current font be a dummy font. + % + \setbox0 = \vbox\bgroup + % Don't complain about control sequences we have declared \outer. + \ignoresections + % + % Define `@end #1' to end the box, which will in turn undefine the + % @end command again. + \expandafter\def\csname E#1\endcsname{\egroup\ignorespaces}% + % + % We are going to be parsing Texinfo commands. Most cause no + % trouble when they are used incorrectly, but some commands do + % complicated argument parsing or otherwise get confused, so we + % undefine them. + % + % We can't do anything about stray @-signs, unfortunately; + % they'll produce `undefined control sequence' errors. + \ignoremorecommands + % + % Set the current font to be \nullfont, a TeX primitive, and define + % all the font commands to also use \nullfont. We don't use + % dummy.tfm, as suggested in the TeXbook, because not all sites + % might have that installed. Therefore, math mode will still + % produce output, but that should be an extremely small amount of + % stuff compared to the main input. + % + \nullfont + \let\tenrm=\nullfont \let\tenit=\nullfont \let\tensl=\nullfont + \let\tenbf=\nullfont \let\tentt=\nullfont \let\smallcaps=\nullfont + \let\tensf=\nullfont + % Similarly for index fonts (mostly for their use in smallexample). + \let\smallrm=\nullfont \let\smallit=\nullfont \let\smallsl=\nullfont + \let\smallbf=\nullfont \let\smalltt=\nullfont \let\smallsc=\nullfont + \let\smallsf=\nullfont + % + % Don't complain when characters are missing from the fonts. + \tracinglostchars = 0 + % + % Don't bother to do space factor calculations. + \frenchspacing + % + % Don't report underfull hboxes. + \hbadness = 10000 + % + % Do minimal line-breaking. + \pretolerance = 10000 + % + % Do not execute instructions in @tex + \def\tex{\doignore{tex}}% + % Do not execute macro definitions. + % `c' is a comment character, so the word `macro' will get cut off. + \def\macro{\doignore{ma}}% +} + +% @set VAR sets the variable VAR to an empty value. +% @set VAR REST-OF-LINE sets VAR to the value REST-OF-LINE. +% +% Since we want to separate VAR from REST-OF-LINE (which might be +% empty), we can't just use \parsearg; we have to insert a space of our +% own to delimit the rest of the line, and then take it out again if we +% didn't need it. Make sure the catcode of space is correct to avoid +% losing inside @example, for instance. +% +\def\set{\begingroup\catcode` =10 + \catcode`\-=12 \catcode`\_=12 % Allow - and _ in VAR. + \parsearg\setxxx} +\def\setxxx#1{\setyyy#1 \endsetyyy} +\def\setyyy#1 #2\endsetyyy{% + \def\temp{#2}% + \ifx\temp\empty \global\expandafter\let\csname SET#1\endcsname = \empty + \else \setzzz{#1}#2\endsetzzz % Remove the trailing space \setxxx inserted. + \fi + \endgroup +} +% Can't use \xdef to pre-expand #2 and save some time, since \temp or +% \next or other control sequences that we've defined might get us into +% an infinite loop. Consider `@set foo @cite{bar}'. +\def\setzzz#1#2 \endsetzzz{\expandafter\gdef\csname SET#1\endcsname{#2}} + +% @clear VAR clears (i.e., unsets) the variable VAR. +% +\def\clear{\parsearg\clearxxx} +\def\clearxxx#1{\global\expandafter\let\csname SET#1\endcsname=\relax} -%% 2/1/96, to allow fractions to be given with more than one digit. -\def\pickupwholefraction#1 {\global\advance\colcount by1 % -\expandafter\xdef\csname col\the\colcount\endcsname{.#1\hsize}% -\setuptable} +% @value{foo} gets the text saved in variable foo. +{ + \catcode`\_ = \active + % + % We might end up with active _ or - characters in the argument if + % we're called from @code, as @code{@value{foo-bar_}}. So \let any + % such active characters to their normal equivalents. + \gdef\value{\begingroup + \catcode`\-=12 \catcode`\_=12 + \indexbreaks \let_\normalunderscore + \valuexxx} +} +\def\valuexxx#1{\expandablevalue{#1}\endgroup} + +% We have this subroutine so that we can handle at least some @value's +% properly in indexes (we \let\value to this in \indexdummies). Ones +% whose names contain - or _ still won't work, but we can't do anything +% about that. The command has to be fully expandable, since the result +% winds up in the index file. This means that if the variable's value +% contains other Texinfo commands, it's almost certain it will fail +% (although perhaps we could fix that with sufficient work to do a +% one-level expansion on the result, instead of complete). +% +\def\expandablevalue#1{% + \expandafter\ifx\csname SET#1\endcsname\relax + {[No value for ``#1'']}% + \else + \csname SET#1\endcsname + \fi +} -\newcount\colcount -\def\setuptable#1{\def\firstarg{#1}% -\ifx\firstarg\xendsetuptable\let\go\relax% -\else - \ifx\firstarg\xcolumnfractions\global\setpercenttrue% +% @ifset VAR ... @end ifset reads the `...' iff VAR has been defined +% with @set. +% +\def\ifset{\parsearg\ifsetxxx} +\def\ifsetxxx #1{% + \expandafter\ifx\csname SET#1\endcsname\relax + \expandafter\ifsetfail \else - \ifsetpercent - \let\go\pickupwholefraction % In this case arg of setuptable - % is the decimal point before the - % number given in percent of hsize. - % We don't need this so we don't use it. - \else - \global\advance\colcount by1 - \setbox0=\hbox{#1}% - \expandafter\xdef\csname col\the\colcount\endcsname{\the\wd0}% - \fi% - \fi% -\ifx\go\pickupwholefraction\else\let\go\setuptable\fi% -\fi\go} + \expandafter\ifsetsucceed + \fi +} +\def\ifsetsucceed{\conditionalsucceed{ifset}} +\def\ifsetfail{\nestedignore{ifset}} +\defineunmatchedend{ifset} -%%%% -% multitable syntax -\def\tab{&\hskip1sp\relax} % 2/2/96 - % tiny skip here makes sure this column space is - % maintained, even if it is never used. +% @ifclear VAR ... @end ifclear reads the `...' iff VAR has never been +% defined with @set, or has been undefined with @clear. +% +\def\ifclear{\parsearg\ifclearxxx} +\def\ifclearxxx #1{% + \expandafter\ifx\csname SET#1\endcsname\relax + \expandafter\ifclearsucceed + \else + \expandafter\ifclearfail + \fi +} +\def\ifclearsucceed{\conditionalsucceed{ifclear}} +\def\ifclearfail{\nestedignore{ifclear}} +\defineunmatchedend{ifclear} +% @iftex, @ifnothtml, @ifnotinfo always succeed; we read the text +% following, through the first @end iftex (etc.). Make `@end iftex' +% (etc.) valid only after an @iftex. +% +\def\iftex{\conditionalsucceed{iftex}} +\def\ifnothtml{\conditionalsucceed{ifnothtml}} +\def\ifnotinfo{\conditionalsucceed{ifnotinfo}} +\defineunmatchedend{iftex} +\defineunmatchedend{ifnothtml} +\defineunmatchedend{ifnotinfo} -%%%% -% @multitable ... @end multitable definitions: +% We can't just want to start a group at @iftex (for example) and end it +% at @end iftex, since then @set commands inside the conditional have no +% effect (they'd get reverted at the end of the group). So we must +% define \Eiftex to redefine itself to be its previous value. (We can't +% just define it to fail again with an ``unmatched end'' error, since +% the @ifset might be nested.) +% +\def\conditionalsucceed#1{% + \edef\temp{% + % Remember the current value of \E#1. + \let\nece{prevE#1} = \nece{E#1}% + % + % At the `@end #1', redefine \E#1 to be its previous value. + \def\nece{E#1}{\let\nece{E#1} = \nece{prevE#1}}% + }% + \temp +} -\def\multitable{\parsearg\dotable} +% We need to expand lots of \csname's, but we don't want to expand the +% control sequences after we've constructed them. +% +\def\nece#1{\expandafter\noexpand\csname#1\endcsname} + +% @defininfoenclose. +\let\definfoenclose=\comment -\def\dotable#1{\bgroup -\let\item\cr -\tolerance=9500 -\hbadness=9500 -\setmultitablespacing -\parskip=\multitableparskip -\parindent=\multitableparindent -\overfullrule=0pt -\global\colcount=0\relax% -\def\Emultitable{\global\setpercentfalse\global\everycr{}\cr\egroup\egroup}% - % To parse everything between @multitable and @item : -\setuptable#1 \endsetuptable - % Need to reset this to 0 after \setuptable. -\global\colcount=0\relax% - % - % This preamble sets up a generic column definition, which will - % be used as many times as user calls for columns. - % \vtop will set a single line and will also let text wrap and - % continue for many paragraphs if desired. -\halign\bgroup&\global\advance\colcount by 1\relax% -\multistrut\vtop{\hsize=\expandafter\csname col\the\colcount\endcsname - % In order to keep entries from bumping into each other - % we will add a \leftskip of \multitablecolspace to all columns after - % the first one. - % If a template has been used, we will add \multitablecolspace - % to the width of each template entry. - % If user has set preamble in terms of percent of \hsize - % we will use that dimension as the width of the column, and - % the \leftskip will keep entries from bumping into each other. - % Table will start at left margin and final column will justify at - % right margin. -\ifnum\colcount=1 -\else - \ifsetpercent - \else - % If user has set preamble in terms of percent of \hsize - % we will advance \hsize by \multitablecolspace - \advance\hsize by \multitablecolspace - \fi - % In either case we will make \leftskip=\multitablecolspace: -\leftskip=\multitablecolspace -\fi -\noindent##}\cr% - % \everycr will reset column counter, \colcount, at the end of - % each line. Every column entry will cause \colcount to advance by one. - % The table preamble - % looks at the current \colcount to find the correct column width. -\global\everycr{\noalign{% -\filbreak%% keeps underfull box messages off when table breaks over pages. -\global\colcount=0\relax}} -} -\def\setmultitablespacing{% test to see if user has set \multitablelinespace. -% If so, do nothing. If not, give it an appropriate dimension based on -% current baselineskip. -\setbox0=\vbox{Xy} -\ifdim\multitablelinespace=0pt -%% strut to put in table in case some entry doesn't have descenders, -%% to keep lines equally spaced -\gdef\multistrut{\vrule height\ht0 depth\dp0 width0pt\relax} -%% Test to see if parskip is larger than space between lines of -%% table. If not, do nothing. -%% If so, set to same dimension as multitablelinespace. -\else -\gdef\multistrut{\vrule height\multitablelinespace depth\dp0 -width0pt\relax} \fi -\ifdim\multitableparskip>\multitablelinespace -\global\multitableparskip=\multitablelinespace -\global\advance\multitableparskip-7pt %% to keep parskip somewhat smaller - %% than skip between lines in the table. -\fi% -\ifdim\multitableparskip=0pt -\global\multitableparskip=\multitablelinespace -\global\advance\multitableparskip-7pt %% to keep parskip somewhat smaller - %% than skip between lines in the table. -\fi} \message{indexing,} % Index generation facilities @@ -2005,15 +2573,17 @@ width0pt\relax} \fi % It automatically defines \fooindex such that % \fooindex ...rest of line... puts an entry in the index foo. % It also defines \fooindfile to be the number of the output channel for -% the file that accumulates this index. The file's extension is foo. +% the file that accumulates this index. The file's extension is foo. % The name of an index should be no more than 2 characters long % for the sake of vms. - -\def\newindex #1{ -\expandafter\newwrite \csname#1indfile\endcsname% Define number for output file -\openout \csname#1indfile\endcsname \jobname.#1 % Open the file -\expandafter\xdef\csname#1index\endcsname{% % Define \xxxindex -\noexpand\doindex {#1}} +% +\def\newindex#1{% + \iflinks + \expandafter\newwrite \csname#1indfile\endcsname + \openout \csname#1indfile\endcsname \jobname.#1 % Open the file + \fi + \expandafter\xdef\csname#1index\endcsname{% % Define @#1index + \noexpand\doindex{#1}} } % @defindex foo == \newindex{foo} @@ -2022,31 +2592,37 @@ width0pt\relax} \fi % Define @defcodeindex, like @defindex except put all entries in @code. -\def\newcodeindex #1{ -\expandafter\newwrite \csname#1indfile\endcsname% Define number for output file -\openout \csname#1indfile\endcsname \jobname.#1 % Open the file -\expandafter\xdef\csname#1index\endcsname{% % Define \xxxindex -\noexpand\docodeindex {#1}} +\def\newcodeindex#1{% + \iflinks + \expandafter\newwrite \csname#1indfile\endcsname + \openout \csname#1indfile\endcsname \jobname.#1 + \fi + \expandafter\xdef\csname#1index\endcsname{% + \noexpand\docodeindex{#1}} } \def\defcodeindex{\parsearg\newcodeindex} % @synindex foo bar makes index foo feed into index bar. % Do this instead of @defindex foo if you don't want it as a separate index. -\def\synindex #1 #2 {% -\expandafter\let\expandafter\synindexfoo\expandafter=\csname#2indfile\endcsname -\expandafter\let\csname#1indfile\endcsname=\synindexfoo -\expandafter\xdef\csname#1index\endcsname{% % Define \xxxindex -\noexpand\doindex {#2}}% +% The \closeout helps reduce unnecessary open files; the limit on the +% Acorn RISC OS is a mere 16 files. +\def\synindex#1 #2 {% + \expandafter\let\expandafter\synindexfoo\expandafter=\csname#2indfile\endcsname + \expandafter\closeout\csname#1indfile\endcsname + \expandafter\let\csname#1indfile\endcsname=\synindexfoo + \expandafter\xdef\csname#1index\endcsname{% define \xxxindex + \noexpand\doindex{#2}}% } % @syncodeindex foo bar similar, but put all entries made for index foo % inside @code. -\def\syncodeindex #1 #2 {% -\expandafter\let\expandafter\synindexfoo\expandafter=\csname#2indfile\endcsname -\expandafter\let\csname#1indfile\endcsname=\synindexfoo -\expandafter\xdef\csname#1index\endcsname{% % Define \xxxindex -\noexpand\docodeindex {#2}}% +\def\syncodeindex#1 #2 {% + \expandafter\let\expandafter\synindexfoo\expandafter=\csname#2indfile\endcsname + \expandafter\closeout\csname#1indfile\endcsname + \expandafter\let\csname#1indfile\endcsname=\synindexfoo + \expandafter\xdef\csname#1index\endcsname{% define \xxxindex + \noexpand\docodeindex{#2}}% } % Define \doindex, the driver for all \fooindex macros. @@ -2067,6 +2643,7 @@ width0pt\relax} \fi \def\singlecodeindexer #1{\doind{\indexname}{\code{#1}}} \def\indexdummies{% +\def\ { }% % Take care of the plain tex accent commands. \def\"{\realbackslash "}% \def\`{\realbackslash `}% @@ -2093,27 +2670,48 @@ width0pt\relax} \fi \def\L{\realbackslash L}% \def\ss{\realbackslash ss}% % Take care of texinfo commands likely to appear in an index entry. +% (Must be a way to avoid doing expansion at all, and thus not have to +% laboriously list every single command here.) +\def\@{@}% will be @@ when we switch to @ as escape char. +% Need these in case \tex is in effect and \{ is a \delimiter again. +% But can't use \lbracecmd and \rbracecmd because texindex assumes +% braces and backslashes are used only as delimiters. +\let\{ = \mylbrace +\let\} = \myrbrace \def\_{{\realbackslash _}}% \def\w{\realbackslash w }% \def\bf{\realbackslash bf }% -\def\rm{\realbackslash rm }% +%\def\rm{\realbackslash rm }% \def\sl{\realbackslash sl }% \def\sf{\realbackslash sf}% \def\tt{\realbackslash tt}% \def\gtr{\realbackslash gtr}% \def\less{\realbackslash less}% \def\hat{\realbackslash hat}% -\def\char{\realbackslash char}% \def\TeX{\realbackslash TeX}% \def\dots{\realbackslash dots }% -\def\copyright{\realbackslash copyright }% +\def\result{\realbackslash result}% +\def\equiv{\realbackslash equiv}% +\def\expansion{\realbackslash expansion}% +\def\print{\realbackslash print}% +\def\error{\realbackslash error}% +\def\point{\realbackslash point}% +\def\copyright{\realbackslash copyright}% \def\tclose##1{\realbackslash tclose {##1}}% \def\code##1{\realbackslash code {##1}}% +\def\uref##1{\realbackslash uref {##1}}% +\def\url##1{\realbackslash url {##1}}% +\def\env##1{\realbackslash env {##1}}% +\def\command##1{\realbackslash command {##1}}% +\def\option##1{\realbackslash option {##1}}% +\def\dotless##1{\realbackslash dotless {##1}}% \def\samp##1{\realbackslash samp {##1}}% -\def\t##1{\realbackslash r {##1}}% +\def\,##1{\realbackslash ,{##1}}% +\def\t##1{\realbackslash t {##1}}% \def\r##1{\realbackslash r {##1}}% \def\i##1{\realbackslash i {##1}}% \def\b##1{\realbackslash b {##1}}% +\def\sc##1{\realbackslash sc {##1}}% \def\cite##1{\realbackslash cite {##1}}% \def\key##1{\realbackslash key {##1}}% \def\file##1{\realbackslash file {##1}}% @@ -2121,7 +2719,16 @@ width0pt\relax} \fi \def\kbd##1{\realbackslash kbd {##1}}% \def\dfn##1{\realbackslash dfn {##1}}% \def\emph##1{\realbackslash emph {##1}}% +\def\acronym##1{\realbackslash acronym {##1}}% +% +% Handle some cases of @value -- where the variable name does not +% contain - or _, and the value does not contain any +% (non-fully-expandable) commands. +\let\value = \expandablevalue +% \unsepspaces +% Turn off macro expansion +\turnoffmacros } % If an index command is used in an @example environment, any spaces @@ -2138,6 +2745,7 @@ width0pt\relax} \fi \def\indexnofonts{% % Just ignore accents. +\let\,=\indexdummyfont \let\"=\indexdummyfont \let\`=\indexdummyfont \let\'=\indexdummyfont @@ -2150,6 +2758,7 @@ width0pt\relax} \fi \let\u=\indexdummyfont \let\v=\indexdummyfont \let\H=\indexdummyfont +\let\dotless=\indexdummyfont % Take care of the plain tex special European modified letters. \def\oe{oe}% \def\ae{ae}% @@ -2176,6 +2785,12 @@ width0pt\relax} \fi %\let\tt=\indexdummyfont \let\tclose=\indexdummyfont \let\code=\indexdummyfont +\let\url=\indexdummyfont +\let\uref=\indexdummyfont +\let\env=\indexdummyfont +\let\acronym=\indexdummyfont +\let\command=\indexdummyfont +\let\option=\indexdummyfont \let\file=\indexdummyfont \let\samp=\indexdummyfont \let\kbd=\indexdummyfont @@ -2183,6 +2798,7 @@ width0pt\relax} \fi \let\var=\indexdummyfont \let\TeX=\indexdummytex \let\dots=\indexdummydots +\def\@{@}% } % To define \realbackslash, we must make \ not be an escape. @@ -2190,57 +2806,102 @@ width0pt\relax} \fi % so we do not become unable to do a definition. {\catcode`\@=0 \catcode`\\=\other -@gdef@realbackslash{\}} + @gdef@realbackslash{\}} \let\indexbackslash=0 %overridden during \printindex. +\let\SETmarginindex=\relax % put index entries in margin (undocumented)? -\let\SETmarginindex=\relax %initialize! -% workhorse for all \fooindexes -% #1 is name of index, #2 is stuff to put there -\def\doind #1#2{% -% Put the index entry in the margin if desired. -\ifx\SETmarginindex\relax\else% -\insert\margin{\hbox{\vrule height8pt depth3pt width0pt #2}}% -\fi% -{\count10=\lastpenalty % -{\indexdummies % Must do this here, since \bf, etc expand at this stage -\escapechar=`\\% -{\let\folio=0% Expand all macros now EXCEPT \folio -\def\rawbackslashxx{\indexbackslash}% \indexbackslash isn't defined now -% so it will be output as is; and it will print as backslash in the indx. -% -% Now process the index-string once, with all font commands turned off, -% to get the string to sort the index by. -{\indexnofonts -\xdef\temp1{#2}% -}% -% Now produce the complete index entry. We process the index-string again, -% this time with font commands expanded, to get what to print in the index. -\edef\temp{% -\write \csname#1indfile\endcsname{% -\realbackslash entry {\temp1}{\folio}{#2}}}% -\temp }% -}\penalty\count10}} - -\def\dosubind #1#2#3{% -{\count10=\lastpenalty % -{\indexdummies % Must do this here, since \bf, etc expand at this stage -\escapechar=`\\% -{\let\folio=0% -\def\rawbackslashxx{\indexbackslash}% -% -% Now process the index-string once, with all font commands turned off, -% to get the string to sort the index by. -{\indexnofonts -\xdef\temp1{#2 #3}% -}% -% Now produce the complete index entry. We process the index-string again, -% this time with font commands expanded, to get what to print in the index. -\edef\temp{% -\write \csname#1indfile\endcsname{% -\realbackslash entry {\temp1}{\folio}{#2}{#3}}}% -\temp }% -}\penalty\count10}} +% For \ifx comparisons. +\def\emptymacro{\empty} + +% Most index entries go through here, but \dosubind is the general case. +% +\def\doind#1#2{\dosubind{#1}{#2}\empty} + +% Workhorse for all \fooindexes. +% #1 is name of index, #2 is stuff to put there, #3 is subentry -- +% \empty if called from \doind, as we usually are. The main exception +% is with defuns, which call us directly. +% +\def\dosubind#1#2#3{% + % Put the index entry in the margin if desired. + \ifx\SETmarginindex\relax\else + \insert\margin{\hbox{\vrule height8pt depth3pt width0pt #2}}% + \fi + {% + \count255=\lastpenalty + {% + \indexdummies % Must do this here, since \bf, etc expand at this stage + \escapechar=`\\ + {% + \let\folio = 0% We will expand all macros now EXCEPT \folio. + \def\rawbackslashxx{\indexbackslash}% \indexbackslash isn't defined now + % so it will be output as is; and it will print as backslash. + % + \def\thirdarg{#3}% + % + % If third arg is present, precede it with space in sort key. + \ifx\thirdarg\emptymacro + \let\subentry = \empty + \else + \def\subentry{ #3}% + \fi + % + % First process the index entry with all font commands turned + % off to get the string to sort by. + {\indexnofonts \xdef\indexsorttmp{#2\subentry}}% + % + % Now the real index entry with the fonts. + \toks0 = {#2}% + % + % If third (subentry) arg is present, add it to the index + % string. And include a space. + \ifx\thirdarg\emptymacro \else + \toks0 = \expandafter{\the\toks0 \space #3}% + \fi + % + % Set up the complete index entry, with both the sort key + % and the original text, including any font commands. We write + % three arguments to \entry to the .?? file, texindex reduces to + % two when writing the .??s sorted result. + \edef\temp{% + \write\csname#1indfile\endcsname{% + \realbackslash entry{\indexsorttmp}{\folio}{\the\toks0}}% + }% + % + % If a skip is the last thing on the list now, preserve it + % by backing up by \lastskip, doing the \write, then inserting + % the skip again. Otherwise, the whatsit generated by the + % \write will make \lastskip zero. The result is that sequences + % like this: + % @end defun + % @tindex whatever + % @defun ... + % will have extra space inserted, because the \medbreak in the + % start of the @defun won't see the skip inserted by the @end of + % the previous defun. + % + % But don't do any of this if we're not in vertical mode. We + % don't want to do a \vskip and prematurely end a paragraph. + % + % Avoid page breaks due to these extra skips, too. + % + \iflinks + \ifvmode + \skip0 = \lastskip + \ifdim\lastskip = 0pt \else \nobreak\vskip-\lastskip \fi + \fi + % + \temp % do the write + % + % + \ifvmode \ifdim\skip0 = 0pt \else \nobreak\vskip\skip0 \fi \fi + \fi + }% + }% + \penalty\count255 + }% +} % The index entry written in the file actually looks like % \entry {sortstring}{page}{topic} @@ -2274,78 +2935,85 @@ width0pt\relax} \fi % Define the macros used in formatting output of the sorted index material. -% This is what you call to cause a particular index to get printed. -% Write -% @unnumbered Function Index -% @printindex fn - +% @printindex causes a particular index (the ??s file) to get printed. +% It does not print any chapter heading (usually an @unnumbered). +% \def\printindex{\parsearg\doprintindex} - -\def\doprintindex#1{% - \tex - \dobreak \chapheadingskip {10000} - \catcode`\%=\other\catcode`\&=\other\catcode`\#=\other - \catcode`\$=\other - \catcode`\~=\other - \indexbreaks +\def\doprintindex#1{\begingroup + \dobreak \chapheadingskip{10000}% % - % The following don't help, since the chars were translated - % when the raw index was written, and their fonts were discarded - % due to \indexnofonts. - %\catcode`\"=\active - %\catcode`\^=\active - %\catcode`\_=\active - %\catcode`\|=\active - %\catcode`\<=\active - %\catcode`\>=\active - % % - \def\indexbackslash{\rawbackslashxx} - \indexfonts\rm \tolerance=9500 \advance\baselineskip -1pt - \begindoublecolumns + \smallfonts \rm + \tolerance = 9500 + \indexbreaks % % See if the index file exists and is nonempty. + % Change catcode of @ here so that if the index file contains + % \initial {@} + % as its first line, TeX doesn't complain about mismatched braces + % (because it thinks @} is a control sequence). + \catcode`\@ = 11 \openin 1 \jobname.#1s \ifeof 1 % \enddoublecolumns gets confused if there is no text in the index, % and it loses the chapter title and the aux file entries for the % index. The easiest way to prevent this problem is to make sure % there is some text. - (Index is nonexistent) - \else + \putwordIndexNonexistent + \else % % If the index file exists but is empty, then \openin leaves \ifeof % false. We have to make TeX try to read something from the file, so % it can discover if there is anything in it. \read 1 to \temp \ifeof 1 - (Index is empty) + \putwordIndexIsEmpty \else + % Index files are almost Texinfo source, but we use \ as the escape + % character. It would be better to use @, but that's too big a change + % to make right now. + \def\indexbackslash{\rawbackslashxx}% + \catcode`\\ = 0 + \escapechar = `\\ + \begindoublecolumns \input \jobname.#1s + \enddoublecolumns \fi \fi \closein 1 - \enddoublecolumns - \Etex -} +\endgroup} % These macros are used by the sorted index file itself. % Change them to control the appearance of the index. -% Same as \bigskipamount except no shrink. -% \balancecolumns gets confused if there is any shrink. -\newskip\initialskipamount \initialskipamount 12pt plus4pt - -\def\initial #1{% -{\let\tentt=\sectt \let\tt=\sectt \let\sf=\sectt -\ifdim\lastskip<\initialskipamount -\removelastskip \penalty-200 \vskip \initialskipamount\fi -\line{\secbf#1\hfill}\kern 2pt\penalty10000}} +\def\initial#1{{% + % Some minor font changes for the special characters. + \let\tentt=\sectt \let\tt=\sectt \let\sf=\sectt + % + % Remove any glue we may have, we'll be inserting our own. + \removelastskip + % + % We like breaks before the index initials, so insert a bonus. + \penalty -300 + % + % Typeset the initial. Making this add up to a whole number of + % baselineskips increases the chance of the dots lining up from column + % to column. It still won't often be perfect, because of the stretch + % we need before each entry, but it's better. + % + % No shrink because it confuses \balancecolumns. + \vskip 1.67\baselineskip plus .5\baselineskip + \leftline{\secbf #1}% + \vskip .33\baselineskip plus .1\baselineskip + % + % Do our best not to break after the initial. + \nobreak +}} % This typesets a paragraph consisting of #1, dot leaders, and then #2 % flush to the right margin. It is used for index and table of contents % entries. The paragraph is indented by \leftskip. % -\def\entry #1#2{\begingroup +\def\entry#1#2{\begingroup % % Start a new paragraph if necessary, so our assignments below can't % affect previous text. @@ -2368,12 +3036,15 @@ width0pt\relax} \fi % % \hangafter is reset to 1 (which is the value we want) at the start % of each paragraph, so we need not do anything with that. - \hangindent=2em + \hangindent = 2em % % When the entry text needs to be broken, just fill out the first line % with blank space. \rightskip = 0pt plus1fil % + % A bit of stretch before each entry for the benefit of balancing columns. + \vskip 0pt plus1pt + % % Start a ``paragraph'' for the index entry so the line breaking % parameters we've set above will have an effect. \noindent @@ -2398,7 +3069,11 @@ width0pt\relax} \fi % The `\ ' here is removed by the implicit \unskip that TeX does as % part of (the primitive) \par. Without it, a spurious underfull % \hbox ensues. - \ #2% The page number ends the paragraph. + \ifpdf + \pdfgettoks#2.\ \the\toksA % The page number ends the paragraph. + \else + \ #2% The page number ends the paragraph. + \fi \fi% \par \endgroup} @@ -2417,34 +3092,51 @@ width0pt\relax} \fi \noindent\hskip\secondaryindent\hbox{#1}\indexdotfill #2\par }} -%% Define two-column mode, which is used in indexes. -%% Adapted from the TeXbook, page 416. -\catcode `\@=11 +% Define two-column mode, which we use to typeset indexes. +% Adapted from the TeXbook, page 416, which is to say, +% the manmac.tex format used to print the TeXbook itself. +\catcode`\@=11 \newbox\partialpage - \newdimen\doublecolumnhsize -\def\begindoublecolumns{\begingroup +\def\begindoublecolumns{\begingroup % ended by \enddoublecolumns % Grab any single-column material above us. - \output = {\global\setbox\partialpage - =\vbox{\unvbox255\kern -\topskip \kern \baselineskip}}% - \eject + \output = {% + % + % Here is a possibility not foreseen in manmac: if we accumulate a + % whole lot of material, we might end up calling this \output + % routine twice in a row (see the doublecol-lose test, which is + % essentially a couple of indexes with @setchapternewpage off). In + % that case we just ship out what is in \partialpage with the normal + % output routine. Generally, \partialpage will be empty when this + % runs and this will be a no-op. See the indexspread.tex test case. + \ifvoid\partialpage \else + \onepageout{\pagecontents\partialpage}% + \fi + % + \global\setbox\partialpage = \vbox{% + % Unvbox the main output page. + \unvbox\PAGE + \kern-\topskip \kern\baselineskip + }% + }% + \eject % run that output routine to set \partialpage % - % Now switch to the double-column output routine. - \output={\doublecolumnout}% + % Use the double-column output routine for subsequent pages. + \output = {\doublecolumnout}% % % Change the page size parameters. We could do this once outside this % routine, in each of @smallbook, @afourpaper, and the default 8.5x11 % format, but then we repeat the same computation. Repeating a couple % of assignments once per index is clearly meaningless for the - % execution time, so we may as well do it once. + % execution time, so we may as well do it in one place. % % First we halve the line length, less a little for the gutter between % the columns. We compute the gutter based on the line length, so it % changes automatically with the paper format. The magic constant - % below is chosen so that the gutter has the same value (well, +- < - % 1pt) as it did when we hard-coded it. + % below is chosen so that the gutter has the same value (well, +-<1pt) + % as it did when we hard-coded it. % % We put the result in a separate register, \doublecolumhsize, so we % can restore it in \pagesofar, after \hsize itself has (potentially) @@ -2457,109 +3149,140 @@ width0pt\relax} \fi % % Double the \vsize as well. (We don't need a separate register here, % since nobody clobbers \vsize.) + \advance\vsize by -\ht\partialpage \vsize = 2\vsize - \doublecolumnpagegoal } -\def\enddoublecolumns{\eject \endgroup \pagegoal=\vsize \unvbox\partialpage} - -\def\doublecolumnsplit{\splittopskip=\topskip \splitmaxdepth=\maxdepth - \global\dimen@=\pageheight \global\advance\dimen@ by-\ht\partialpage - \global\setbox1=\vsplit255 to\dimen@ \global\setbox0=\vbox{\unvbox1} - \global\setbox3=\vsplit255 to\dimen@ \global\setbox2=\vbox{\unvbox3} - \ifdim\ht0>\dimen@ \setbox255=\vbox{\unvbox0\unvbox2} \global\setbox255=\copy5 \fi - \ifdim\ht2>\dimen@ \setbox255=\vbox{\unvbox0\unvbox2} \global\setbox255=\copy5 \fi +% The double-column output routine for all double-column pages except +% the last. +% +\def\doublecolumnout{% + \splittopskip=\topskip \splitmaxdepth=\maxdepth + % Get the available space for the double columns -- the normal + % (undoubled) page height minus any material left over from the + % previous page. + \dimen@ = \vsize + \divide\dimen@ by 2 + % + % box0 will be the left-hand column, box2 the right. + \setbox0=\vsplit255 to\dimen@ \setbox2=\vsplit255 to\dimen@ + \onepageout\pagesofar + \unvbox255 + \penalty\outputpenalty } -\def\doublecolumnpagegoal{% - \dimen@=\vsize \advance\dimen@ by-2\ht\partialpage \global\pagegoal=\dimen@ +\def\pagesofar{% + % Re-output the contents of the output page -- any previous material, + % followed by the two boxes we just split, in box0 and box2. + \unvbox\partialpage + % + \hsize = \doublecolumnhsize + \wd0=\hsize \wd2=\hsize + \hbox to\pagewidth{\box0\hfil\box2}% } -\def\pagesofar{\unvbox\partialpage % - \hsize=\doublecolumnhsize % have to restore this since output routine - \wd0=\hsize \wd2=\hsize \hbox to\pagewidth{\box0\hfil\box2}} -\def\doublecolumnout{% - \setbox5=\copy255 - {\vbadness=10000 \doublecolumnsplit} - \ifvbox255 - \setbox0=\vtop to\dimen@{\unvbox0} - \setbox2=\vtop to\dimen@{\unvbox2} - \onepageout\pagesofar \unvbox255 \penalty\outputpenalty - \else - \setbox0=\vbox{\unvbox5} - \ifvbox0 - \dimen@=\ht0 \advance\dimen@ by\topskip \advance\dimen@ by-\baselineskip - \divide\dimen@ by2 \splittopskip=\topskip \splitmaxdepth=\maxdepth - {\vbadness=10000 - \loop \global\setbox5=\copy0 - \setbox1=\vsplit5 to\dimen@ - \setbox3=\vsplit5 to\dimen@ - \ifvbox5 \global\advance\dimen@ by1pt \repeat - \setbox0=\vbox to\dimen@{\unvbox1} - \setbox2=\vbox to\dimen@{\unvbox3} - \global\setbox\partialpage=\vbox{\pagesofar} - \doublecolumnpagegoal - } - \fi - \fi +\def\enddoublecolumns{% + \output = {% + % Split the last of the double-column material. Leave it on the + % current page, no automatic page break. + \balancecolumns + % + % If we end up splitting too much material for the current page, + % though, there will be another page break right after this \output + % invocation ends. Having called \balancecolumns once, we do not + % want to call it again. Therefore, reset \output to its normal + % definition right away. (We hope \balancecolumns will never be + % called on to balance too much material, but if it is, this makes + % the output somewhat more palatable.) + \global\output = {\onepageout{\pagecontents\PAGE}}% + }% + \eject + \endgroup % started in \begindoublecolumns + % + % \pagegoal was set to the doubled \vsize above, since we restarted + % the current page. We're now back to normal single-column + % typesetting, so reset \pagegoal to the normal \vsize (after the + % \endgroup where \vsize got restored). + \pagegoal = \vsize +} +\def\balancecolumns{% + % Called at the end of the double column material. + \setbox0 = \vbox{\unvbox255}% like \box255 but more efficient, see p.120. + \dimen@ = \ht0 + \advance\dimen@ by \topskip + \advance\dimen@ by-\baselineskip + \divide\dimen@ by 2 % target to split to + %debug\message{final 2-column material height=\the\ht0, target=\the\dimen@.}% + \splittopskip = \topskip + % Loop until we get a decent breakpoint. + {% + \vbadness = 10000 + \loop + \global\setbox3 = \copy0 + \global\setbox1 = \vsplit3 to \dimen@ + \ifdim\ht3>\dimen@ + \global\advance\dimen@ by 1pt + \repeat + }% + %debug\message{split to \the\dimen@, column heights: \the\ht1, \the\ht3.}% + \setbox0=\vbox to\dimen@{\unvbox1}% + \setbox2=\vbox to\dimen@{\unvbox3}% + % + \pagesofar } +\catcode`\@ = \other + -\catcode `\@=\other \message{sectioning,} -% Define chapters, sections, etc. +% Chapters, sections, etc. -\newcount \chapno -\newcount \secno \secno=0 -\newcount \subsecno \subsecno=0 -\newcount \subsubsecno \subsubsecno=0 +\newcount\chapno +\newcount\secno \secno=0 +\newcount\subsecno \subsecno=0 +\newcount\subsubsecno \subsubsecno=0 % This counter is funny since it counts through charcodes of letters A, B, ... -\newcount \appendixno \appendixno = `\@ -\def\appendixletter{\char\the\appendixno} - -\newwrite \contentsfile -% This is called from \setfilename. -\def\opencontents{\openout \contentsfile = \jobname.toc} +\newcount\appendixno \appendixno = `\@ +% \def\appendixletter{\char\the\appendixno} +% We do the following for the sake of pdftex, which needs the actual +% letter in the expansion, not just typeset. +\def\appendixletter{% + \ifnum\appendixno=`A A% + \else\ifnum\appendixno=`B B% + \else\ifnum\appendixno=`C C% + \else\ifnum\appendixno=`D D% + \else\ifnum\appendixno=`E E% + \else\ifnum\appendixno=`F F% + \else\ifnum\appendixno=`G G% + \else\ifnum\appendixno=`H H% + \else\ifnum\appendixno=`I I% + \else\ifnum\appendixno=`J J% + \else\ifnum\appendixno=`K K% + \else\ifnum\appendixno=`L L% + \else\ifnum\appendixno=`M M% + \else\ifnum\appendixno=`N N% + \else\ifnum\appendixno=`O O% + \else\ifnum\appendixno=`P P% + \else\ifnum\appendixno=`Q Q% + \else\ifnum\appendixno=`R R% + \else\ifnum\appendixno=`S S% + \else\ifnum\appendixno=`T T% + \else\ifnum\appendixno=`U U% + \else\ifnum\appendixno=`V V% + \else\ifnum\appendixno=`W W% + \else\ifnum\appendixno=`X X% + \else\ifnum\appendixno=`Y Y% + \else\ifnum\appendixno=`Z Z% + % The \the is necessary, despite appearances, because \appendixletter is + % expanded while writing the .toc file. \char\appendixno is not + % expandable, thus it is written literally, thus all appendixes come out + % with the same letter (or @) in the toc without it. + \else\char\the\appendixno + \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi + \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi} % Each @chapter defines this as the name of the chapter. -% page headings and footings can use it. @section does likewise - -\def\thischapter{} \def\thissection{} -\def\seccheck#1{\if \pageno<0 % -\errmessage{@#1 not allowed after generating table of contents}\fi -% -} - -\def\chapternofonts{% -\let\rawbackslash=\relax% -\let\frenchspacing=\relax% -\def\result{\realbackslash result} -\def\equiv{\realbackslash equiv} -\def\expansion{\realbackslash expansion} -\def\print{\realbackslash print} -\def\TeX{\realbackslash TeX} -\def\dots{\realbackslash dots} -\def\copyright{\realbackslash copyright} -\def\tt{\realbackslash tt} -\def\bf{\realbackslash bf } -\def\w{\realbackslash w} -\def\less{\realbackslash less} -\def\gtr{\realbackslash gtr} -\def\hat{\realbackslash hat} -\def\char{\realbackslash char} -\def\tclose##1{\realbackslash tclose {##1}} -\def\code##1{\realbackslash code {##1}} -\def\samp##1{\realbackslash samp {##1}} -\def\r##1{\realbackslash r {##1}} -\def\b##1{\realbackslash b {##1}} -\def\key##1{\realbackslash key {##1}} -\def\file##1{\realbackslash file {##1}} -\def\kbd##1{\realbackslash kbd {##1}} -% These are redefined because @smartitalic wouldn't work inside xdef. -\def\i##1{\realbackslash i {##1}} -\def\cite##1{\realbackslash cite {##1}} -\def\var##1{\realbackslash var {##1}} -\def\emph##1{\realbackslash emph {##1}} -\def\dfn##1{\realbackslash dfn {##1}} -} +% page headings and footings can use it. @section does likewise. +\def\thischapter{} +\def\thissection{} \newcount\absseclevel % used to calculate proper heading level \newcount\secbase\secbase=0 % @raise/lowersections modify this count @@ -2631,57 +3354,59 @@ width0pt\relax} \fi \fi } - +% @chapter, @appendix, @unnumbered. \def\thischaptername{No Chapter Title} \outer\def\chapter{\parsearg\chapteryyy} \def\chapteryyy #1{\numhead0{#1}} % normally numhead0 calls chapterzzz -\def\chapterzzz #1{\seccheck{chapter}% +\def\chapterzzz #1{% \secno=0 \subsecno=0 \subsubsecno=0 -\global\advance \chapno by 1 \message{\putwordChapter \the\chapno}% +\global\advance \chapno by 1 \message{\putwordChapter\space \the\chapno}% \chapmacro {#1}{\the\chapno}% \gdef\thissection{#1}% \gdef\thischaptername{#1}% % We don't substitute the actual chapter name into \thischapter % because we don't want its macros evaluated now. \xdef\thischapter{\putwordChapter{} \the\chapno: \noexpand\thischaptername}% -{\chapternofonts% -\edef\temp{{\realbackslash chapentry {#1}{\the\chapno}{\noexpand\folio}}}% -\escapechar=`\\% -\write \contentsfile \temp % -\donoderef % +\toks0 = {#1}% +\edef\temp{\noexpand\writetocentry{\realbackslash chapentry{\the\toks0}% + {\the\chapno}}}% +\temp +\donoderef \global\let\section = \numberedsec \global\let\subsection = \numberedsubsec \global\let\subsubsection = \numberedsubsubsec -}} +} \outer\def\appendix{\parsearg\appendixyyy} \def\appendixyyy #1{\apphead0{#1}} % normally apphead0 calls appendixzzz -\def\appendixzzz #1{\seccheck{appendix}% +\def\appendixzzz #1{% \secno=0 \subsecno=0 \subsubsecno=0 -\global\advance \appendixno by 1 \message{Appendix \appendixletter}% +\global\advance \appendixno by 1 +\message{\putwordAppendix\space \appendixletter}% \chapmacro {#1}{\putwordAppendix{} \appendixletter}% \gdef\thissection{#1}% \gdef\thischaptername{#1}% \xdef\thischapter{\putwordAppendix{} \appendixletter: \noexpand\thischaptername}% -{\chapternofonts% -\edef\temp{{\realbackslash chapentry - {#1}{\putwordAppendix{} \appendixletter}{\noexpand\folio}}}% -\escapechar=`\\% -\write \contentsfile \temp % -\appendixnoderef % +\toks0 = {#1}% +\edef\temp{\noexpand\writetocentry{\realbackslash chapentry{\the\toks0}% + {\putwordAppendix{} \appendixletter}}}% +\temp +\appendixnoderef \global\let\section = \appendixsec \global\let\subsection = \appendixsubsec \global\let\subsubsection = \appendixsubsubsec -}} +} % @centerchap is like @unnumbered, but the heading is centered. \outer\def\centerchap{\parsearg\centerchapyyy} \def\centerchapyyy #1{{\let\unnumbchapmacro=\centerchapmacro \unnumberedyyy{#1}}} +% @top is like @unnumbered. \outer\def\top{\parsearg\unnumberedyyy} + \outer\def\unnumbered{\parsearg\unnumberedyyy} \def\unnumberedyyy #1{\unnmhead0{#1}} % normally unnmhead0 calls unnumberedzzz -\def\unnumberedzzz #1{\seccheck{unnumbered}% +\def\unnumberedzzz #1{% \secno=0 \subsecno=0 \subsubsecno=0 % % This used to be simply \message{#1}, but TeX fully expands the @@ -2693,146 +3418,139 @@ width0pt\relax} \fi % Anyway, we don't want the fully-expanded definition of @cite to appear % as a result of the \message, we just want `@cite' itself. We use % \the to achieve this: TeX expands \the only once, -% simply yielding the contents of the . +% simply yielding the contents of . (We also do this for +% the toc entries.) \toks0 = {#1}\message{(\the\toks0)}% % \unnumbchapmacro {#1}% \gdef\thischapter{#1}\gdef\thissection{#1}% -{\chapternofonts% -\edef\temp{{\realbackslash unnumbchapentry {#1}{\noexpand\folio}}}% -\escapechar=`\\% -\write \contentsfile \temp % -\unnumbnoderef % +\toks0 = {#1}% +\edef\temp{\noexpand\writetocentry{\realbackslash unnumbchapentry{\the\toks0}}}% +\temp +\unnumbnoderef \global\let\section = \unnumberedsec \global\let\subsection = \unnumberedsubsec \global\let\subsubsection = \unnumberedsubsubsec -}} +} +% Sections. \outer\def\numberedsec{\parsearg\secyyy} \def\secyyy #1{\numhead1{#1}} % normally calls seczzz -\def\seczzz #1{\seccheck{section}% +\def\seczzz #1{% \subsecno=0 \subsubsecno=0 \global\advance \secno by 1 % \gdef\thissection{#1}\secheading {#1}{\the\chapno}{\the\secno}% -{\chapternofonts% -\edef\temp{{\realbackslash secentry % -{#1}{\the\chapno}{\the\secno}{\noexpand\folio}}}% -\escapechar=`\\% -\write \contentsfile \temp % -\donoderef % -\penalty 10000 % -}} +\toks0 = {#1}% +\edef\temp{\noexpand\writetocentry{\realbackslash secentry{\the\toks0}% + {\the\chapno}{\the\secno}}}% +\temp +\donoderef +\nobreak +} \outer\def\appendixsection{\parsearg\appendixsecyyy} \outer\def\appendixsec{\parsearg\appendixsecyyy} \def\appendixsecyyy #1{\apphead1{#1}} % normally calls appendixsectionzzz -\def\appendixsectionzzz #1{\seccheck{appendixsection}% +\def\appendixsectionzzz #1{% \subsecno=0 \subsubsecno=0 \global\advance \secno by 1 % \gdef\thissection{#1}\secheading {#1}{\appendixletter}{\the\secno}% -{\chapternofonts% -\edef\temp{{\realbackslash secentry % -{#1}{\appendixletter}{\the\secno}{\noexpand\folio}}}% -\escapechar=`\\% -\write \contentsfile \temp % -\appendixnoderef % -\penalty 10000 % -}} +\toks0 = {#1}% +\edef\temp{\noexpand\writetocentry{\realbackslash secentry{\the\toks0}% + {\appendixletter}{\the\secno}}}% +\temp +\appendixnoderef +\nobreak +} \outer\def\unnumberedsec{\parsearg\unnumberedsecyyy} \def\unnumberedsecyyy #1{\unnmhead1{#1}} % normally calls unnumberedseczzz -\def\unnumberedseczzz #1{\seccheck{unnumberedsec}% +\def\unnumberedseczzz #1{% \plainsecheading {#1}\gdef\thissection{#1}% -{\chapternofonts% -\edef\temp{{\realbackslash unnumbsecentry{#1}{\noexpand\folio}}}% -\escapechar=`\\% -\write \contentsfile \temp % -\unnumbnoderef % -\penalty 10000 % -}} +\toks0 = {#1}% +\edef\temp{\noexpand\writetocentry{\realbackslash unnumbsecentry{\the\toks0}}}% +\temp +\unnumbnoderef +\nobreak +} +% Subsections. \outer\def\numberedsubsec{\parsearg\numberedsubsecyyy} \def\numberedsubsecyyy #1{\numhead2{#1}} % normally calls numberedsubseczzz -\def\numberedsubseczzz #1{\seccheck{subsection}% +\def\numberedsubseczzz #1{% \gdef\thissection{#1}\subsubsecno=0 \global\advance \subsecno by 1 % \subsecheading {#1}{\the\chapno}{\the\secno}{\the\subsecno}% -{\chapternofonts% -\edef\temp{{\realbackslash subsecentry % -{#1}{\the\chapno}{\the\secno}{\the\subsecno}{\noexpand\folio}}}% -\escapechar=`\\% -\write \contentsfile \temp % -\donoderef % -\penalty 10000 % -}} +\toks0 = {#1}% +\edef\temp{\noexpand\writetocentry{\realbackslash subsecentry{\the\toks0}% + {\the\chapno}{\the\secno}{\the\subsecno}}}% +\temp +\donoderef +\nobreak +} \outer\def\appendixsubsec{\parsearg\appendixsubsecyyy} \def\appendixsubsecyyy #1{\apphead2{#1}} % normally calls appendixsubseczzz -\def\appendixsubseczzz #1{\seccheck{appendixsubsec}% +\def\appendixsubseczzz #1{% \gdef\thissection{#1}\subsubsecno=0 \global\advance \subsecno by 1 % \subsecheading {#1}{\appendixletter}{\the\secno}{\the\subsecno}% -{\chapternofonts% -\edef\temp{{\realbackslash subsecentry % -{#1}{\appendixletter}{\the\secno}{\the\subsecno}{\noexpand\folio}}}% -\escapechar=`\\% -\write \contentsfile \temp % -\appendixnoderef % -\penalty 10000 % -}} +\toks0 = {#1}% +\edef\temp{\noexpand\writetocentry{\realbackslash subsecentry{\the\toks0}% + {\appendixletter}{\the\secno}{\the\subsecno}}}% +\temp +\appendixnoderef +\nobreak +} \outer\def\unnumberedsubsec{\parsearg\unnumberedsubsecyyy} \def\unnumberedsubsecyyy #1{\unnmhead2{#1}} %normally calls unnumberedsubseczzz -\def\unnumberedsubseczzz #1{\seccheck{unnumberedsubsec}% -\plainsecheading {#1}\gdef\thissection{#1}% -{\chapternofonts% -\edef\temp{{\realbackslash unnumbsubsecentry{#1}{\noexpand\folio}}}% -\escapechar=`\\% -\write \contentsfile \temp % -\unnumbnoderef % -\penalty 10000 % -}} +\def\unnumberedsubseczzz #1{% +\plainsubsecheading {#1}\gdef\thissection{#1}% +\toks0 = {#1}% +\edef\temp{\noexpand\writetocentry{\realbackslash unnumbsubsecentry% + {\the\toks0}}}% +\temp +\unnumbnoderef +\nobreak +} +% Subsubsections. \outer\def\numberedsubsubsec{\parsearg\numberedsubsubsecyyy} \def\numberedsubsubsecyyy #1{\numhead3{#1}} % normally numberedsubsubseczzz -\def\numberedsubsubseczzz #1{\seccheck{subsubsection}% +\def\numberedsubsubseczzz #1{% \gdef\thissection{#1}\global\advance \subsubsecno by 1 % \subsubsecheading {#1} {\the\chapno}{\the\secno}{\the\subsecno}{\the\subsubsecno}% -{\chapternofonts% -\edef\temp{{\realbackslash subsubsecentry % - {#1} - {\the\chapno}{\the\secno}{\the\subsecno}{\the\subsubsecno} - {\noexpand\folio}}}% -\escapechar=`\\% -\write \contentsfile \temp % -\donoderef % -\penalty 10000 % -}} +\toks0 = {#1}% +\edef\temp{\noexpand\writetocentry{\realbackslash subsubsecentry{\the\toks0}% + {\the\chapno}{\the\secno}{\the\subsecno}{\the\subsubsecno}}}% +\temp +\donoderef +\nobreak +} \outer\def\appendixsubsubsec{\parsearg\appendixsubsubsecyyy} \def\appendixsubsubsecyyy #1{\apphead3{#1}} % normally appendixsubsubseczzz -\def\appendixsubsubseczzz #1{\seccheck{appendixsubsubsec}% +\def\appendixsubsubseczzz #1{% \gdef\thissection{#1}\global\advance \subsubsecno by 1 % \subsubsecheading {#1} {\appendixletter}{\the\secno}{\the\subsecno}{\the\subsubsecno}% -{\chapternofonts% -\edef\temp{{\realbackslash subsubsecentry{#1}% - {\appendixletter} - {\the\secno}{\the\subsecno}{\the\subsubsecno}{\noexpand\folio}}}% -\escapechar=`\\% -\write \contentsfile \temp % -\appendixnoderef % -\penalty 10000 % -}} +\toks0 = {#1}% +\edef\temp{\noexpand\writetocentry{\realbackslash subsubsecentry{\the\toks0}% + {\appendixletter}{\the\secno}{\the\subsecno}{\the\subsubsecno}}}% +\temp +\appendixnoderef +\nobreak +} \outer\def\unnumberedsubsubsec{\parsearg\unnumberedsubsubsecyyy} \def\unnumberedsubsubsecyyy #1{\unnmhead3{#1}} %normally unnumberedsubsubseczzz -\def\unnumberedsubsubseczzz #1{\seccheck{unnumberedsubsubsec}% -\plainsecheading {#1}\gdef\thissection{#1}% -{\chapternofonts% -\edef\temp{{\realbackslash unnumbsubsubsecentry{#1}{\noexpand\folio}}}% -\escapechar=`\\% -\write \contentsfile \temp % -\unnumbnoderef % -\penalty 10000 % -}} +\def\unnumberedsubsubseczzz #1{% +\plainsubsubsecheading {#1}\gdef\thissection{#1}% +\toks0 = {#1}% +\edef\temp{\noexpand\writetocentry{\realbackslash unnumbsubsubsecentry% + {\the\toks0}}}% +\temp +\unnumbnoderef +\nobreak +} % These are variants which are not "outer", so they can appear in @ifinfo. % Actually, they should now be obsolete; ordinary section commands should work. @@ -2861,12 +3579,11 @@ width0pt\relax} \fi % Define @majorheading, @heading and @subheading -% NOTE on use of \vbox for chapter headings, section headings, and -% such: -% 1) We use \vbox rather than the earlier \line to permit -% overlong headings to fold. -% 2) \hyphenpenalty is set to 10000 because hyphenation in a -% heading is obnoxious; this forbids it. +% NOTE on use of \vbox for chapter headings, section headings, and such: +% 1) We use \vbox rather than the earlier \line to permit +% overlong headings to fold. +% 2) \hyphenpenalty is set to 10000 because hyphenation in a +% heading is obnoxious; this forbids it. % 3) Likewise, headings look best if no \parindent is used, and % if justification is not attempted. Hence \raggedright. @@ -2884,11 +3601,10 @@ width0pt\relax} \fi \parindent=0pt\raggedright \rm #1\hfill}}\bigskip \par\penalty 200} -\def\heading{\parsearg\secheadingi} - -\def\subheading{\parsearg\subsecheadingi} - -\def\subsubheading{\parsearg\subsubsecheadingi} +% @heading, @subheading, @subsubheading. +\def\heading{\parsearg\plainsecheading} +\def\subheading{\parsearg\plainsubsecheading} +\def\subsubheading{\parsearg\plainsubsubsecheading} % These macros generate a chapter, section, etc. heading only % (including whitespace, linebreaking, etc. around it), @@ -2902,7 +3618,7 @@ width0pt\relax} \fi %%% Define plain chapter starts, and page on/off switching for it % Parameter controlling skip before chapter headings (if needed) -\newskip \chapheadingskip \chapheadingskip = 30pt plus 8pt minus 4pt +\newskip\chapheadingskip \def\chapbreak{\dobreak \chapheadingskip {-4000}} \def\chappager{\par\vfill\supereject} @@ -2910,16 +3626,19 @@ width0pt\relax} \fi \def\setchapternewpage #1 {\csname CHAPPAG#1\endcsname} -\def\CHAPPAGoff{ +\def\CHAPPAGoff{% +\global\let\contentsalignmacro = \chappager \global\let\pchapsepmacro=\chapbreak \global\let\pagealignmacro=\chappager} -\def\CHAPPAGon{ +\def\CHAPPAGon{% +\global\let\contentsalignmacro = \chappager \global\let\pchapsepmacro=\chappager \global\let\pagealignmacro=\chappager \global\def\HEADINGSon{\HEADINGSsingle}} \def\CHAPPAGodd{ +\global\let\contentsalignmacro = \chapoddpage \global\let\pchapsepmacro=\chapoddpage \global\let\pagealignmacro=\chapoddpage \global\def\HEADINGSon{\HEADINGSdouble}} @@ -2931,37 +3650,42 @@ width0pt\relax} \fi \global\let\unnumbchapmacro=\unnchfplain \global\let\centerchapmacro=\centerchfplain} -\def\chfplain #1#2{% +% Plain chapter opening. +% #1 is the text, #2 the chapter number or empty if unnumbered. +\def\chfplain#1#2{% \pchapsepmacro {% - \chapfonts \vbox{\hyphenpenalty=10000\tolerance=5000 - \parindent=0pt\raggedright - \rm #2\enspace #1}% + \chapfonts \rm + \def\chapnum{#2}% + \setbox0 = \hbox{#2\ifx\chapnum\empty\else\enspace\fi}% + \vbox{\hyphenpenalty=10000 \tolerance=5000 \parindent=0pt \raggedright + \hangindent = \wd0 \centerparametersmaybe + \unhbox0 #1\par}% }% - \bigskip - \penalty5000 + \nobreak\bigskip % no page break after a chapter title + \nobreak } -\def\unnchfplain #1{% -\pchapsepmacro % -{\chapfonts \vbox{\hyphenpenalty=10000\tolerance=5000 - \parindent=0pt\raggedright - \rm #1\hfill}}\bigskip \par\penalty 10000 % -} +% Plain opening for unnumbered. +\def\unnchfplain#1{\chfplain{#1}{}} -\def\centerchfplain #1{% -\pchapsepmacro % -{\chapfonts \vbox{\hyphenpenalty=10000\tolerance=5000 - \parindent=0pt - {\rm #1}\hfill}}\bigskip \par\penalty 10000 % -} +% @centerchap -- centered and unnumbered. +\let\centerparametersmaybe = \relax +\def\centerchfplain#1{{% + \def\centerparametersmaybe{% + \advance\rightskip by 3\rightskip + \leftskip = \rightskip + \parfillskip = 0pt + }% + \chfplain{#1}{}% +}} \CHAPFplain % The default \def\unnchfopen #1{% \chapoddpage {\chapfonts \vbox{\hyphenpenalty=10000\tolerance=5000 \parindent=0pt\raggedright - \rm #1\hfill}}\bigskip \par\penalty 10000 % + \rm #1\hfill}}\bigskip \par\nobreak } \def\chfopen #1#2{\chapoddpage {\chapfonts @@ -2972,7 +3696,7 @@ width0pt\relax} \fi \def\centerchfopen #1{% \chapoddpage {\chapfonts \vbox{\hyphenpenalty=10000\tolerance=5000 \parindent=0pt - \hfill {\rm #1}\hfill}}\bigskip \par\penalty 10000 % + \hfill {\rm #1}\hfill}}\bigskip \par\nobreak } \def\CHAPFopen{ @@ -2980,87 +3704,122 @@ width0pt\relax} \fi \global\let\unnumbchapmacro=\unnchfopen \global\let\centerchapmacro=\centerchfopen} -% Parameter controlling skip before section headings. -\newskip \subsecheadingskip \subsecheadingskip = 17pt plus 8pt minus 4pt +% Section titles. +\newskip\secheadingskip +\def\secheadingbreak{\dobreak \secheadingskip {-1000}} +\def\secheading#1#2#3{\sectionheading{sec}{#2.#3}{#1}} +\def\plainsecheading#1{\sectionheading{sec}{}{#1}} + +% Subsection titles. +\newskip \subsecheadingskip \def\subsecheadingbreak{\dobreak \subsecheadingskip {-500}} +\def\subsecheading#1#2#3#4{\sectionheading{subsec}{#2.#3.#4}{#1}} +\def\plainsubsecheading#1{\sectionheading{subsec}{}{#1}} -\newskip \secheadingskip \secheadingskip = 21pt plus 8pt minus 4pt -\def\secheadingbreak{\dobreak \secheadingskip {-1000}} +% Subsubsection titles. +\let\subsubsecheadingskip = \subsecheadingskip +\let\subsubsecheadingbreak = \subsecheadingbreak +\def\subsubsecheading#1#2#3#4#5{\sectionheading{subsubsec}{#2.#3.#4.#5}{#1}} +\def\plainsubsubsecheading#1{\sectionheading{subsubsec}{}{#1}} -% @paragraphindent is defined for the Info formatting commands only. -\let\paragraphindent=\comment - -% Section fonts are the base font at magstep2, which produces -% a size a bit more than 14 points in the default situation. - -\def\secheading #1#2#3{\secheadingi {#2.#3\enspace #1}} -\def\plainsecheading #1{\secheadingi {#1}} -\def\secheadingi #1{{\advance \secheadingskip by \parskip % -\secheadingbreak}% -{\secfonts \vbox{\hyphenpenalty=10000\tolerance=5000 - \parindent=0pt\raggedright - \rm #1\hfill}}% -\ifdim \parskip<10pt \kern 10pt\kern -\parskip\fi \penalty 10000 } - - -% Subsection fonts are the base font at magstep1, -% which produces a size of 12 points. - -\def\subsecheading #1#2#3#4{\subsecheadingi {#2.#3.#4\enspace #1}} -\def\subsecheadingi #1{{\advance \subsecheadingskip by \parskip % -\subsecheadingbreak}% -{\subsecfonts \vbox{\hyphenpenalty=10000\tolerance=5000 - \parindent=0pt\raggedright - \rm #1\hfill}}% -\ifdim \parskip<10pt \kern 10pt\kern -\parskip\fi \penalty 10000 } - -\def\subsubsecfonts{\subsecfonts} % Maybe this should change: - % Perhaps make sssec fonts scaled - % magstep half -\def\subsubsecheading #1#2#3#4#5{\subsubsecheadingi {#2.#3.#4.#5\enspace #1}} -\def\subsubsecheadingi #1{{\advance \subsecheadingskip by \parskip % -\subsecheadingbreak}% -{\subsubsecfonts \vbox{\hyphenpenalty=10000\tolerance=5000 - \parindent=0pt\raggedright - \rm #1\hfill}}% -\ifdim \parskip<10pt \kern 10pt\kern -\parskip\fi \penalty 10000} + +% Print any size section title. +% +% #1 is the section type (sec/subsec/subsubsec), #2 is the section +% number (maybe empty), #3 the text. +\def\sectionheading#1#2#3{% + {% + \expandafter\advance\csname #1headingskip\endcsname by \parskip + \csname #1headingbreak\endcsname + }% + {% + % Switch to the right set of fonts. + \csname #1fonts\endcsname \rm + % + % Only insert the separating space if we have a section number. + \def\secnum{#2}% + \setbox0 = \hbox{#2\ifx\secnum\empty\else\enspace\fi}% + % + \vbox{\hyphenpenalty=10000 \tolerance=5000 \parindent=0pt \raggedright + \hangindent = \wd0 % zero if no section number + \unhbox0 #3}% + }% + \ifdim\parskip<10pt \nobreak\kern10pt\nobreak\kern-\parskip\fi \nobreak +} -\message{toc printing,} +\message{toc,} +% Table of contents. +\newwrite\tocfile -% Finish up the main text and prepare to read what we've written -% to \contentsfile. +% Write an entry to the toc file, opening it if necessary. +% Called from @chapter, etc. We supply {\folio} at the end of the +% argument, which will end up as the last argument to the \...entry macro. +% +% We open the .toc file here instead of at @setfilename or any other +% given time so that @contents can be put in the document anywhere. +% +\newif\iftocfileopened +\def\writetocentry#1{% + \iftocfileopened\else + \immediate\openout\tocfile = \jobname.toc + \global\tocfileopenedtrue + \fi + \iflinks \write\tocfile{#1{\folio}}\fi +} \newskip\contentsrightmargin \contentsrightmargin=1in +\newcount\savepageno +\newcount\lastnegativepageno \lastnegativepageno = -1 + +% Finish up the main text and prepare to read what we've written +% to \tocfile. +% \def\startcontents#1{% - \pagealignmacro - \immediate\closeout \contentsfile - \ifnum \pageno>0 - \pageno = -1 % Request roman numbered pages. - \fi + % If @setchapternewpage on, and @headings double, the contents should + % start on an odd page, unlike chapters. Thus, we maintain + % \contentsalignmacro in parallel with \pagealignmacro. + % From: Torbjorn Granlund + \contentsalignmacro + \immediate\closeout\tocfile + % % Don't need to put `Contents' or `Short Contents' in the headline. % It is abundantly clear what they are. \unnumbchapmacro{#1}\def\thischapter{}% - \begingroup % Set up to handle contents files properly. + \savepageno = \pageno + \begingroup % Set up to handle contents files properly. \catcode`\\=0 \catcode`\{=1 \catcode`\}=2 \catcode`\@=11 - \catcode`\^=7 % to see ^^e4 as \"a etc. juha@piuha.ydi.vtt.fi + % We can't do this, because then an actual ^ in a section + % title fails, e.g., @chapter ^ -- exponentiation. --karl, 9jul97. + %\catcode`\^=7 % to see ^^e4 as \"a etc. juha@piuha.ydi.vtt.fi \raggedbottom % Worry more about breakpoints than the bottom. \advance\hsize by -\contentsrightmargin % Don't use the full line length. + % + % Roman numerals for page numbers. + \ifnum \pageno>0 \pageno = \lastnegativepageno \fi } % Normal (long) toc. -\outer\def\contents{% - \startcontents{\putwordTableofContents}% - \input \jobname.toc +\def\contents{% + \startcontents{\putwordTOC}% + \openin 1 \jobname.toc + \ifeof 1 \else + \closein 1 + \input \jobname.toc + \fi + \vfill \eject + \contentsalignmacro % in case @setchapternewpage odd is in effect + \pdfmakeoutlines \endgroup - \vfill \eject + \lastnegativepageno = \pageno + \pageno = \savepageno } % And just the chapters. -\outer\def\summarycontents{% - \startcontents{\putwordShortContents}% +\def\summarycontents{% + \startcontents{\putwordShortTOC}% % \let\chapentry = \shortchapentry \let\unnumbchapentry = \shortunnumberedentry @@ -3068,6 +3827,7 @@ width0pt\relax} \fi \secfonts \let\rm=\shortcontrm \let\bf=\shortcontbf \let\sl=\shortcontsl \rm + \hyphenpenalty = 10000 \advance\baselineskip by 1pt % Open it up a little. \def\secentry ##1##2##3##4{} \def\unnumbsecentry ##1##2{} @@ -3075,12 +3835,23 @@ width0pt\relax} \fi \def\unnumbsubsecentry ##1##2{} \def\subsubsecentry ##1##2##3##4##5##6{} \def\unnumbsubsubsecentry ##1##2{} - \input \jobname.toc + \openin 1 \jobname.toc + \ifeof 1 \else + \closein 1 + \input \jobname.toc + \fi + \vfill \eject + \contentsalignmacro % in case @setchapternewpage odd is in effect \endgroup - \vfill \eject + \lastnegativepageno = \pageno + \pageno = \savepageno } \let\shortcontents = \summarycontents +\ifpdf + \pdfcatalog{/PageMode /UseOutlines}% +\fi + % These macros generate individual entries in the table of contents. % The first argument is the chapter or section name. % The last argument is the page number. @@ -3091,7 +3862,7 @@ width0pt\relax} \fi % See comments in \dochapentry re vbox and related settings \def\shortchapentry#1#2#3{% - \tocentry{\shortchaplabel{#2}\labelspace #1}{\doshortpageno{#3}}% + \tocentry{\shortchaplabel{#2}\labelspace #1}{\doshortpageno\bgroup#3\egroup}% } % Typeset the label for a chapter or appendix for the short contents. @@ -3099,10 +3870,14 @@ width0pt\relax} \fi % We could simplify the code here by writing out an \appendixentry % command in the toc file for appendices, instead of using \chapentry % for both, but it doesn't seem worth it. -\setbox0 = \hbox{\shortcontrm \putwordAppendix } -\newdimen\shortappendixwidth \shortappendixwidth = \wd0 - +% +\newdimen\shortappendixwidth +% \def\shortchaplabel#1{% + % Compute width of word "Appendix", may change with language. + \setbox0 = \hbox{\shortcontrm \putwordAppendix}% + \shortappendixwidth = \wd0 + % % We typeset #1 in a box of constant width, regardless of the text of % #1, so the chapter titles will come out aligned. \setbox0 = \hbox{#1}% @@ -3111,13 +3886,13 @@ width0pt\relax} \fi % This space should be plenty, since a single number is .5em, and the % widest letter (M) is 1em, at least in the Computer Modern fonts. % (This space doesn't include the extra space that gets added after - % the label; that gets put in in \shortchapentry above.) + % the label; that gets put in by \shortchapentry above.) \advance\dimen0 by 1.1em \hbox to \dimen0{#1\hfil}% } \def\unnumbchapentry#1#2{\dochapentry{#1}{#2}} -\def\shortunnumberedentry#1#2{\tocentry{#1}{\doshortpageno{#2}}} +\def\shortunnumberedentry#1#2{\tocentry{#1}{\doshortpageno\bgroup#2\egroup}} % Sections. \def\secentry#1#2#3#4{\dosecentry{#2.#3\labelspace#1}{#4}} @@ -3132,48 +3907,48 @@ width0pt\relax} \fi \dosubsubsecentry{#2.#3.#4.#5\labelspace#1}{#6}} \def\unnumbsubsubsecentry#1#2{\dosubsubsecentry{#1}{#2}} - % This parameter controls the indentation of the various levels. \newdimen\tocindent \tocindent = 3pc % Now for the actual typesetting. In all these, #1 is the text and #2 is the % page number. % -% If the toc has to be broken over pages, we would want to be at chapters +% If the toc has to be broken over pages, we want it to be at chapters % if at all possible; hence the \penalty. \def\dochapentry#1#2{% - \penalty-300 \vskip\baselineskip + \penalty-300 \vskip1\baselineskip plus.33\baselineskip minus.25\baselineskip \begingroup \chapentryfonts - \tocentry{#1}{\dopageno{#2}}% + \tocentry{#1}{\dopageno\bgroup#2\egroup}% \endgroup - \nobreak\vskip .25\baselineskip + \nobreak\vskip .25\baselineskip plus.1\baselineskip } \def\dosecentry#1#2{\begingroup \secentryfonts \leftskip=\tocindent - \tocentry{#1}{\dopageno{#2}}% + \tocentry{#1}{\dopageno\bgroup#2\egroup}% \endgroup} \def\dosubsecentry#1#2{\begingroup \subsecentryfonts \leftskip=2\tocindent - \tocentry{#1}{\dopageno{#2}}% + \tocentry{#1}{\dopageno\bgroup#2\egroup}% \endgroup} \def\dosubsubsecentry#1#2{\begingroup \subsubsecentryfonts \leftskip=3\tocindent - \tocentry{#1}{\dopageno{#2}}% + \tocentry{#1}{\dopageno\bgroup#2\egroup}% \endgroup} % Final typesetting of a toc entry; we use the same \entry macro as for % the index entries, but we want to suppress hyphenation here. (We % can't do that in the \entry macro, since index entries might consist % of hyphenated-identifiers-that-do-not-fit-on-a-line-and-nothing-else.) -% -% \turnoffactive is for the sake of @" used for umlauts. \def\tocentry#1#2{\begingroup - \hyphenpenalty = 10000 - \entry{\turnoffactive #1}{\turnoffactive #2}% + \vskip 0pt plus1pt % allow a little stretch for the sake of nice page breaks + % Do not use \turnoffactive in these arguments. Since the toc is + % typeset in cmr, so characters such as _ would come out wrong; we + % have to do the usual translation tricks. + \entry{#1}{#2}% \endgroup} % Space between chapter (or whatever) number and the title. @@ -3189,6 +3964,7 @@ width0pt\relax} \fi \message{environments,} +% @foo ... @end foo. % Since these characters are used in examples, it should be an even number of % \tt widths. Each \tt character is 1en, so two makes it 1em. @@ -3197,8 +3973,6 @@ width0pt\relax} \fi \newbox\pushcharbox \newbox\bullbox \newbox\equivbox \newbox\errorbox -\let\ptexequiv = \equiv - %{\tentt %\global\setbox\dblarrowbox = \hbox to 1em{\hfil$\Rightarrow$\hfil} %\global\setbox\longdblarrowbox = \hbox to 1em{\hfil$\mapsto$\hfil} @@ -3209,12 +3983,11 @@ width0pt\relax} \fi % depth .1ex\hfil} %} +% @point{}, @result{}, @expansion{}, @print{}, @equiv{}. \def\point{$\star$} - \def\result{\leavevmode\raise.15ex\hbox to 1em{\hfil$\Rightarrow$\hfil}} \def\expansion{\leavevmode\raise.1ex\hbox to 1em{\hfil$\mapsto$\hfil}} \def\print{\leavevmode\lower.1ex\hbox to 1em{\hfil$\dashv$\hfil}} - \def\equiv{\leavevmode\lower.1ex\hbox to 1em{\hfil$\ptexequiv$\hfil}} % Adapted from the TeXbook's \boxit. @@ -3242,31 +4015,36 @@ width0pt\relax} \fi % But \@ or @@ will get a plain tex @ character. \def\tex{\begingroup -\catcode `\\=0 \catcode `\{=1 \catcode `\}=2 -\catcode `\$=3 \catcode `\&=4 \catcode `\#=6 -\catcode `\^=7 \catcode `\_=8 \catcode `\~=13 \let~=\tie -\catcode `\%=14 -\catcode 43=12 -\catcode`\"=12 -\catcode`\==12 -\catcode`\|=12 -\catcode`\<=12 -\catcode`\>=12 -\escapechar=`\\ -% -\let\~=\ptextilde -\let\{=\ptexlbrace -\let\}=\ptexrbrace -\let\.=\ptexdot -\let\*=\ptexstar -\let\dots=\ptexdots -\def\endldots{\mathinner{\ldots\ldots\ldots\ldots}} -\def\enddots{\relax\ifmmode\endldots\else$\mathsurround=0pt \endldots\,$\fi} -\def\@{@}% -\let\bullet=\ptexbullet -\let\b=\ptexb \let\c=\ptexc \let\i=\ptexi \let\t=\ptext \let\l=\ptexl -\let\L=\ptexL -% + \catcode `\\=0 \catcode `\{=1 \catcode `\}=2 + \catcode `\$=3 \catcode `\&=4 \catcode `\#=6 + \catcode `\^=7 \catcode `\_=8 \catcode `\~=13 \let~=\tie + \catcode `\%=14 + \catcode 43=12 % plus + \catcode`\"=12 + \catcode`\==12 + \catcode`\|=12 + \catcode`\<=12 + \catcode`\>=12 + \escapechar=`\\ + % + \let\b=\ptexb + \let\bullet=\ptexbullet + \let\c=\ptexc + \let\,=\ptexcomma + \let\.=\ptexdot + \let\dots=\ptexdots + \let\equiv=\ptexequiv + \let\!=\ptexexclam + \let\i=\ptexi + \let\{=\ptexlbrace + \let\+=\tabalign + \let\}=\ptexrbrace + \let\*=\ptexstar + \let\t=\ptext + % + \def\endldots{\mathinner{\ldots\ldots\ldots\ldots}}% + \def\enddots{\relax\ifmmode\endldots\else$\mathsurround=0pt \endldots\,$\fi}% + \def\@{@}% \let\Etex=\endgroup} % Define @lisp ... @endlisp. @@ -3311,8 +4089,8 @@ width0pt\relax} \fi % \nonarrowing is a flag. If "set", @lisp etc don't narrow margins. \let\nonarrowing=\relax -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% \cartouche: draw rectangle w/rounded corners around argument +% @cartouche ... @end cartouche: draw rectangle w/rounded corners around +% environment contents. \font\circle=lcircle10 \newdimen\circthick \newdimen\cartouter\newdimen\cartinner @@ -3324,50 +4102,50 @@ width0pt\relax} \fi \def\cbl{{\circle\char'012\hskip -6pt}} \def\cbr{{\hskip 6pt\circle\char'011}} \def\carttop{\hbox to \cartouter{\hskip\lskip - \ctl\leaders\hrule height\circthick\hfil\ctr - \hskip\rskip}} + \ctl\leaders\hrule height\circthick\hfil\ctr + \hskip\rskip}} \def\cartbot{\hbox to \cartouter{\hskip\lskip - \cbl\leaders\hrule height\circthick\hfil\cbr - \hskip\rskip}} + \cbl\leaders\hrule height\circthick\hfil\cbr + \hskip\rskip}} % \newskip\lskip\newskip\rskip \long\def\cartouche{% \begingroup - \lskip=\leftskip \rskip=\rightskip - \leftskip=0pt\rightskip=0pt %we want these *outside*. - \cartinner=\hsize \advance\cartinner by-\lskip - \advance\cartinner by-\rskip - \cartouter=\hsize - \advance\cartouter by 18pt % allow for 3pt kerns on either -% side, and for 6pt waste from -% each corner char - \normbskip=\baselineskip \normpskip=\parskip \normlskip=\lineskip - % Flag to tell @lisp, etc., not to narrow margin. - \let\nonarrowing=\comment - \vbox\bgroup - \baselineskip=0pt\parskip=0pt\lineskip=0pt - \carttop - \hbox\bgroup - \hskip\lskip - \vrule\kern3pt - \vbox\bgroup - \hsize=\cartinner - \kern3pt - \begingroup - \baselineskip=\normbskip - \lineskip=\normlskip - \parskip=\normpskip - \vskip -\parskip + \lskip=\leftskip \rskip=\rightskip + \leftskip=0pt\rightskip=0pt %we want these *outside*. + \cartinner=\hsize \advance\cartinner by-\lskip + \advance\cartinner by-\rskip + \cartouter=\hsize + \advance\cartouter by 18.4pt % allow for 3pt kerns on either +% side, and for 6pt waste from +% each corner char, and rule thickness + \normbskip=\baselineskip \normpskip=\parskip \normlskip=\lineskip + % Flag to tell @lisp, etc., not to narrow margin. + \let\nonarrowing=\comment + \vbox\bgroup + \baselineskip=0pt\parskip=0pt\lineskip=0pt + \carttop + \hbox\bgroup + \hskip\lskip + \vrule\kern3pt + \vbox\bgroup + \hsize=\cartinner + \kern3pt + \begingroup + \baselineskip=\normbskip + \lineskip=\normlskip + \parskip=\normpskip + \vskip -\parskip \def\Ecartouche{% - \endgroup - \kern3pt - \egroup - \kern3pt\vrule - \hskip\rskip - \egroup - \cartbot - \egroup + \endgroup + \kern3pt + \egroup + \kern3pt\vrule + \hskip\rskip + \egroup + \cartbot + \egroup \endgroup }} @@ -3395,49 +4173,52 @@ width0pt\relax} \fi \fi } -% To ending an @example-like environment, we first end the paragraph -% (via \afterenvbreak's vertical glue), and then the group. That way we -% keep the zero \parskip that the environments set -- \parskip glue -% will be inserted at the beginning of the next paragraph in the -% document, after the environment. +% Define the \E... control sequence only if we are inside the particular +% environment, so the error checking in \end will work. +% +% To end an @example-like environment, we first end the paragraph (via +% \afterenvbreak's vertical glue), and then the group. That way we keep +% the zero \parskip that the environments set -- \parskip glue will be +% inserted at the beginning of the next paragraph in the document, after +% the environment. % -\def\nonfillfinish{\afterenvbreak\endgroup}% +\def\nonfillfinish{\afterenvbreak\endgroup} -% This macro is +% @lisp: indented, narrowed, typewriter font. \def\lisp{\begingroup \nonfillstart \let\Elisp = \nonfillfinish \tt - \rawbackslash % have \ input char produce \ char from current font - \gobble + \let\kbdfont = \kbdexamplefont % Allow @kbd to do something special. + \gobble % eat return } -% Define the \E... control sequence only if we are inside the -% environment, so the error checking in \end will work. -% -% We must call \lisp last in the definition, since it reads the -% return following the @example (or whatever) command. -% +% @example: Same as @lisp. \def\example{\begingroup \def\Eexample{\nonfillfinish\endgroup}\lisp} -\def\smallexample{\begingroup \def\Esmallexample{\nonfillfinish\endgroup}\lisp} -\def\smalllisp{\begingroup \def\Esmalllisp{\nonfillfinish\endgroup}\lisp} -% @smallexample and @smalllisp. This is not used unless the @smallbook -% command is given. Originally contributed by Pavel@xerox. +% @small... is usually equivalent to the non-small (@smallbook +% redefines). We must call \example (or whatever) last in the +% definition, since it reads the return following the @example (or +% whatever) command. % +% This actually allows (for example) @end display inside an +% @smalldisplay. Too bad, but makeinfo will catch the error anyway. +% +\def\smalldisplay{\begingroup\def\Esmalldisplay{\nonfillfinish\endgroup}\display} +\def\smallexample{\begingroup\def\Esmallexample{\nonfillfinish\endgroup}\lisp} +\def\smallformat{\begingroup\def\Esmallformat{\nonfillfinish\endgroup}\format} +\def\smalllisp{\begingroup\def\Esmalllisp{\nonfillfinish\endgroup}\lisp} + +% Real @smallexample and @smalllisp (when @smallbook): use smaller fonts. +% Originally contributed by Pavel@xerox. \def\smalllispx{\begingroup - \nonfillstart - \let\Esmalllisp = \nonfillfinish - \let\Esmallexample = \nonfillfinish - % - % Smaller interline space and fonts for small examples. - \setleading{10pt}% - \indexfonts \tt - \rawbackslash % make \ output the \ character from the current font (tt) - \gobble + \def\Esmalllisp{\nonfillfinish\endgroup}% + \def\Esmallexample{\nonfillfinish\endgroup}% + \smallfonts + \lisp } -% This is @display; same as @lisp except use roman font. +% @display: same as @lisp except keep current font. % \def\display{\begingroup \nonfillstart @@ -3445,7 +4226,15 @@ width0pt\relax} \fi \gobble } -% This is @format; same as @display except don't narrow margins. +% @smalldisplay (when @smallbook): @display plus smaller fonts. +% +\def\smalldisplayx{\begingroup + \def\Esmalldisplay{\nonfillfinish\endgroup}% + \smallfonts \rm + \display +} + +% @format: same as @display except don't narrow margins. % \def\format{\begingroup \let\nonarrowing = t @@ -3454,20 +4243,27 @@ width0pt\relax} \fi \gobble } -% @flushleft (same as @format) and @flushright. +% @smallformat (when @smallbook): @format plus smaller fonts. % -\def\flushleft{\begingroup - \let\nonarrowing = t - \nonfillstart - \let\Eflushleft = \nonfillfinish - \gobble +\def\smallformatx{\begingroup + \def\Esmallformat{\nonfillfinish\endgroup}% + \smallfonts \rm + \format } + +% @flushleft (same as @format). +% +\def\flushleft{\begingroup \def\Eflushleft{\nonfillfinish\endgroup}\format} + +% @flushright. +% \def\flushright{\begingroup \let\nonarrowing = t \nonfillstart \let\Eflushright = \nonfillfinish \advance\leftskip by 0pt plus 1fill - \gobble} + \gobble +} % @quotation does normal linebreaking (hence we can't use \nonfillstart) % and narrows the margins. @@ -3490,9 +4286,11 @@ width0pt\relax} \fi \fi } + \message{defuns,} -% Define formatter for defuns -% First, allow user to change definition object font (\df) internally +% @defun etc. + +% Allow user to change definition object font (\df) internally \def\setdeffont #1 {\csname DEF#1\endcsname} \newskip\defbodyindent \defbodyindent=.4in @@ -3526,16 +4324,17 @@ width0pt\relax} \fi % Definitions of (, ) and & used in args for functions. % This is the definition of ( outside of all parentheses. -\gdef\oprm#1 {{\rm\char`\(}#1 \bf \let(=\opnested % -\global\advance\parencount by 1 } +\gdef\oprm#1 {{\rm\char`\(}#1 \bf \let(=\opnested + \global\advance\parencount by 1 +} % % This is the definition of ( when already inside a level of parens. \gdef\opnested{\char`\(\global\advance\parencount by 1 } % \gdef\clrm{% Print a paren in roman if it is taking us back to depth of 0. -% also in that case restore the outer-level definition of (. -\ifnum \parencount=1 {\rm \char `\)}\sl \let(=\oprm \else \char `\) \fi -\global\advance \parencount by -1 } + % also in that case restore the outer-level definition of (. + \ifnum \parencount=1 {\rm \char `\)}\sl \let(=\oprm \else \char `\) \fi + \global\advance \parencount by -1 } % If we encounter &foo, then turn on ()-hacking afterwards \gdef\amprm#1 {{\rm\}\let(=\oprm \let)=\clrm\ } % @@ -3543,8 +4342,17 @@ width0pt\relax} \fi } % End of definition inside \activeparens %% These parens (in \boldbrax) actually are a little bolder than the %% contained text. This is especially needed for [ and ] -\def\opnr{{\sf\char`\(}} \def\clnr{{\sf\char`\)}} \def\ampnr{\&} -\def\lbrb{{\bf\char`\[}} \def\rbrb{{\bf\char`\]}} +\def\opnr{{\sf\char`\(}\global\advance\parencount by 1 } +\def\clnr{{\sf\char`\)}\global\advance\parencount by -1 } +\let\ampnr = \& +\def\lbrb{{\bf\char`\[}} +\def\rbrb{{\bf\char`\]}} + +% Active &'s sneak into the index arguments, so make sure it's defined. +{ + \catcode`& = 13 + \global\let& = \ampnr +} % First, defname, which formats the header line itself. % #1 should be the function name. @@ -3555,20 +4363,18 @@ width0pt\relax} \fi % outside the @def... \dimen2=\leftskip \advance\dimen2 by -\defbodyindent -\dimen3=\rightskip -\advance\dimen3 by -\defbodyindent -\noindent % +\noindent \setbox0=\hbox{\hskip \deflastargmargin{\rm #2}\hskip \deftypemargin}% \dimen0=\hsize \advance \dimen0 by -\wd0 % compute size for first line \dimen1=\hsize \advance \dimen1 by -\defargsindent %size for continuations -\parshape 2 0in \dimen0 \defargsindent \dimen1 % +\parshape 2 0in \dimen0 \defargsindent \dimen1 % Now output arg 2 ("Function" or some such) % ending at \deftypemargin from the right margin, % but stuck inside a box of width 0 so it does not interfere with linebreaking {% Adjust \hsize to exclude the ambient margins, % so that \rightline will obey them. -\advance \hsize by -\dimen2 \advance \hsize by -\dimen3 -\rlap{\rightline{{\rm #2}\hskip \deftypemargin}}}% +\advance \hsize by -\dimen2 +\rlap{\rightline{{\rm #2}\hskip -1.25pc }}}% % Make all lines underfull and no complaints: \tolerance=10000 \hbadness=10000 \advance\leftskip by -\defbodyindent @@ -3589,23 +4395,62 @@ width0pt\relax} \fi \def#1{\endgraf\endgroup\medbreak}% \def#2{\begingroup\obeylines\activeparens\spacesplit#3}% \parindent=0in -\advance\leftskip by \defbodyindent \advance \rightskip by \defbodyindent +\advance\leftskip by \defbodyindent \exdentamount=\defbodyindent \begingroup % \catcode 61=\active % 61 is `=' \obeylines\activeparens\spacesplit#3} -\def\defmethparsebody #1#2#3#4 {\begingroup\inENV % +% #1 is the \E... control sequence to end the definition (which we define). +% #2 is the \...x control sequence for consecutive fns (which we define). +% #3 is the control sequence to call to resume processing. +% #4, delimited by the space, is the class name. +% +\def\defmethparsebody#1#2#3#4 {\begingroup\inENV % \medbreak % % Define the end token that this defining construct specifies % so that it will exit this group. \def#1{\endgraf\endgroup\medbreak}% \def#2##1 {\begingroup\obeylines\activeparens\spacesplit{#3{##1}}}% \parindent=0in -\advance\leftskip by \defbodyindent \advance \rightskip by \defbodyindent +\advance\leftskip by \defbodyindent \exdentamount=\defbodyindent \begingroup\obeylines\activeparens\spacesplit{#3{#4}}} +% Used for @deftypemethod and @deftypeivar. +% #1 is the \E... control sequence to end the definition (which we define). +% #2 is the \...x control sequence for consecutive fns (which we define). +% #3 is the control sequence to call to resume processing. +% #4, delimited by a space, is the class name. +% #5 is the method's return type. +% +\def\deftypemethparsebody#1#2#3#4 #5 {\begingroup\inENV + \medbreak + \def#1{\endgraf\endgroup\medbreak}% + \def#2##1 ##2 {\begingroup\obeylines\activeparens\spacesplit{#3{##1}{##2}}}% + \parindent=0in + \advance\leftskip by \defbodyindent + \exdentamount=\defbodyindent + \begingroup\obeylines\activeparens\spacesplit{#3{#4}{#5}}} + +% Used for @deftypeop. The change from \deftypemethparsebody is an +% extra argument at the beginning which is the `category', instead of it +% being the hardwired string `Method' or `Instance Variable'. We have +% to account for this both in the \...x definition and in parsing the +% input at hand. Thus also need a control sequence (passed as #5) for +% the \E... definition to assign the category name to. +% +\def\deftypeopparsebody#1#2#3#4#5 #6 {\begingroup\inENV + \medbreak + \def#1{\endgraf\endgroup\medbreak}% + \def#2##1 ##2 ##3 {% + \def#4{##1}% + \begingroup\obeylines\activeparens\spacesplit{#3{##2}{##3}}}% + \parindent=0in + \advance\leftskip by \defbodyindent + \exdentamount=\defbodyindent + \begingroup\obeylines\activeparens\spacesplit{#3{#5}{#6}}} + \def\defopparsebody #1#2#3#4#5 {\begingroup\inENV % \medbreak % % Define the end token that this defining construct specifies @@ -3614,7 +4459,7 @@ width0pt\relax} \fi \def#2##1 ##2 {\def#4{##1}% \begingroup\obeylines\activeparens\spacesplit{#3{##2}}}% \parindent=0in -\advance\leftskip by \defbodyindent \advance \rightskip by \defbodyindent +\advance\leftskip by \defbodyindent \exdentamount=\defbodyindent \begingroup\obeylines\activeparens\spacesplit{#3{#5}}} @@ -3629,7 +4474,7 @@ width0pt\relax} \fi \def#1{\endgraf\endgroup\medbreak}% \def#2{\begingroup\obeylines\spacesplit#3}% \parindent=0in -\advance\leftskip by \defbodyindent \advance \rightskip by \defbodyindent +\advance\leftskip by \defbodyindent \exdentamount=\defbodyindent \begingroup % \catcode 61=\active % @@ -3637,7 +4482,7 @@ width0pt\relax} \fi % This is used for \def{tp,vr}parsebody. It could probably be used for % some of the others, too, with some judicious conditionals. -% +% \def\parsebodycommon#1#2#3{% \begingroup\inENV % \medbreak % @@ -3646,7 +4491,7 @@ width0pt\relax} \fi \def#1{\endgraf\endgroup\medbreak}% \def#2##1 {\begingroup\obeylines\spacesplit{#3{##1}}}% \parindent=0in - \advance\leftskip by \defbodyindent \advance \rightskip by \defbodyindent + \advance\leftskip by \defbodyindent \exdentamount=\defbodyindent \begingroup\obeylines } @@ -3671,17 +4516,16 @@ width0pt\relax} \fi } % Fine, but then we have to eventually remove the \empty *and* the -% braces (if any). That's what this does, putting the result in \tptemp. -% -\def\removeemptybraces\empty#1\relax{\def\tptemp{#1}}% +% braces (if any). That's what this does. +% +\def\removeemptybraces\empty#1\relax{#1} % After \spacesplit has done its work, this is called -- #1 is the final % thing to call, #2 the type name (which starts with \empty), and #3 % (which might be empty) the arguments. -% +% \def\parsetpheaderline#1#2#3{% - \removeemptybraces#2\relax - #1{\tptemp}{#3}% + #1{\removeemptybraces#2\relax}{#3}% }% \def\defopvarparsebody #1#2#3#4#5 {\begingroup\inENV % @@ -3692,7 +4536,7 @@ width0pt\relax} \fi \def#2##1 ##2 {\def#4{##1}% \begingroup\obeylines\spacesplit{#3{##2}}}% \parindent=0in -\advance\leftskip by \defbodyindent \advance \rightskip by \defbodyindent +\advance\leftskip by \defbodyindent \exdentamount=\defbodyindent \begingroup\obeylines\spacesplit{#3{#5}}} @@ -3716,16 +4560,17 @@ width0pt\relax} \fi % First, define the processing that is wanted for arguments of \defun % Use this to expand the args and terminate the paragraph they make up -\def\defunargs #1{\functionparens \sl +\def\defunargs#1{\functionparens \sl % Expand, preventing hyphenation at `-' chars. % Note that groups don't affect changes in \hyphenchar. -\hyphenchar\tensl=0 +% Set the font temporarily and use \font in case \setfont made \tensl a macro. +{\tensl\hyphenchar\font=0}% #1% -\hyphenchar\tensl=45 -\ifnum\parencount=0 \else \errmessage{unbalanced parens in @def arguments}\fi% +{\tensl\hyphenchar\font=45}% +\ifnum\parencount=0 \else \errmessage{Unbalanced parentheses in @def}\fi% \interlinepenalty=10000 \advance\rightskip by 0pt plus 1fil -\endgraf\penalty 10000\vskip -\parskip\penalty 10000% +\endgraf\nobreak\vskip -\parskip\nobreak } \def\deftypefunargs #1{% @@ -3736,7 +4581,7 @@ width0pt\relax} \fi \tclose{#1}% avoid \code because of side effects on active chars \interlinepenalty=10000 \advance\rightskip by 0pt plus 1fil -\endgraf\penalty 10000\vskip -\parskip\penalty 10000% +\endgraf\nobreak\vskip -\parskip\nobreak } % Do complete processing of one @defun or @defunx line already parsed. @@ -3755,7 +4600,7 @@ width0pt\relax} \fi \def\defun{\defparsebody\Edefun\defunx\defunheader} \def\defunheader #1#2{\doind {fn}{\code{#1}}% Make entry in function index -\begingroup\defname {#1}{Function}% +\begingroup\defname {#1}{\putwordDeffunc}% \defunargs {#2}\endgroup % \catcode 61=\other % Turn off change made in \defparsebody } @@ -3769,7 +4614,7 @@ width0pt\relax} \fi % #1 is the data type, #2 the name, #3 the args. \def\deftypefunheaderx #1#2 #3\relax{% \doind {fn}{\code{#2}}% Make entry in function index -\begingroup\defname {\defheaderxcond#1\relax$$$#2}{Function}% +\begingroup\defname {\defheaderxcond#1\relax$$$#2}{\putwordDeftypefun}% \deftypefunargs {#3}\endgroup % \catcode 61=\other % Turn off change made in \defparsebody } @@ -3800,7 +4645,7 @@ width0pt\relax} \fi \def\defmac{\defparsebody\Edefmac\defmacx\defmacheader} \def\defmacheader #1#2{\doind {fn}{\code{#1}}% Make entry in function index -\begingroup\defname {#1}{Macro}% +\begingroup\defname {#1}{\putwordDefmac}% \defunargs {#2}\endgroup % \catcode 61=\other % Turn off change made in \defparsebody } @@ -3810,42 +4655,77 @@ width0pt\relax} \fi \def\defspec{\defparsebody\Edefspec\defspecx\defspecheader} \def\defspecheader #1#2{\doind {fn}{\code{#1}}% Make entry in function index -\begingroup\defname {#1}{Special Form}% +\begingroup\defname {#1}{\putwordDefspec}% \defunargs {#2}\endgroup % \catcode 61=\other % Turn off change made in \defparsebody } -% This definition is run if you use @defunx -% anywhere other than immediately after a @defun or @defunx. - -\def\deffnx #1 {\errmessage{@deffnx in invalid context}} -\def\defunx #1 {\errmessage{@defunx in invalid context}} -\def\defmacx #1 {\errmessage{@defmacx in invalid context}} -\def\defspecx #1 {\errmessage{@defspecx in invalid context}} -\def\deftypefnx #1 {\errmessage{@deftypefnx in invalid context}} -\def\deftypeunx #1 {\errmessage{@deftypeunx in invalid context}} - -% @defmethod, and so on - -% @defop {Funny Method} foo-class frobnicate argument - +% @defop CATEGORY CLASS OPERATION ARG... +% \def\defop #1 {\def\defoptype{#1}% \defopparsebody\Edefop\defopx\defopheader\defoptype} - -\def\defopheader #1#2#3{% -\dosubind {fn}{\code{#2}}{on #1}% Make entry in function index -\begingroup\defname {#2}{\defoptype{} on #1}% +% +\def\defopheader#1#2#3{% +\dosubind {fn}{\code{#2}}{\putwordon\ #1}% Make entry in function index +\begingroup\defname {#2}{\defoptype\ \putwordon\ #1}% \defunargs {#3}\endgroup % } -% @defmethod == @defop Method +% @deftypeop CATEGORY CLASS TYPE OPERATION ARG... +% +\def\deftypeop #1 {\def\deftypeopcategory{#1}% + \deftypeopparsebody\Edeftypeop\deftypeopx\deftypeopheader + \deftypeopcategory} +% +% #1 is the class name, #2 the data type, #3 the operation name, #4 the args. +\def\deftypeopheader#1#2#3#4{% + \dosubind{fn}{\code{#3}}{\putwordon\ \code{#1}}% entry in function index + \begingroup + \defname{\defheaderxcond#2\relax$$$#3} + {\deftypeopcategory\ \putwordon\ \code{#1}}% + \deftypefunargs{#4}% + \endgroup +} -\def\defmethod{\defmethparsebody\Edefmethod\defmethodx\defmethodheader} +% @deftypemethod CLASS TYPE METHOD ARG... +% +\def\deftypemethod{% + \deftypemethparsebody\Edeftypemethod\deftypemethodx\deftypemethodheader} +% +% #1 is the class name, #2 the data type, #3 the method name, #4 the args. +\def\deftypemethodheader#1#2#3#4{% + \dosubind{fn}{\code{#3}}{\putwordon\ \code{#1}}% entry in function index + \begingroup + \defname{\defheaderxcond#2\relax$$$#3}{\putwordMethodon\ \code{#1}}% + \deftypefunargs{#4}% + \endgroup +} -\def\defmethodheader #1#2#3{% -\dosubind {fn}{\code{#2}}{on #1}% entry in function index -\begingroup\defname {#2}{Method on #1}% -\defunargs {#3}\endgroup % +% @deftypeivar CLASS TYPE VARNAME +% +\def\deftypeivar{% + \deftypemethparsebody\Edeftypeivar\deftypeivarx\deftypeivarheader} +% +% #1 is the class name, #2 the data type, #3 the variable name. +\def\deftypeivarheader#1#2#3{% + \dosubind{vr}{\code{#3}}{\putwordof\ \code{#1}}% entry in variable index + \begingroup + \defname{#3}{\putwordInstanceVariableof\ \code{#1}}% + \defvarargs{#3}% + \endgroup +} + +% @defmethod == @defop Method +% +\def\defmethod{\defmethparsebody\Edefmethod\defmethodx\defmethodheader} +% +% #1 is the class name, #2 the method name, #3 the args. +\def\defmethodheader#1#2#3{% + \dosubind{fn}{\code{#2}}{\putwordon\ \code{#1}}% entry in function index + \begingroup + \defname{#2}{\putwordMethodon\ \code{#1}}% + \defunargs{#3}% + \endgroup } % @defcv {Class Option} foo-class foo-flag @@ -3854,37 +4734,30 @@ width0pt\relax} \fi \defopvarparsebody\Edefcv\defcvx\defcvarheader\defcvtype} \def\defcvarheader #1#2#3{% -\dosubind {vr}{\code{#2}}{of #1}% Make entry in var index -\begingroup\defname {#2}{\defcvtype{} of #1}% +\dosubind {vr}{\code{#2}}{\putwordof\ #1}% Make entry in var index +\begingroup\defname {#2}{\defcvtype\ \putwordof\ #1}% \defvarargs {#3}\endgroup % } -% @defivar == @defcv {Instance Variable} - +% @defivar CLASS VARNAME == @defcv {Instance Variable} CLASS VARNAME +% \def\defivar{\defvrparsebody\Edefivar\defivarx\defivarheader} - -\def\defivarheader #1#2#3{% -\dosubind {vr}{\code{#2}}{of #1}% Make entry in var index -\begingroup\defname {#2}{Instance Variable of #1}% -\defvarargs {#3}\endgroup % +% +\def\defivarheader#1#2#3{% + \dosubind {vr}{\code{#2}}{\putwordof\ #1}% entry in var index + \begingroup + \defname{#2}{\putwordInstanceVariableof\ #1}% + \defvarargs{#3}% + \endgroup } -% These definitions are run if you use @defmethodx, etc., -% anywhere other than immediately after a @defmethod, etc. - -\def\defopx #1 {\errmessage{@defopx in invalid context}} -\def\defmethodx #1 {\errmessage{@defmethodx in invalid context}} -\def\defcvx #1 {\errmessage{@defcvx in invalid context}} -\def\defivarx #1 {\errmessage{@defivarx in invalid context}} - -% Now @defvar - +% @defvar % First, define the processing that is wanted for arguments of @defvar. % This is actually simple: just print them in roman. % This must expand the args and terminate the paragraph they make up \def\defvarargs #1{\normalparens #1% \interlinepenalty=10000 -\endgraf\penalty 10000\vskip -\parskip\penalty 10000} +\endgraf\nobreak\vskip -\parskip\nobreak} % @defvr Counter foo-count @@ -3898,7 +4771,7 @@ width0pt\relax} \fi \def\defvar{\defvarparsebody\Edefvar\defvarx\defvarheader} \def\defvarheader #1#2{\doind {vr}{\code{#1}}% Make entry in var index -\begingroup\defname {#1}{Variable}% +\begingroup\defname {#1}{\putwordDefvar}% \defvarargs {#2}\endgroup % } @@ -3907,7 +4780,7 @@ width0pt\relax} \fi \def\defopt{\defvarparsebody\Edefopt\defoptx\defoptheader} \def\defoptheader #1#2{\doind {vr}{\code{#1}}% Make entry in var index -\begingroup\defname {#1}{User Option}% +\begingroup\defname {#1}{\putwordDefopt}% \defvarargs {#2}\endgroup % } @@ -3915,33 +4788,26 @@ width0pt\relax} \fi \def\deftypevar{\defvarparsebody\Edeftypevar\deftypevarx\deftypevarheader} -% #1 is the data type. #2 is the name. +% #1 is the data type. #2 is the name, perhaps followed by text that +% is actually part of the data type, which should not be put into the index. \def\deftypevarheader #1#2{% -\doind {vr}{\code{#2}}% Make entry in variables index -\begingroup\defname {\defheaderxcond#1\relax$$$#2}{Variable}% +\dovarind#2 \relax% Make entry in variables index +\begingroup\defname {\defheaderxcond#1\relax$$$#2}{\putwordDeftypevar}% \interlinepenalty=10000 -\endgraf\penalty 10000\vskip -\parskip\penalty 10000 +\endgraf\nobreak\vskip -\parskip\nobreak \endgroup} +\def\dovarind#1 #2\relax{\doind{vr}{\code{#1}}} % @deftypevr {Global Flag} int enable \def\deftypevr{\defvrparsebody\Edeftypevr\deftypevrx\deftypevrheader} -\def\deftypevrheader #1#2#3{\doind {vr}{\code{#3}}% +\def\deftypevrheader #1#2#3{\dovarind#3 \relax% \begingroup\defname {\defheaderxcond#2\relax$$$#3}{#1} \interlinepenalty=10000 -\endgraf\penalty 10000\vskip -\parskip\penalty 10000 +\endgraf\nobreak\vskip -\parskip\nobreak \endgroup} -% This definition is run if you use @defvarx -% anywhere other than immediately after a @defvar or @defvarx. - -\def\defvrx #1 {\errmessage{@defvrx in invalid context}} -\def\defvarx #1 {\errmessage{@defvarx in invalid context}} -\def\defoptx #1 {\errmessage{@defoptx in invalid context}} -\def\deftypevarx #1 {\errmessage{@deftypevarx in invalid context}} -\def\deftypevrx #1 {\errmessage{@deftypevrx in invalid context}} - % Now define @deftp % Args are printed in bold, a slight difference from @defvar. @@ -3954,45 +4820,394 @@ width0pt\relax} \fi \def\deftpheader #1#2#3{\doind {tp}{\code{#2}}% \begingroup\defname {#2}{#1}\deftpargs{#3}\endgroup} -% This definition is run if you use @deftpx, etc -% anywhere other than immediately after a @deftp, etc. +% These definitions are used if you use @defunx (etc.) +% anywhere other than immediately after a @defun or @defunx. +% +\def\defcvx#1 {\errmessage{@defcvx in invalid context}} +\def\deffnx#1 {\errmessage{@deffnx in invalid context}} +\def\defivarx#1 {\errmessage{@defivarx in invalid context}} +\def\defmacx#1 {\errmessage{@defmacx in invalid context}} +\def\defmethodx#1 {\errmessage{@defmethodx in invalid context}} +\def\defoptx #1 {\errmessage{@defoptx in invalid context}} +\def\defopx#1 {\errmessage{@defopx in invalid context}} +\def\defspecx#1 {\errmessage{@defspecx in invalid context}} +\def\deftpx#1 {\errmessage{@deftpx in invalid context}} +\def\deftypefnx#1 {\errmessage{@deftypefnx in invalid context}} +\def\deftypefunx#1 {\errmessage{@deftypefunx in invalid context}} +\def\deftypeivarx#1 {\errmessage{@deftypeivarx in invalid context}} +\def\deftypemethodx#1 {\errmessage{@deftypemethodx in invalid context}} +\def\deftypeopx#1 {\errmessage{@deftypeopx in invalid context}} +\def\deftypevarx#1 {\errmessage{@deftypevarx in invalid context}} +\def\deftypevrx#1 {\errmessage{@deftypevrx in invalid context}} +\def\defunx#1 {\errmessage{@defunx in invalid context}} +\def\defvarx#1 {\errmessage{@defvarx in invalid context}} +\def\defvrx#1 {\errmessage{@defvrx in invalid context}} + + +\message{macros,} +% @macro. + +% To do this right we need a feature of e-TeX, \scantokens, +% which we arrange to emulate with a temporary file in ordinary TeX. +\ifx\eTeXversion\undefined + \newwrite\macscribble + \def\scanmacro#1{% + \begingroup \newlinechar`\^^M + % Undo catcode changes of \startcontents and \doprintindex + \catcode`\@=0 \catcode`\\=12 \escapechar=`\@ + % Append \endinput to make sure that TeX does not see the ending newline. + \toks0={#1\endinput}% + \immediate\openout\macscribble=\jobname.tmp + \immediate\write\macscribble{\the\toks0}% + \immediate\closeout\macscribble + \let\xeatspaces\eatspaces + \input \jobname.tmp + \endgroup +} +\else +\def\scanmacro#1{% +\begingroup \newlinechar`\^^M +% Undo catcode changes of \startcontents and \doprintindex +\catcode`\@=0 \catcode`\\=12 \escapechar=`\@ +\let\xeatspaces\eatspaces\scantokens{#1\endinput}\endgroup} +\fi + +\newcount\paramno % Count of parameters +\newtoks\macname % Macro name +\newif\ifrecursive % Is it recursive? +\def\macrolist{} % List of all defined macros in the form + % \do\macro1\do\macro2... + +% Utility routines. +% Thisdoes \let #1 = #2, except with \csnames. +\def\cslet#1#2{% +\expandafter\expandafter +\expandafter\let +\expandafter\expandafter +\csname#1\endcsname +\csname#2\endcsname} + +% Trim leading and trailing spaces off a string. +% Concepts from aro-bend problem 15 (see CTAN). +{\catcode`\@=11 +\gdef\eatspaces #1{\expandafter\trim@\expandafter{#1 }} +\gdef\trim@ #1{\trim@@ @#1 @ #1 @ @@} +\gdef\trim@@ #1@ #2@ #3@@{\trim@@@\empty #2 @} +\def\unbrace#1{#1} +\unbrace{\gdef\trim@@@ #1 } #2@{#1} +} + +% Trim a single trailing ^^M off a string. +{\catcode`\^^M=12\catcode`\Q=3% +\gdef\eatcr #1{\eatcra #1Q^^MQ}% +\gdef\eatcra#1^^MQ{\eatcrb#1Q}% +\gdef\eatcrb#1Q#2Q{#1}% +} + +% Macro bodies are absorbed as an argument in a context where +% all characters are catcode 10, 11 or 12, except \ which is active +% (as in normal texinfo). It is necessary to change the definition of \. + +% It's necessary to have hard CRs when the macro is executed. This is +% done by making ^^M (\endlinechar) catcode 12 when reading the macro +% body, and then making it the \newlinechar in \scanmacro. + +\def\macrobodyctxt{% + \catcode`\~=12 + \catcode`\^=12 + \catcode`\_=12 + \catcode`\|=12 + \catcode`\<=12 + \catcode`\>=12 + \catcode`\+=12 + \catcode`\{=12 + \catcode`\}=12 + \catcode`\@=12 + \catcode`\^^M=12 + \usembodybackslash} + +\def\macroargctxt{% + \catcode`\~=12 + \catcode`\^=12 + \catcode`\_=12 + \catcode`\|=12 + \catcode`\<=12 + \catcode`\>=12 + \catcode`\+=12 + \catcode`\@=12 + \catcode`\\=12} + +% \mbodybackslash is the definition of \ in @macro bodies. +% It maps \foo\ => \csname macarg.foo\endcsname => #N +% where N is the macro parameter number. +% We define \csname macarg.\endcsname to be \realbackslash, so +% \\ in macro replacement text gets you a backslash. + +{\catcode`@=0 @catcode`@\=@active + @gdef@usembodybackslash{@let\=@mbodybackslash} + @gdef@mbodybackslash#1\{@csname macarg.#1@endcsname} +} +\expandafter\def\csname macarg.\endcsname{\realbackslash} + +\def\macro{\recursivefalse\parsearg\macroxxx} +\def\rmacro{\recursivetrue\parsearg\macroxxx} + +\def\macroxxx#1{% + \getargs{#1}% now \macname is the macname and \argl the arglist + \ifx\argl\empty % no arguments + \paramno=0% + \else + \expandafter\parsemargdef \argl;% + \fi + \if1\csname ismacro.\the\macname\endcsname + \message{Warning: redefining \the\macname}% + \else + \expandafter\ifx\csname \the\macname\endcsname \relax + \else \errmessage{The name \the\macname\space is reserved}\fi + \global\cslet{macsave.\the\macname}{\the\macname}% + \global\expandafter\let\csname ismacro.\the\macname\endcsname=1% + % Add the macroname to \macrolist + \toks0 = \expandafter{\macrolist\do}% + \xdef\macrolist{\the\toks0 + \expandafter\noexpand\csname\the\macname\endcsname}% + \fi + \begingroup \macrobodyctxt + \ifrecursive \expandafter\parsermacbody + \else \expandafter\parsemacbody + \fi} + +\def\unmacro{\parsearg\unmacroxxx} +\def\unmacroxxx#1{% + \if1\csname ismacro.#1\endcsname + \global\cslet{#1}{macsave.#1}% + \global\expandafter\let \csname ismacro.#1\endcsname=0% + % Remove the macro name from \macrolist + \begingroup + \edef\tempa{\expandafter\noexpand\csname#1\endcsname}% + \def\do##1{% + \def\tempb{##1}% + \ifx\tempa\tempb + % remove this + \else + \toks0 = \expandafter{\newmacrolist\do}% + \edef\newmacrolist{\the\toks0\expandafter\noexpand\tempa}% + \fi}% + \def\newmacrolist{}% + % Execute macro list to define \newmacrolist + \macrolist + \global\let\macrolist\newmacrolist + \endgroup + \else + \errmessage{Macro #1 not defined}% + \fi +} + +% This makes use of the obscure feature that if the last token of a +% is #, then the preceding argument is delimited by +% an opening brace, and that opening brace is not consumed. +\def\getargs#1{\getargsxxx#1{}} +\def\getargsxxx#1#{\getmacname #1 \relax\getmacargs} +\def\getmacname #1 #2\relax{\macname={#1}} +\def\getmacargs#1{\def\argl{#1}} + +% Parse the optional {params} list. Set up \paramno and \paramlist +% so \defmacro knows what to do. Define \macarg.blah for each blah +% in the params list, to be ##N where N is the position in that list. +% That gets used by \mbodybackslash (above). + +% We need to get `macro parameter char #' into several definitions. +% The technique used is stolen from LaTeX: let \hash be something +% unexpandable, insert that wherever you need a #, and then redefine +% it to # just before using the token list produced. +% +% The same technique is used to protect \eatspaces till just before +% the macro is used. + +\def\parsemargdef#1;{\paramno=0\def\paramlist{}% + \let\hash\relax\let\xeatspaces\relax\parsemargdefxxx#1,;,} +\def\parsemargdefxxx#1,{% + \if#1;\let\next=\relax + \else \let\next=\parsemargdefxxx + \advance\paramno by 1% + \expandafter\edef\csname macarg.\eatspaces{#1}\endcsname + {\xeatspaces{\hash\the\paramno}}% + \edef\paramlist{\paramlist\hash\the\paramno,}% + \fi\next} + +% These two commands read recursive and nonrecursive macro bodies. +% (They're different since rec and nonrec macros end differently.) + +\long\def\parsemacbody#1@end macro% +{\xdef\temp{\eatcr{#1}}\endgroup\defmacro}% +\long\def\parsermacbody#1@end rmacro% +{\xdef\temp{\eatcr{#1}}\endgroup\defmacro}% + +% This defines the macro itself. There are six cases: recursive and +% nonrecursive macros of zero, one, and many arguments. +% Much magic with \expandafter here. +% \xdef is used so that macro definitions will survive the file +% they're defined in; @include reads the file inside a group. +\def\defmacro{% + \let\hash=##% convert placeholders to macro parameter chars + \ifrecursive + \ifcase\paramno + % 0 + \expandafter\xdef\csname\the\macname\endcsname{% + \noexpand\scanmacro{\temp}}% + \or % 1 + \expandafter\xdef\csname\the\macname\endcsname{% + \bgroup\noexpand\macroargctxt + \noexpand\braceorline + \expandafter\noexpand\csname\the\macname xxx\endcsname}% + \expandafter\xdef\csname\the\macname xxx\endcsname##1{% + \egroup\noexpand\scanmacro{\temp}}% + \else % many + \expandafter\xdef\csname\the\macname\endcsname{% + \bgroup\noexpand\macroargctxt + \noexpand\csname\the\macname xx\endcsname}% + \expandafter\xdef\csname\the\macname xx\endcsname##1{% + \expandafter\noexpand\csname\the\macname xxx\endcsname ##1,}% + \expandafter\expandafter + \expandafter\xdef + \expandafter\expandafter + \csname\the\macname xxx\endcsname + \paramlist{\egroup\noexpand\scanmacro{\temp}}% + \fi + \else + \ifcase\paramno + % 0 + \expandafter\xdef\csname\the\macname\endcsname{% + \noexpand\norecurse{\the\macname}% + \noexpand\scanmacro{\temp}\egroup}% + \or % 1 + \expandafter\xdef\csname\the\macname\endcsname{% + \bgroup\noexpand\macroargctxt + \noexpand\braceorline + \expandafter\noexpand\csname\the\macname xxx\endcsname}% + \expandafter\xdef\csname\the\macname xxx\endcsname##1{% + \egroup + \noexpand\norecurse{\the\macname}% + \noexpand\scanmacro{\temp}\egroup}% + \else % many + \expandafter\xdef\csname\the\macname\endcsname{% + \bgroup\noexpand\macroargctxt + \expandafter\noexpand\csname\the\macname xx\endcsname}% + \expandafter\xdef\csname\the\macname xx\endcsname##1{% + \expandafter\noexpand\csname\the\macname xxx\endcsname ##1,}% + \expandafter\expandafter + \expandafter\xdef + \expandafter\expandafter + \csname\the\macname xxx\endcsname + \paramlist{% + \egroup + \noexpand\norecurse{\the\macname}% + \noexpand\scanmacro{\temp}\egroup}% + \fi + \fi} + +\def\norecurse#1{\bgroup\cslet{#1}{macsave.#1}} + +% \braceorline decides whether the next nonwhitespace character is a +% {. If so it reads up to the closing }, if not, it reads the whole +% line. Whatever was read is then fed to the next control sequence +% as an argument (by \parsebrace or \parsearg) +\def\braceorline#1{\let\next=#1\futurelet\nchar\braceorlinexxx} +\def\braceorlinexxx{% + \ifx\nchar\bgroup\else + \expandafter\parsearg + \fi \next} -\def\deftpx #1 {\errmessage{@deftpx in invalid context}} +% We mant to disable all macros during \shipout so that they are not +% expanded by \write. +\def\turnoffmacros{\begingroup \def\do##1{\let\noexpand##1=\relax}% + \edef\next{\macrolist}\expandafter\endgroup\next} -\message{cross reference,} -% Define cross-reference macros -\newwrite \auxfile -\newif\ifhavexrefs % True if xref values are known. +% @alias. +% We need some trickery to remove the optional spaces around the equal +% sign. Just make them active and then expand them all to nothing. +\def\alias{\begingroup\obeyspaces\parsearg\aliasxxx} +\def\aliasxxx #1{\aliasyyy#1\relax} +\def\aliasyyy #1=#2\relax{\ignoreactivespaces +\edef\next{\global\let\expandafter\noexpand\csname#1\endcsname=% + \expandafter\noexpand\csname#2\endcsname}% +\expandafter\endgroup\next} + + +\message{cross references,} +% @xref etc. + +\newwrite\auxfile + +\newif\ifhavexrefs % True if xref values are known. \newif\ifwarnedxrefs % True if we warned once that they aren't known. -% \setref{foo} defines a cross-reference point named foo. +% @inforef is relatively simple. +\def\inforef #1{\inforefzzz #1,,,,**} +\def\inforefzzz #1,#2,#3,#4**{\putwordSee{} \putwordInfo{} \putwordfile{} \file{\ignorespaces #3{}}, + node \samp{\ignorespaces#1{}}} + +% @node's job is to define \lastnode. +\def\node{\ENVcheck\parsearg\nodezzz} +\def\nodezzz#1{\nodexxx [#1,]} +\def\nodexxx[#1,#2]{\gdef\lastnode{#1}} +\let\nwnode=\node +\let\lastnode=\relax -\def\setref#1{% -\dosetq{#1-title}{Ytitle}% -\dosetq{#1-pg}{Ypagenumber}% -\dosetq{#1-snt}{Ysectionnumberandtype}} +% The sectioning commands (@chapter, etc.) call these. +\def\donoderef{% + \ifx\lastnode\relax\else + \expandafter\expandafter\expandafter\setref{\lastnode}% + {Ysectionnumberandtype}% + \global\let\lastnode=\relax + \fi +} +\def\unnumbnoderef{% + \ifx\lastnode\relax\else + \expandafter\expandafter\expandafter\setref{\lastnode}{Ynothing}% + \global\let\lastnode=\relax + \fi +} +\def\appendixnoderef{% + \ifx\lastnode\relax\else + \expandafter\expandafter\expandafter\setref{\lastnode}% + {Yappendixletterandtype}% + \global\let\lastnode=\relax + \fi +} -\def\unnumbsetref#1{% -\dosetq{#1-title}{Ytitle}% -\dosetq{#1-pg}{Ypagenumber}% -\dosetq{#1-snt}{Ynothing}} -\def\appendixsetref#1{% -\dosetq{#1-title}{Ytitle}% -\dosetq{#1-pg}{Ypagenumber}% -\dosetq{#1-snt}{Yappendixletterandtype}} +% @anchor{NAME} -- define xref target at arbitrary point. +% +\newcount\savesfregister +\gdef\savesf{\relax \ifhmode \savesfregister=\spacefactor \fi} +\gdef\restoresf{\relax \ifhmode \spacefactor=\savesfregister \fi} +\gdef\anchor#1{\savesf \setref{#1}{Ynothing}\restoresf \ignorespaces} + +% \setref{NAME}{SNT} defines a cross-reference point NAME, namely +% NAME-title, NAME-pg, and NAME-SNT. Called from \foonoderef. We have +% to set \indexdummies so commands such as @code in a section title +% aren't expanded. It would be nicer not to expand the titles in the +% first place, but there's so many layers that that is hard to do. +% +\def\setref#1#2{{% + \indexdummies + \pdfmkdest{#1}% + \dosetq{#1-title}{Ytitle}% + \dosetq{#1-pg}{Ypagenumber}% + \dosetq{#1-snt}{#2}% +}} -% \xref, \pxref, and \ref generate cross-references to specified points. -% For \xrefX, #1 is the node name, #2 the name of the Info -% cross-reference, #3 the printed node name, #4 the name of the Info -% file, #5 the name of the printed manual. All but the node name can be -% omitted. +% @xref, @pxref, and @ref generate cross-references. For \xrefX, #1 is +% the node name, #2 the name of the Info cross-reference, #3 the printed +% node name, #4 the name of the Info file, #5 the name of the printed +% manual. All but the node name can be omitted. % \def\pxref#1{\putwordsee{} \xrefX[#1,,,,,,,]} \def\xref#1{\putwordSee{} \xrefX[#1,,,,,,,]} \def\ref#1{\xrefX[#1,,,,,,,]} \def\xrefX[#1,#2,#3,#4,#5,#6]{\begingroup + \unsepspaces \def\printedmanual{\ignorespaces #5}% \def\printednodename{\ignorespaces #3}% \setbox1=\hbox{\printedmanual}% @@ -4005,7 +5220,7 @@ width0pt\relax} \fi \else % Use the actual chapter/section title appear inside % the square brackets. Use the real section title if we have it. - \ifdim \wd1>0pt% + \ifdim \wd1 > 0pt % It is in another manual, so we don't have it. \def\printednodename{\ignorespaces #1}% \else @@ -4026,27 +5241,54 @@ width0pt\relax} \fi % are best written with fairly long node names, containing hyphens, this % is a loss. Therefore, we give the text of the node name again, so it % is as if TeX is seeing it for the first time. + \ifpdf + \leavevmode + \getfilename{#4}% + \ifnum\filenamelength>0 + \startlink attr{/Border [0 0 0]}% + goto file{\the\filename.pdf} name{#1@}% + \else + \startlink attr{/Border [0 0 0]}% + goto name{#1@}% + \fi + \linkcolor + \fi + % \ifdim \wd1 > 0pt - \putwordsection{} ``\printednodename'' in \cite{\printedmanual}% + \putwordsection{} ``\printednodename'' \putwordin{} \cite{\printedmanual}% \else % _ (for example) has to be the character _ for the purposes of the % control sequence corresponding to the node, but it has to expand % into the usual \leavevmode...\vrule stuff for purposes of % printing. So we \turnoffactive for the \refx-snt, back on for the % printing, back off for the \refx-pg. - {\turnoffactive \refx{#1-snt}{}}% - \space [\printednodename],\space + {\normalturnoffactive + % Only output a following space if the -snt ref is nonempty; for + % @unnumbered and @anchor, it won't be. + \setbox2 = \hbox{\ignorespaces \refx{#1-snt}{}}% + \ifdim \wd2 > 0pt \refx{#1-snt}\space\fi + }% + % [mynode], + [\printednodename],\space + % page 3 \turnoffactive \putwordpage\tie\refx{#1-pg}{}% \fi + \endlink \endgroup} % \dosetq is the interface for calls from other macros -% Use \turnoffactive so that punctuation chars such as underscore -% work in node names. -\def\dosetq #1#2{{\let\folio=0 \turnoffactive \auxhat% -\edef\next{\write\auxfile{\internalsetq {#1}{#2}}}% -\next}} +% Use \normalturnoffactive so that punctuation chars such as underscore +% and backslash work in node names. (\turnoffactive doesn't do \.) +\def\dosetq#1#2{% + {\let\folio=0% + \normalturnoffactive + \edef\next{\write\auxfile{\internalsetq{#1}{#2}}}% + \iflinks + \next + \fi + }% +} % \internalsetq {foo}{page} expands into % CHARACTERS 'xrdef {foo}{...expansion of \Ypage...} @@ -4097,13 +5339,15 @@ width0pt\relax} \fi \def\refx#1#2{% \expandafter\ifx\csname X#1\endcsname\relax % If not defined, say something at least. - $\langle$un\-de\-fined$\rangle$% - \ifhavexrefs - \message{\linenumber Undefined cross reference `#1'.}% - \else - \ifwarnedxrefs\else - \global\warnedxrefstrue - \message{Cross reference values unknown; you must run TeX again.}% + \angleleft un\-de\-fined\angleright + \iflinks + \ifhavexrefs + \message{\linenumber Undefined cross reference `#1'.}% + \else + \ifwarnedxrefs\else + \global\warnedxrefstrue + \message{Cross reference values unknown; you must run TeX again.}% + \fi \fi \fi \else @@ -4113,84 +5357,101 @@ width0pt\relax} \fi #2% Output the suffix in any case. } -% Read the last existing aux file, if any. No error if none exists. - % This is the macro invoked by entries in the aux file. -\def\xrdef #1#2{ -{\catcode`\'=\other\expandafter \gdef \csname X#1\endcsname {#2}}} +% +\def\xrdef#1{\begingroup + % Reenable \ as an escape while reading the second argument. + \catcode`\\ = 0 + \afterassignment\endgroup + \expandafter\gdef\csname X#1\endcsname +} -\def\readauxfile{% -\begingroup -\catcode `\^^@=\other -\catcode `\=\other -\catcode `\=\other -\catcode `\^^C=\other -\catcode `\^^D=\other -\catcode `\^^E=\other -\catcode `\^^F=\other -\catcode `\^^G=\other -\catcode `\^^H=\other -\catcode `\ =\other -\catcode `\^^L=\other -\catcode `\=\other -\catcode `\=\other -\catcode `\=\other -\catcode `\=\other -\catcode `\=\other -\catcode `\=\other -\catcode `\=\other -\catcode `\=\other -\catcode `\=\other -\catcode `\=\other -\catcode `\=\other -\catcode `\=\other -\catcode 26=\other -\catcode `\^^[=\other -\catcode `\^^\=\other -\catcode `\^^]=\other -\catcode `\^^^=\other -\catcode `\^^_=\other -\catcode `\@=\other -\catcode `\^=\other -\catcode `\~=\other -\catcode `\[=\other -\catcode `\]=\other -\catcode`\"=\other -\catcode`\_=\other -\catcode`\|=\other -\catcode`\<=\other -\catcode`\>=\other -\catcode `\$=\other -\catcode `\#=\other -\catcode `\&=\other -% `\+ does not work, so use 43. -\catcode 43=\other -% Make the characters 128-255 be printing characters -{% - \count 1=128 - \def\loop{% - \catcode\count 1=\other - \advance\count 1 by 1 - \ifnum \count 1<256 \loop \fi +% Read the last existing aux file, if any. No error if none exists. +\def\readauxfile{\begingroup + \catcode`\^^@=\other + \catcode`\^^A=\other + \catcode`\^^B=\other + \catcode`\^^C=\other + \catcode`\^^D=\other + \catcode`\^^E=\other + \catcode`\^^F=\other + \catcode`\^^G=\other + \catcode`\^^H=\other + \catcode`\^^K=\other + \catcode`\^^L=\other + \catcode`\^^N=\other + \catcode`\^^P=\other + \catcode`\^^Q=\other + \catcode`\^^R=\other + \catcode`\^^S=\other + \catcode`\^^T=\other + \catcode`\^^U=\other + \catcode`\^^V=\other + \catcode`\^^W=\other + \catcode`\^^X=\other + \catcode`\^^Z=\other + \catcode`\^^[=\other + \catcode`\^^\=\other + \catcode`\^^]=\other + \catcode`\^^^=\other + \catcode`\^^_=\other + \catcode`\@=\other + \catcode`\^=\other + % It was suggested to define this as 7, which would allow ^^e4 etc. + % in xref tags, i.e., node names. But since ^^e4 notation isn't + % supported in the main text, it doesn't seem desirable. Furthermore, + % that is not enough: for node names that actually contain a ^ + % character, we would end up writing a line like this: 'xrdef {'hat + % b-title}{'hat b} and \xrdef does a \csname...\endcsname on the first + % argument, and \hat is not an expandable control sequence. It could + % all be worked out, but why? Either we support ^^ or we don't. + % + % The other change necessary for this was to define \auxhat: + % \def\auxhat{\def^{'hat }}% extra space so ok if followed by letter + % and then to call \auxhat in \setq. + % + \catcode`\~=\other + \catcode`\[=\other + \catcode`\]=\other + \catcode`\"=\other + \catcode`\_=\other + \catcode`\|=\other + \catcode`\<=\other + \catcode`\>=\other + \catcode`\$=\other + \catcode`\#=\other + \catcode`\&=\other + \catcode`+=\other % avoid \+ for paranoia even though we've turned it off + % Make the characters 128-255 be printing characters + {% + \count 1=128 + \def\loop{% + \catcode\count 1=\other + \advance\count 1 by 1 + \ifnum \count 1<256 \loop \fi + }% }% -}% -% the aux file uses ' as the escape. -% Turn off \ as an escape so we do not lose on -% entries which were dumped with control sequences in their names. -% For example, 'xrdef {$\leq $-fun}{page ...} made by @defun ^^ -% Reference to such entries still does not work the way one would wish, -% but at least they do not bomb out when the aux file is read in. -\catcode `\{=1 \catcode `\}=2 -\catcode `\%=\other -\catcode `\'=0 -\catcode`\^=7 % to make ^^e4 etc usable in xref tags -\catcode `\\=\other -\openin 1 \jobname.aux -\ifeof 1 \else \closein 1 \input \jobname.aux \global\havexrefstrue -\global\warnedobstrue -\fi -% Open the new aux file. Tex will close it automatically at exit. -\openout \auxfile=\jobname.aux + % The aux file uses ' as the escape (for now). + % Turn off \ as an escape so we do not lose on + % entries which were dumped with control sequences in their names. + % For example, 'xrdef {$\leq $-fun}{page ...} made by @defun ^^ + % Reference to such entries still does not work the way one would wish, + % but at least they do not bomb out when the aux file is read in. + \catcode`\{=1 + \catcode`\}=2 + \catcode`\%=\other + \catcode`\'=0 + \catcode`\\=\other + % + \openin 1 \jobname.aux + \ifeof 1 \else + \closein 1 + \input \jobname.aux + \global\havexrefstrue + \global\warnedobstrue + \fi + % Open the new aux file. TeX will close it automatically at exit. + \openout\auxfile=\jobname.aux \endgroup} @@ -4201,10 +5462,11 @@ width0pt\relax} \fi % The trailing space in the following definition for supereject is % vital for proper filling; pages come out unaligned when you do a % pagealignmacro call if that space before the closing brace is -% removed. +% removed. (Generally, numeric constants should always be followed by a +% space to prevent strange expansion errors.) \def\supereject{\par\penalty -20000\footnoteno =0 } -% @footnotestyle is meaningful for info output only.. +% @footnotestyle is meaningful for info output only. \let\footnotestyle=\comment \let\ptexfootnote=\footnote @@ -4230,7 +5492,11 @@ width0pt\relax} \fi % Don't bother with the trickery in plain.tex to not require the % footnote text as a parameter. Our footnotes don't need to be so general. % -\long\gdef\footnotezzz#1{\insert\footins{% +% Oh yes, they do; otherwise, @ifset and anything else that uses +% \parseargline fail inside footnotes because the tokens are fixed when +% the footnote is read. --karl, 16nov96. +% +\long\gdef\footnotezzz{\insert\footins\bgroup % We want to typeset this text as a normal paragraph, even if the % footnote reference occurs in (for example) a display environment. % So reset some parameters. @@ -4244,6 +5510,8 @@ width0pt\relax} \fi \xspaceskip\z@skip \parindent\defaultparindent % + \smallfonts \rm + % % Hang the footnote text off the number. \hang \textindent{\thisfootno}% @@ -4252,8 +5520,13 @@ width0pt\relax} \fi % expands into a box, it must come within the paragraph, lest it % provide a place where TeX can split the footnote. \footstrut - #1\strut}% + \futurelet\next\fo@t } +\def\fo@t{\ifcat\bgroup\noexpand\next \let\next\f@@t + \else\let\next\f@t\fi \next} +\def\f@@t{\bgroup\aftergroup\@foot\let\next} +\def\f@t#1{#1\@foot} +\def\@foot{\strut\par\egroup} }%end \catcode `\@=11 @@ -4310,31 +5583,117 @@ width0pt\relax} \fi % \def\finalout{\overfullrule=0pt} +% @image. We use the macros from epsf.tex to support this. +% If epsf.tex is not installed and @image is used, we complain. +% +% Check for and read epsf.tex up front. If we read it only at @image +% time, we might be inside a group, and then its definitions would get +% undone and the next image would fail. +\openin 1 = epsf.tex +\ifeof 1 \else + \closein 1 + % Do not bother showing banner with post-v2.7 epsf.tex (available in + % doc/epsf.tex until it shows up on ctan). + \def\epsfannounce{\toks0 = }% + \input epsf.tex +\fi +% +% We will only complain once about lack of epsf.tex. +\newif\ifwarnednoepsf +\newhelp\noepsfhelp{epsf.tex must be installed for images to + work. It is also included in the Texinfo distribution, or you can get + it from ftp://tug.org/tex/epsf.tex.} +% +\def\image#1{% + \ifx\epsfbox\undefined + \ifwarnednoepsf \else + \errhelp = \noepsfhelp + \errmessage{epsf.tex not found, images will be ignored}% + \global\warnednoepsftrue + \fi + \else + \imagexxx #1,,,\finish + \fi +} +% +% Arguments to @image: +% #1 is (mandatory) image filename; we tack on .eps extension. +% #2 is (optional) width, #3 is (optional) height. +% #4 is just the usual extra ignored arg for parsing this stuff. +\def\imagexxx#1,#2,#3,#4\finish{% + \ifpdf + \centerline{\dopdfimage{#1}{#2}{#3}}% + \else + % \epsfbox itself resets \epsf?size at each figure. + \setbox0 = \hbox{\ignorespaces #2}\ifdim\wd0 > 0pt \epsfxsize=#2\relax \fi + \setbox0 = \hbox{\ignorespaces #3}\ifdim\wd0 > 0pt \epsfysize=#3\relax \fi + \begingroup + \catcode`\^^M = 5 % in case we're inside an example + % If the image is by itself, center it. + \ifvmode + \nobreak\bigskip + % Usually we'll have text after the image which will insert + % \parskip glue, so insert it here too to equalize the space + % above and below. + \nobreak\vskip\parskip + \nobreak + \centerline{\epsfbox{#1.eps}}% + \bigbreak + \else + % In the middle of a paragraph, no extra space. + \epsfbox{#1.eps}% + \fi + \endgroup + \fi +} -% End of control word definitions. -\message{and turning on texinfo input format.} +\message{localization,} +% and i18n. -\def\openindices{% - \newindex{cp}% - \newcodeindex{fn}% - \newcodeindex{vr}% - \newcodeindex{tp}% - \newcodeindex{ky}% - \newcodeindex{pg}% +% @documentlanguage is usually given very early, just after +% @setfilename. If done too late, it may not override everything +% properly. Single argument is the language abbreviation. +% It would be nice if we could set up a hyphenation file here. +% +\def\documentlanguage{\parsearg\dodocumentlanguage} +\def\dodocumentlanguage#1{% + \tex % read txi-??.tex file in plain TeX. + % Read the file if it exists. + \openin 1 txi-#1.tex + \ifeof1 + \errhelp = \nolanghelp + \errmessage{Cannot read language file txi-#1.tex}% + \let\temp = \relax + \else + \def\temp{\input txi-#1.tex }% + \fi + \temp + \endgroup } +\newhelp\nolanghelp{The given language definition file cannot be found or +is empty. Maybe you need to install it? In the current directory +should work if nowhere else does.} -% Set some numeric style parameters, for 8.5 x 11 format. -%\hsize = 6.5in +% @documentencoding should change something in TeX eventually, most +% likely, but for now just recognize it. +\let\documentencoding = \comment + + +% Page size parameters. +% \newdimen\defaultparindent \defaultparindent = 15pt -\parindent = \defaultparindent -\parskip 18pt plus 1pt -\setleading{15pt} -\advance\topskip by 1.2cm + +\chapheadingskip = 15pt plus 4pt minus 2pt +\secheadingskip = 12pt plus 3pt minus 2pt +\subsecheadingskip = 9pt plus 2pt minus 2pt % Prevent underfull vbox error messages. -\vbadness=10000 +\vbadness = 10000 + +% Don't be so finicky about underfull hboxes, either. +\hbadness = 2000 % Following George Bush, just get rid of widows and orphans. \widowpenalty=10000 @@ -4343,98 +5702,127 @@ width0pt\relax} \fi % Use TeX 3.0's \emergencystretch to help line breaking, but if we're % using an old version of TeX, don't do anything. We want the amount of % stretch added to depend on the line length, hence the dependence on -% \hsize. This makes it come to about 9pt for the 8.5x11 format. +% \hsize. We call this whenever the paper size is set. % -\ifx\emergencystretch\thisisundefined - % Allow us to assign to \emergencystretch anyway. - \def\emergencystretch{\dimen0}% -\else - \emergencystretch = \hsize - \divide\emergencystretch by 45 -\fi - -% Use @smallbook to reset parameters for 7x9.5 format (or else 7x9.25) -\def\smallbook{ - -% These values for secheadingskip and subsecheadingskip are -% experiments. RJC 7 Aug 1992 -\global\secheadingskip = 17pt plus 6pt minus 3pt -\global\subsecheadingskip = 14pt plus 6pt minus 3pt +\def\setemergencystretch{% + \ifx\emergencystretch\thisisundefined + % Allow us to assign to \emergencystretch anyway. + \def\emergencystretch{\dimen0}% + \else + \emergencystretch = .15\hsize + \fi +} -\global\lispnarrowing = 0.3in -\setleading{12pt} -\advance\topskip by -1cm -\global\parskip 3pt plus 1pt -\global\hsize = 5in -\global\vsize=7.5in -\global\tolerance=700 -\global\hfuzz=1pt -\global\contentsrightmargin=0pt -\global\deftypemargin=0pt -\global\defbodyindent=.5cm +% Parameters in order: 1) textheight; 2) textwidth; 3) voffset; +% 4) hoffset; 5) binding offset; 6) topskip. Then whoever calls us can +% set \parskip and call \setleading for \baselineskip. +% +\def\internalpagesizes#1#2#3#4#5#6{% + \voffset = #3\relax + \topskip = #6\relax + \splittopskip = \topskip + % + \vsize = #1\relax + \advance\vsize by \topskip + \outervsize = \vsize + \advance\outervsize by 2\topandbottommargin + \pageheight = \vsize + % CLN wants a little wider page, hence we enlarge the width by 0.6in... + \hsize = #2\relax + \outerhsize = \hsize + \advance\outerhsize by 0.5in + \advance\hsize by 0.6in + \pagewidth = \hsize + % ...wich also calls for a change in the hoffset. + \normaloffset = #4\relax + \advance\normaloffset by -0.3in + \bindingoffset = #5\relax + % + \parindent = \defaultparindent + \setemergencystretch +} -\global\pagewidth=\hsize -\global\pageheight=\vsize +% @letterpaper (the default). +\def\letterpaper{{\globaldefs = 1 + \parskip = 3pt plus 2pt minus 1pt + \setleading{13.2pt}% + % + % If page is nothing but text, make it come out even. + \internalpagesizes{46\baselineskip}{6in}{\voffset}{.25in}{\bindingoffset}{36pt}% +}} -\global\let\smalllisp=\smalllispx -\global\let\smallexample=\smalllispx -\global\def\Esmallexample{\Esmalllisp} -} +% Use @smallbook to reset parameters for 7x9.5 (or so) format. +\def\smallbook{{\globaldefs = 1 + \parskip = 2pt plus 1pt + \setleading{12pt}% + % + \internalpagesizes{7.5in}{5.in}{\voffset}{.25in}{\bindingoffset}{16pt}% + % + \lispnarrowing = 0.3in + \tolerance = 700 + \hfuzz = 1pt + \contentsrightmargin = 0pt + \deftypemargin = 0pt + \defbodyindent = .5cm + % + \let\smalldisplay = \smalldisplayx + \let\smallexample = \smalllispx + \let\smallformat = \smallformatx + \let\smalllisp = \smalllispx +}} % Use @afourpaper to print on European A4 paper. -\def\afourpaper{ -\global\tolerance=700 -\global\hfuzz=1pt -\setleading{12pt} -\global\parskip 15pt plus 1pt - -\global\vsize= 53\baselineskip -\advance\vsize by \topskip -%\global\hsize= 5.85in % A4 wide 10pt -\global\hsize= 6.5in -\global\outerhsize=\hsize -\global\advance\outerhsize by 0.5in -\global\outervsize=\vsize -\global\advance\outervsize by 0.6in - -\global\pagewidth=\hsize -\global\pageheight=\vsize -} - -% Allow control of the text dimensions. Parameters in order: textheight; -% textwidth; voffset; hoffset; binding offset; topskip. -% All require a dimension; -% header is additional; added length extends the bottom of the page. - -\def\changepagesizes#1#2#3#4#5#6{ - \global\vsize= #1 - \global\topskip= #6 - \advance\vsize by \topskip - \global\voffset= #3 - \global\hsize= #2 - \global\outerhsize=\hsize - \global\advance\outerhsize by 0.5in - \global\outervsize=\vsize - \global\advance\outervsize by 0.6in - \global\pagewidth=\hsize - \global\pageheight=\vsize - \global\normaloffset= #4 - \global\bindingoffset= #5} +\def\afourpaper{{\globaldefs = 1 + \setleading{12pt}% + \parskip = 3pt plus 2pt minus 1pt + % + \internalpagesizes{53\baselineskip}{160mm}{\voffset}{4mm}{\bindingoffset}{44pt}% + % + \tolerance = 700 + \hfuzz = 1pt +}} % A specific text layout, 24x15cm overall, intended for A4 paper. Top margin % 29mm, hence bottom margin 28mm, nominal side margin 3cm. -\def\afourlatex - {\global\tolerance=700 - \global\hfuzz=1pt - \setleading{12pt} - \global\parskip 15pt plus 1pt - \advance\baselineskip by 1.6pt - \changepagesizes{237mm}{150mm}{3.6mm}{3.6mm}{3mm}{7mm} - } +\def\afourlatex{{\globaldefs = 1 + \setleading{13.6pt}% + % + \afourpaper + \internalpagesizes{237mm}{150mm}{3.6mm}{3.6mm}{3mm}{7mm}% + % + \globaldefs = 0 +}} % Use @afourwide to print on European A4 paper in wide format. -\def\afourwide{\afourpaper -\changepagesizes{9.5in}{6.5in}{\hoffset}{\normaloffset}{\bindingoffset}{7mm}} +\def\afourwide{% + \afourpaper + \internalpagesizes{6.5in}{9.5in}{\hoffset}{\normaloffset}{\bindingoffset}{7mm}% + % + \globaldefs = 0 +} + +% @pagesizes TEXTHEIGHT[,TEXTWIDTH] +% Perhaps we should allow setting the margins, \topskip, \parskip, +% and/or leading, also. Or perhaps we should compute them somehow. +% +\def\pagesizes{\parsearg\pagesizesxxx} +\def\pagesizesxxx#1{\pagesizesyyy #1,,\finish} +\def\pagesizesyyy#1,#2,#3\finish{{% + \setbox0 = \hbox{\ignorespaces #2}\ifdim\wd0 > 0pt \hsize=#2\relax \fi + \globaldefs = 1 + % + \parskip = 3pt plus 2pt minus 1pt + \setleading{13.2pt}% + % + \internalpagesizes{#1}{\hsize}{\voffset}{\normaloffset}{\bindingoffset}{44pt}% +}} + +% Set default to letter. +% +\letterpaper + + +\message{and turning on texinfo input format.} % Define macros to output various characters with catcode for normal text. \catcode`\"=\other @@ -4445,6 +5833,7 @@ width0pt\relax} \fi \catcode`\<=\other \catcode`\>=\other \catcode`\+=\other +\catcode`\$=\other \def\normaldoublequote{"} \def\normaltilde{~} \def\normalcaret{^} @@ -4453,6 +5842,7 @@ width0pt\relax} \fi \def\normalless{<} \def\normalgreater{>} \def\normalplus{+} +\def\normaldollar{$} % This macro is used to make a character print one way in ttfont % where it can probably just be output, and another way in other fonts, @@ -4463,7 +5853,13 @@ width0pt\relax} \fi % interword stretch (and shrink), and it is reasonable to expect all % typewriter fonts to have this, we can check that font parameter. % -\def\ifusingtt#1#2{\ifdim \fontdimen3\the\font=0pt #1\else #2\fi} +\def\ifusingtt#1#2{\ifdim \fontdimen3\font=0pt #1\else #2\fi} + +% Same as above, but check for italic font. Actually this also catches +% non-italic slanted fonts since it is impossible to distinguish them from +% italic fonts. But since this is only used by $ and it uses \sl anyway +% this is not a problem. +\def\ifusingit#1#2{\ifdim \fontdimen1\font>0pt #1\else #2\fi} % Turn off all special characters except @ % (and those which the user can use as if they were ordinary). @@ -4471,13 +5867,12 @@ width0pt\relax} \fi % use math or other variants that look better in normal text. \catcode`\"=\active -\def\activedoublequote{{\tt \char '042}} +\def\activedoublequote{{\tt\char34}} \let"=\activedoublequote \catcode`\~=\active -\def~{{\tt \char '176}} +\def~{{\tt\char126}} \chardef\hat=`\^ \catcode`\^=\active -\def\auxhat{\def^{'hat}} \def^{{\tt \hat}} \catcode`\_=\active @@ -4486,7 +5881,7 @@ width0pt\relax} \fi \def\_{\leavevmode \kern.06em \vbox{\hrule width.3em height.1ex}} \catcode`\|=\active -\def|{{\tt \char '174}} +\def|{{\tt\char124}} \chardef \less=`\< \catcode`\<=\active \def<{{\tt \less}} @@ -4495,6 +5890,8 @@ width0pt\relax} \fi \def>{{\tt \gtr}} \catcode`\+=\active \def+{{\tt \char 43}} +\catcode`\$=\active +\def${\ifusingit{{\sl\$}}\normaldollar} %\catcode 27=\active %\def^^[{$\diamondsuit$} @@ -4525,9 +5922,6 @@ width0pt\relax} \fi % \normalbackslash outputs one backslash in fixed width font. \def\normalbackslash{{\tt\rawbackslashxx}} -% Say @foo, not \foo, in error messages. -\escapechar=`\@ - % \catcode 17=0 % Define control-q \catcode`\\=\active @@ -4541,7 +5935,8 @@ width0pt\relax} \fi @let|=@normalverticalbar @let<=@normalless @let>=@normalgreater -@let+=@normalplus} +@let+=@normalplus +@let$=@normaldollar} @def@normalturnoffactive{@let"=@normaldoublequote @let\=@normalbackslash @@ -4551,7 +5946,8 @@ width0pt\relax} \fi @let|=@normalverticalbar @let<=@normalless @let>=@normalgreater -@let+=@normalplus} +@let+=@normalplus +@let$=@normaldollar} % Make _ and + \other characters, temporarily. % This is canceled by @fixbackslash. @@ -4570,16 +5966,29 @@ width0pt\relax} \fi % Also back turn on active characters that might appear in the input % file name, in case not using a pre-dumped format. % -@gdef@fixbackslash{@ifx\@eatinput @let\ = @normalbackslash @fi - @catcode`+=@active @catcode`@_=@active} +@gdef@fixbackslash{% + @ifx\@eatinput @let\ = @normalbackslash @fi + @catcode`+=@active + @catcode`@_=@active +} + +% Say @foo, not \foo, in error messages. +@escapechar = `@@ -%% These look ok in all fonts, so just make them not special. The @rm below -%% makes sure that the current font starts out as the newly loaded cmr10 -@catcode`@$=@other @catcode`@%=@other @catcode`@&=@other @catcode`@#=@other +% These look ok in all fonts, so just make them not special. +@catcode`@& = @other +@catcode`@# = @other +@catcode`@% = @other +@c Set initial fonts. @textfonts @rm + @c Local variables: +@c eval: (add-hook 'write-file-hooks 'time-stamp) @c page-delimiter: "^\\\\message" +@c time-stamp-start: "def\\\\texinfoversion{" +@c time-stamp-format: "%:y-%02m-%02d.%02H" +@c time-stamp-end: "}" @c End: -- 2.49.0

  • 2.1.3 Sed utility