This commit is contained in:
zombie maniac 2021-11-27 16:13:58 -05:00
parent 72ce766c50
commit f59d179acc

View file

@ -38,10 +38,10 @@ fn main() {
thebestx = (-b + (b.powf(2.0f32) - 4.0f32 * a * c).sqrt())/(2.0f32 * a); thebestx = (-b + (b.powf(2.0f32) - 4.0f32 * a * c).sqrt())/(2.0f32 * a);
thebestx2 = (-b - (b.powf(2.0f32) - 4.0f32 * a * c).sqrt())/(2.0f32 * a); thebestx2 = (-b - (b.powf(2.0f32) - 4.0f32 * a * c).sqrt())/(2.0f32 * a);
println!("x+={0} x-={1} a={2} b={3} c={4}", thebestx, thebestx2, a, b ,c) println!("x+={0} x-={1} a={2} b={3} c={4}", thebestx, thebestx2, a, b ,c);
println!("2+2={0}", 2+2)