Problem: how to solve m2 + 3m + 1=0
using the quadratic formula
Since you are calling for the quadratic formula,
the equation must be m^2 + 3m + 1 = 0
-b ± sqrt(b^2 - 4*a*c)
x = -----------------------------
2a
-3 ± sqrt(3^2 - 4*1*1)
x = -----------------------------
2(1)
-3 ± sqrt(9 - 4)
x = --------------------
2
-3 ± sqrt(5)
x = ----------------
2
-3 ± 2.236
x = ---------------
2
-3 + 2.236 -3 - 2.236
x = --------------- and x = ---------------
2 2
-0.764 -5.236
x = ---------- and x = ----------
2 2
x = -0.382 and x = -2.618