Macro astro::Horner_eval [] [src]

macro_rules! Horner_eval {
    ($x:expr, $c:expr, $($a:expr),*) => { ... };
}

Evaluates a polynomial using Horner's algorithm

Arguments

  • $x : The value of the independent variable f32 or f64
  • $c : The constant term f32 or f64
  • $($a),*: Sequence of coefficient terms for $x, in ascending powers of $x