Skip to content

guv/cquad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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