Quadratic equation in Ada
问题 I just came around and decided to try some Ada. The downside is that the syntax and function strays quite away from C++. So I had to like cram various stuff to get this thing to work. My question is if there are some better way to do this calculation that what I have done here IF(B < 0.0) THEN B := ABS(B); X1 := (B / 2.0) + Sqrt( (B / 2.0) ** 2.0 + ABS(C)); X2 := (B / 2.0) - Sqrt( (B / 2.0) ** 2.0 + ABS(C)); ELSE X1 := -(B / 2.0) + Sqrt( (B / 2.0) ** 2.0 - C); X2 := -(B / 2.0) - Sqrt( (B / 2