Skip to content

Commit 73aa1c6

Browse files
committed
Update readme and A!! macro
1 parent 9d25d32 commit 73aa1c6

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,5 +72,7 @@ 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 |
75+
| `Ode‼` | Numerical integrator, simulates while predicate is true |
7676
| `Ode‼!` | More configurable version of `Ode‼` |
77+
| `OdeT!` | Numerical integrator, outputs specific time samples |
78+
| `OdeT‼` | More configurable version of `OdeT!` |

lib.ua

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -484,9 +484,7 @@ PSet ← ⍚▽⋯⇡˜ⁿ2⧻⟜¤
484484
HMax ← 1
485485
}
486486

487-
# Temporarily public until macro scoping bug is fixed
488-
# Import when using `Ode‼` or `Ode‼!`
489-
A‼ ←^ $"∩_(_)"+@₀⬚0⍜⧻↥₁⇌⊥10-2⊢˜⊓⊢⊏₁
487+
A‼ ↚^ $"∩_(_)"+@₀⬚0⍜⧻↥₁⇌⊥10-2⊢˜⊓⊢⊏₁
490488
B‼ ↚^ $"∩_(_)"+@₀⬚0⍜⧻↥₁⇌⊥10⊢˜⊓⊢⊏₁
491489
C‼ ↚^ $"∩_(_)"+@₀⬚0⍜⧻↥₁⇌⊥10-1⊢˜⊓⊢⊏₁
492490

@@ -549,8 +547,6 @@ Ode‼! ← OdeImpl‼^1^2 OdeConfig!(^0($"_New"˜▽@⊙-1⊢⋅⊢)^!^0)
549547

550548
# Numerical integrator
551549
#
552-
# Note: Due to a current bug in the interpreter, using this macro temporarily requires also importing the `A‼` macro from this library.
553-
#
554550
# Takes two functions and two values.
555551
# - The first function should take a time value and a state vector and output the derivative of the state vector.
556552
# - The second function should take anywhere from 1 to 4 arguments and return 0 or 1 for whether to continue simulating. Based on how many inputs the second function takes, it will be passed:
@@ -609,8 +605,6 @@ OdeT‼ ← (
609605

610606
# Numerical integrator
611607
#
612-
# Note: Due to a current bug in the interpreter, using this macro temporarily requires also importing the `A‼` macro from this library.
613-
#
614608
# Takes a function and two values.
615609
# The function should take a time value and a state vector and output the derivative of the state vector.
616610
# The two values should be as follows:

0 commit comments

Comments
 (0)