Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
playground:playground [2021/09/29 15:20] jojo1973 |
playground:playground [2021/10/11 13:50] (current) jojo1973 created |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ==== Numerical integration ==== | + | Have fun! |
- | + | ||
- | Numeric integration of symbolic expressions is performed 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: | + | |
- | + | ||
- | < | + | |
- | ' | + | |
- | ' | + | |
- | ' | + | |
- | </ | + | |
- | + | ||
- | 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: | + | |
- | + | ||
- | ---- | + | |
- | + | ||
- | === Example 1: Bound function on closed interval === | + | |
- | + | ||
- | | pic | $$ \int^{2}_{0} x^{10}e^{\left(4x^{3}-3x^{4}\right)} \,dx $$ ||| | + | |
- | | ::: | tol=10< | + | |
- | | ::: | tol=10< | + | |
- | | ::: | tol=10< | + | |
- | | ::: | Exact at the precision shown | **7.258 395 170 614 291** ... | Δ ≤ 10< | + | |
- | + | ||
- | + | ||
- | |{{: | + |