cheby 0.2.0

Unit-safe Chebyshev approximation and spectral numerics for Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use qtty::{Radian, Second};

type AngularRate = qtty::angular_rate::AngularRate<qtty::unit::Radian, qtty::unit::Second>;

fn main() {
    let domain = cheby::Domain::new(Second::new(0.0), Second::new(2.0));
    let series = cheby::ChebySeriesOn::new(
        domain,
        cheby::ChebySeries::new([AngularRate::new(1.0), AngularRate::new(0.0)]),
    );
    let angle: Radian = series
        .evaluate_integral_from_start(Second::new(1.0))
        .unwrap();
    println!("{}", angle.value());
}