#digamma #trigamma #tetragamma

polygamma

This library provides Polygamma function

1 unstable release

0.1.0 Aug 11, 2020

#1166 in Math

MIT license

7KB
139 lines

polygamma

Rust Document Crates

This library provides Polygamma function. It is forked from http://www.rd.dnc.ac.jp/~tunenori/src/polygamma.c

Usage

use polygamma::polygamma;

fn main() {
    println!("digamma(1.0)  = {}", polygamma(0, 1.0).unwrap());
    println!("trigamma(1.0) = {}", polygamma(1, 1.0).unwrap());
}

lib.rs:

This library provides Polygamma function. It is forked from http://www.rd.dnc.ac.jp/~tunenori/src/polygamma.c

Usage

use polygamma::polygamma;
fn main() {
    println!("digamma(1.0)  = {}", polygamma(0, 1.0).unwrap());
    println!("trigamma(1.0) = {}", polygamma(1, 1.0).unwrap());
}

No runtime deps