/cquad

Library for calculating improper integrals.

Primary LanguageFortranEclipse Public License 1.0EPL-1.0

cquad

Clojars Project License: EPL v1.0

A Clojure library for the calculation of improper integrals. The implementation is based on the Fortran library quadpack (Source).

Currently, only Linux 64 bit and Windows 64 bit are supported. More target platforms can be supported by compiling the native library for these.

Usage

Minimal example:

(require '[cquad.core :as cquad])

(cquad/improper-integral
  (fn ^double [^double x] (/ 1.0 (inc (* x x))))
  :negative-infinity,
  :positive-infinity)
;=> 3.141592653589793

License

Copyright (C) 2017-2019 Gunnar Völkel

cquad is licensed under Eclipse Public License 1.0