automatica 1.0.0

Automatic control systems library
Documentation
use automatica::{units::ToDecibel, Complex, Tf};

#[allow(clippy::non_ascii_literal)]
fn main() {
    let tf = Tf::new([-0.75_f64, 0.25], [0.75, 0.75, 1.]);

    println!("T:\n{}", tf);

    let c = tf.eval(&Complex::new(0., 0.9));
    println!("\nEvaluation at s = 0 + 0.9i:");
    println!(
        "{:.3} = {:.3}dB, {:.3}°",
        c,
        c.norm().to_db(),
        c.arg().to_degrees()
    );

    println!("\nStatic Gain: {:.3}", tf.static_gain());
}