Tessero\Integrate\Ode
AI assistant
Build this with Claude Code, Cursor or Copilot
Copy a Tessero-tuned prompt for Tessero\Integrate\Ode, grounded in 8 real API signatures , into your IDE's AI. No chatbot, just exact context.
__construct
__construct(callable $fun, bool $complex = false)
f receives/returns complex components encoded as [re, im] pairs (see integrate()).
complexOde
static
complexOde(callable $fun): self
scipy.integrate.complex_ode(f): construct a complex-valued stepper.
setIntegrator
setIntegrator(string $name, float $rtol = 1.0E-6, float $atol = 1.0E-12): self
scipy ode.set_integrator(name, **opts). Recognised names: 'dopri5' (-> RK45), 'dop853' (-> DOP853), 'vode'/'lsoda' (-> BDF). Options 'rtol' and 'atol' are honoured; others are accepted and ignored.
setInitialValue
setInitialValue(array|float $y, float $t = 0.0): self
scipy ode.set_initial_value(y, t). For real mode $y is a list<float> (or scalar). For complex mode $y is a list of [re, im] pairs (or a single [re, im]); it is flattened to the internal real state.
setFParams
setFParams(mixed ...$args): self
scipy ode.set_f_params(*args): extra positional args passed to f after (t, y).
integrate
integrate(float $t): array
scipy ode.integrate(t): advance the solution from the current time to $t and return y(t).
successful
successful(): bool
scipy ode.successful(): whether the last integrate() step completed without error.
t
t(): float
Current integration time.
y
y(): array
Current solution value (same encoding integrate() returns).