12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- <html lang="en">
- <head>
- <title>gslint input parameters - avram - a virtual machine code interpreter</title>
- <meta http-equiv="Content-Type" content="text/html">
- <meta name="description" content="avram - a virtual machine code interpreter">
- <meta name="generator" content="makeinfo 4.13">
- <link title="Top" rel="start" href="index.html#Top">
- <link rel="up" href="gslint.html#gslint" title="gslint">
- <link rel="prev" href="gslint.html#gslint" title="gslint">
- <link rel="next" href="gslint-output.html#gslint-output" title="gslint output">
- <link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
- <meta http-equiv="Content-Style-Type" content="text/css">
- <style type="text/css"><!--
- pre.display { font-family:inherit }
- pre.format { font-family:inherit }
- pre.smalldisplay { font-family:inherit; font-size:smaller }
- pre.smallformat { font-family:inherit; font-size:smaller }
- pre.smallexample { font-size:smaller }
- pre.smalllisp { font-size:smaller }
- span.sc { font-variant:small-caps }
- span.roman { font-family:serif; font-weight:normal; }
- span.sansserif { font-family:sans-serif; font-weight:normal; }
- --></style>
- </head>
- <body>
- <div class="node">
- <a name="gslint-input-parameters"></a>
- <p>
- Next: <a rel="next" accesskey="n" href="gslint-output.html#gslint-output">gslint output</a>,
- Previous: <a rel="previous" accesskey="p" href="gslint.html#gslint">gslint</a>,
- Up: <a rel="up" accesskey="u" href="gslint.html#gslint">gslint</a>
- <hr>
- </div>
- <h4 class="subsection">D.7.1 <code>gslint</code> input parameters</h4>
- <p>The library functions <code>qng</code> and <code>qagx</code> take an
- argument of the form <code>(</code><var>f</var><code>,(</code><var>a</var><code>,</code><var>b</var><code>))</code>, where <var>f</var>
- is a function to be integrated, <var>a</var> is the lower limit, and
- <var>b</var> is the upper limit, both limits being floating point numbers
- as in <a href="math.html#math">math</a>.
- <p>The <code>qng_tol</code> and <code>qagx_tol</code> functions take an argument of
- <a name="index-tolerance-727"></a>the form <code>((</code><var>f</var><code>,</code><var>t</var><code>),(</code><var>a</var><code>,</code><var>b</var><code>))</code>, where <var>f</var>,
- <var>a</var>, and <var>b</var> are as above, and <var>t</var> is a specified
- tolerance.
- <p>The <code>qagp</code> and <code>qagp_tol</code> functions take arguments of
- the form <code>(</code><var>f</var><code>,</code><var>p</var><code>)</code> and
- <code>((</code><var>f</var><code>,</code><var>t</var><code>),</code><var>p</var><code>)</code>, respectively, where <var>f</var> and
- <var>t</var> are as above, and <var>p</var> is an ordered list of real numbers
- specifying the limits of integration along with arbitrarily many
- intervening breakpoints.
- <p>The integrand <var>f</var> is expressed in virtual machine code, and takes a
- single real argument to a real result. The argument and result of
- <var>f</var> are required to be floating point numbers as described in
- <a href="math.html#math">math</a>. Any expressible function of this type is acceptable, even
- one defined in terms of other integrals, so that a double or triple
- integral can be expressed easily, albeit a costly computation.
- However, a constant overhead in stack space is required for each
- nested library function call, and there is currently no mechanism to
- <a name="index-segmentation-fault-728"></a>prevent segmentation faults due to a stack overflow.
- <p>When no tolerance is specified, as with <code>qng</code>, <code>qagx</code>, and
- <code>qagp</code>, the tightest attainable tolerance is chosen by default,
- currently <code>2e-14</code>, in order find the most accurate result
- possible. A selection of progressively looser tolerances is tried
- automatically if the tightest one is not successful, stopping when
- either a solution is found or ten orders of magnitude are covered.
- <p>If a tolerance is explicitly specified, as with <code>qng_tol</code>,
- <code>qagx_tol</code> or <code>qagp_tol</code>, only that tolerance is tried.
- </body></html>
|