mpfr.html 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <html lang="en">
  2. <head>
  3. <title>mpfr - avram - a virtual machine code interpreter</title>
  4. <meta http-equiv="Content-Type" content="text/html">
  5. <meta name="description" content="avram - a virtual machine code interpreter">
  6. <meta name="generator" content="makeinfo 4.13">
  7. <link title="Top" rel="start" href="index.html#Top">
  8. <link rel="up" href="External-Libraries.html#External-Libraries" title="External Libraries">
  9. <link rel="prev" href="minpack.html#minpack" title="minpack">
  10. <link rel="next" href="lpsolve.html#lpsolve" title="lpsolve">
  11. <link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
  12. <meta http-equiv="Content-Style-Type" content="text/css">
  13. <style type="text/css"><!--
  14. pre.display { font-family:inherit }
  15. pre.format { font-family:inherit }
  16. pre.smalldisplay { font-family:inherit; font-size:smaller }
  17. pre.smallformat { font-family:inherit; font-size:smaller }
  18. pre.smallexample { font-size:smaller }
  19. pre.smalllisp { font-size:smaller }
  20. span.sc { font-variant:small-caps }
  21. span.roman { font-family:serif; font-weight:normal; }
  22. span.sansserif { font-family:sans-serif; font-weight:normal; }
  23. --></style>
  24. </head>
  25. <body>
  26. <div class="node">
  27. <a name="mpfr"></a>
  28. <p>
  29. Next:&nbsp;<a rel="next" accesskey="n" href="lpsolve.html#lpsolve">lpsolve</a>,
  30. Previous:&nbsp;<a rel="previous" accesskey="p" href="minpack.html#minpack">minpack</a>,
  31. Up:&nbsp;<a rel="up" accesskey="u" href="External-Libraries.html#External-Libraries">External Libraries</a>
  32. <hr>
  33. </div>
  34. <h3 class="section">D.14 <code>mpfr</code></h3>
  35. <p>The <code>mpfr</code> library provides a rich assortment of floating point
  36. operations on arbitrary precision numbers
  37. (<a href="http://www.mpfr.org">http://www.mpfr.org</a>). These numbers are represented in a format
  38. that is not binary compatible with the standard IEEE floating point
  39. number format used by other libraries, but they offer superior
  40. numerical stability suitable for many ill conditioned problems.
  41. <p>The virtual code interface to the <code>mpfr</code> library follows the
  42. native API to the extent of using the same names for most operations,
  43. but excludes features pertaining to i/o, mutable storage, and memory
  44. management.
  45. <p>The <code>mpfr</code> library functions are invoked by an expression of the
  46. form
  47. <pre class="example"> library('mpfr',f)
  48. </pre>
  49. <p class="noindent">Aside from a few exceptions as noted, <code>f</code> is a character string
  50. derived from the name of the related function from the <code>mpfr</code> C
  51. library as documented at the above address, but without the
  52. <code>mpfr_</code> prefix.
  53. <p>The full complement of available functions is documented in the
  54. remainder of this section.
  55. <ul>
  56. <li>References to natural numbers pertain to the list representation
  57. described in <a href="Representation-of-Numeric-and-Textual-Data.html#Representation-of-Numeric-and-Textual-Data">Representation of Numeric and Textual Data</a>.
  58. <li>All functions that perform rounding use a mode of <code>GMP_RNDN</code> for
  59. <a name="index-rounding-792"></a>rounding to nearest, which is not explicitly specified on the virtual
  60. side.
  61. </ul>
  62. <ul class="menu">
  63. <li><a accesskey="1" href="mpfr-binary-operators.html#mpfr-binary-operators">mpfr binary operators</a>
  64. <li><a accesskey="2" href="mpfr-unary-operators.html#mpfr-unary-operators">mpfr unary operators</a>
  65. <li><a accesskey="3" href="mpfr-binary-operators-with-a-natural-operand.html#mpfr-binary-operators-with-a-natural-operand">mpfr binary operators with a natural operand</a>
  66. <li><a accesskey="4" href="mpfr-binary-predicates.html#mpfr-binary-predicates">mpfr binary predicates</a>
  67. <li><a accesskey="5" href="mpfr-unary-predicates.html#mpfr-unary-predicates">mpfr unary predicates</a>
  68. <li><a accesskey="6" href="mpfr-constants.html#mpfr-constants">mpfr constants</a>
  69. <li><a accesskey="7" href="mpfr-functions-with-miscellaneous-calling-conventions.html#mpfr-functions-with-miscellaneous-calling-conventions">mpfr functions with miscellaneous calling conventions</a>
  70. <li><a accesskey="8" href="mpfr-conversion-functions.html#mpfr-conversion-functions">mpfr conversion functions</a>
  71. <li><a accesskey="9" href="mpfr-exceptions.html#mpfr-exceptions">mpfr exceptions</a>
  72. <li><a href="Additional-mpfr-notes.html#Additional-mpfr-notes">Additional mpfr notes</a>
  73. </ul>
  74. </body></html>