fn quadratic(a: f64, b: f64, c: f64) -> Option<(f64, f64)> {
    let discriminant = b * b - 4.0 * a * c;

    if discriminant < 0.0 {
        None
    } else {
        let root = compute_sqrt(discriminant);
        Some(((-b + root) / (2.0 * a), (-b - root) / (2.0 * a)))
    }
}
/// solves the quadratic equation ax^2 + bx + c = 0
/// 
/// this function uses a tuple to return multiple values
/// 
/// this function returns `None` if there is not solution
///
/// # Arguments
/// * `a` - the a coefficient
/// * `b` - the b coefficient
/// * `c` - the c coefficient
solves the quadratic equation ax^2 + bx + c = 0
this function uses a tuple to return multiple values

this function returns `None` if there is not solution
solves the quadratic equation ax^2 + bx + c = 0 this function uses a tuple to return multiple values this function returns ` None ` if there is not solution
fn quadratic(a: f64, b: f64, c: f64) -> Option<(f64, f64)> {
    let discriminant = b * b - 4.0 * a * c;
    if discriminant < 0.0 {
        None
    } else {
        let root = compute_sqrt(discriminant);
        Some(((-b + root) / (2.0 * a), (-b - root) / (2.0 * a)))
    }
}
fn quadratic ( a : f64 , b : f64 , c : f64 ) -> Option < ( f64 , f64 ) > { let discriminant = b * b - 4.0 * a * c ; if discriminant < 0.0 { None } else { let root = compute_sqrt ( discriminant ) ; Some ( ( ( - b + root ) / ( 2.0 * a ) , ( - b - root ) / ( 2.0 * a ) ) ) } }
solves the quadratic equation ax^2 + bx + c = 0
this function uses a tuple to return multiple values
solves the quadratic equation ax^2 + bx + c = 0 this function uses a tuple to return multiple values
a
f64
b
f64
c
f64
a
f64
b
f64
c
f64