File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -72,3 +72,5 @@ Functions list (see in-code documentation for more detail)
7272| ` Quad ` | Po-Shen quadratic solver |
7373| ` PSet ` | Powerset of a list |
7474| ` FFTConvolve ` | Rank-polymorphic convolution using fast fourier transform |
75+ | ` Ode‼ ` | Numerical integrator |
76+ | ` Ode‼! ` | More configurable version of ` Ode‼ ` |
Original file line number Diff line number Diff line change @@ -520,6 +520,15 @@ OdeImpl‼ ↚ (
520520#
521521# The first of the three functions can be used to set optional arguments, namely ε, the error bound for the integration.
522522# The remaining two functions correspond to those of `Ode‼`.
523+ #
524+ # Example: Changing simulation precision
525+ # This sets the simulation precision threshold to a larger value (meaning less precision, with a cheaper simulation).
526+ # ```uiua
527+ # g ← 9.81 # Gravity
528+ # L ← 1 # Pendulum length
529+ # μ ← 0.5 # Damping coefficient
530+ # Ode‼!(°⊸ε1e¯3|⋅⊃[⊣|¯+˜∩×g μ÷L∿°⊟]|<10) 0 [0 12]
531+ # ```
523532Ode‼! ← OdeImpl‼^1^2 OdeConfig!(^0($"_New"˜▽@⊙-1⊢⋅⊢)^!^0)
524533# Numerical integrator
525534#
You can’t perform that action at this time.
0 commit comments