mpfr-unary-operators.html 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <html lang="en">
  2. <head>
  3. <title>mpfr unary operators - 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="mpfr.html#mpfr" title="mpfr">
  9. <link rel="prev" href="mpfr-binary-operators.html#mpfr-binary-operators" title="mpfr binary operators">
  10. <link rel="next" href="mpfr-binary-operators-with-a-natural-operand.html#mpfr-binary-operators-with-a-natural-operand" title="mpfr binary operators with a natural operand">
  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-unary-operators"></a>
  28. <p>
  29. Next:&nbsp;<a rel="next" accesskey="n" href="mpfr-binary-operators-with-a-natural-operand.html#mpfr-binary-operators-with-a-natural-operand">mpfr binary operators with a natural operand</a>,
  30. Previous:&nbsp;<a rel="previous" accesskey="p" href="mpfr-binary-operators.html#mpfr-binary-operators">mpfr binary operators</a>,
  31. Up:&nbsp;<a rel="up" accesskey="u" href="mpfr.html#mpfr">mpfr</a>
  32. <hr>
  33. </div>
  34. <h4 class="subsection">D.14.2 <code>mpfr</code> unary operators</h4>
  35. <p>Functions with these names take a single <code>mpfr</code> number as an
  36. argument and return a single <code>mpfr</code> number as a result.
  37. <a name="index-gamma-functions-794"></a>
  38. <pre class="example"> sqr sqrt cbrt neg abs log
  39. log2 log10 exp exp2 exp10 cos
  40. sin tan acos asin atan cosh
  41. sinh tanh acosh asinh atanh lngamma
  42. expm1 eint gamma erf log1p nextbelow
  43. ceil floor round trunc frac nextabove
  44. erfc
  45. </pre>
  46. <p>The semantics of these functions are similar to those of their
  47. counterparts in the native API, with these provisions.
  48. <ul>
  49. <li>The precision of the result is the precision of the argument.
  50. <li>There is no second argument for assigning the result.
  51. <li>The <code>nextabove</code> and <code>nextbelow</code> functions do not modify
  52. their arguments in place, but return a freshly allocated result
  53. like all other functions.
  54. </ul>
  55. </body></html>