#![allow(clippy::many_single_char_names)]
pub fn roots_real(_a: f64, _b: f64, _c: f64, _d: f64, _solution: &mut [f64; 3]) -> i32 {
unimplemented!()
}
pub fn roots_valid_t(_a: f64, _b: f64, _c: f64, _d: f64, _solution: &mut [f64; 3]) -> i32 {
unimplemented!()
}
pub fn binary_searchroots_valid_t(
_a: f64,
_b: f64,
_c: f64,
_d: f64,
_solution: &mut [f64; 3],
) -> i32 {
unimplemented!()
}
#[must_use]
pub fn eval_at(a: f64, b: f64, c: f64, d: f64, t: f64) -> f64 {
t.mul_add(t.mul_add(t.mul_add(a, b), c), d)
}
#[must_use]
pub fn eval_at_slice(coefficients: &[f64; 4], t: f64) -> f64 {
eval_at(
coefficients[0],
coefficients[1],
coefficients[2],
coefficients[3],
t,
)
}