[cljsjs/odex "2.0.4-0"] ;; latest release
This jar comes with deps.cljs
as used by the [Foreign Libs][flibs] feature
of the ClojureScript compiler. After adding the above dependency to your project
you can require the packaged library like so:
(ns application.core
(:require cljsjs.odex))
This package also supports :global-exports
:
(ns application.core
(:require [odex :as odex]))
This is a port to JavaScript (actually, TypeScript) of E. Hairer and G. Wanner's implementation of the Gragg-Bulirsch-Stoer method of integrating systems of differential equations. The original code is written in idiomatic Fortran; this code tries to present an idiomatic JavaScript interface while preserving all the of the virtues of the original code, including its speed, configurability, and compact memory footprint.
Here's an example of how to replicate the demo from the Github README:
(ns example.core
(:require [odex :as o]))
(defn routine [x y] y)
(let [s (o/Solver. 1)]
(.solve s routine 0 #js [1] 1))
;; => #js{:y #js[2.7182817799042955], :outcome 0, :nStep 7, :xEnd 1, :nAccept 7, :nReject 0, :nEval 75}