Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
playground:playground [2021/09/27 10:57] jojo1973 created |
playground:playground [2021/10/11 13:50] (current) jojo1973 created |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ==== Numerical integration ==== | + | Have fun! |
| - | + | ||
| - | Numeric integration of symbolic expressions is implemented in **newRPL** via the '' | + | |
| - | + | ||
| - | '' | + | |
| - | + | ||
| - | * the mono-variate function to integrate, either in __symbolic__ or __program__ form; | + | |
| - | * the lower integration limit; | + | |
| - | * the upper integration limit; | + | |
| - | * the error tolerance. | + | |
| - | + | ||
| - | If the **function** to integrate is expressed in symbolic form it must respect a precise syntax: | + | |
| - | + | ||
| - | * it must be written as an equation; | + | |
| - | * the left side must be in the form ''// | + | |
| - | * the right side is a function, expressed in terms of ''// | + | |
| - | + | ||
| - | For example valid expressions are: | + | |
| - | < | + | |
| - | F(X)=X*LN(X) | + | |
| - | G(Z)=Z^2-2*COS(Z) | + | |
| - | VEL(T)=ACC*T | + | |
| - | </ | + | |
| - | As shown above, the functions may refer to global or local variables; the function' | + | |
| - | + | ||
| - | Alternatively, | + | |
| - | < | + | |
| - | « DUP LN * » | + | |
| - | « DUP SQ SWAP COS 2 * - » | + | |
| - | « ' | + | |
| - | </ | + | |
| - | + | ||
| - | The **integration limits** can be either real or complex __finite__ numbers; symbolic constants are accepted and silently converted to numerical values. | + | |
| - | + | ||
| - | The **error tolerance** is a real number used to specify the required precision of the calculation: | + | |
| - | + | ||
| - | === Examples === | + | |
| - | + | ||
| - | The following examples are calculated with 16 precision digits at three different tolerances. If available, the analytic result is provided for comparison. | + | |
| - | + | ||
| - | ^ Function ^ Tolerance ^^^ Exact Solution | + | |
| - | ^ ::: ^ '' | + | |