Solve equations.
Try typed-array linear algebra, an expression compiler, Newton root finding and RK4 integration. Benchmarks run on your device when you start them.
Linear systems · A·x = b
System size 256 × 256
Press solve to measure on this machine.
Expression compiler
Compiled to((Math.sin(x)*Math.exp(((-x)/8)))+(x/4))
Root finding · Newton
n=0 1.00000000000 f = -2.00e+0
n=1 2.00000000003 f = 4.00e+0
n=2 1.63636363635 f = 7.45e-1
n=3 1.53039205213 f = 5.39e-2
n=4 1.52144146514 f = 3.67e-4
n=5 1.52137970973 f = 1.74e-8
n=6 1.52137970680 f = 0.00e+0
Root 1.52137970680457 (6 steps)
Differential equations · RK4
y′ = y, y(0) = 1 y(1) = 2.7182818282
RK4 error vs e 2.25 × 10^-10
Damped oscillator y″ = −y − 0.22·y′ as a system — position (solid) and velocity (dashed), 600 steps.