Source file ode.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
(*
 * OWL - OCaml Scientific and Engineering Computing
 * OWL-ODE - Ordinary Differential Equation Solvers
 *
 * Copyright (c) 2019 Ta-Chu Kao <tck29@cam.ac.uk>
 * Copyright (c) 2019 Marcello Seri <m.seri@rug.nl>
 *)

open Types

let odeint (type a b c)
    (module Solver : SolverT with type output=a and type s=b and type t=c)
    (f : (b -> float -> c))
    (y0: b)
    (tspec: tspec_t)
  = Solver.solve f y0 tspec