• Viet Dinh's avatar
    fix solveCubic · 68bcff26
    Viet Dinh authored
    The original solution did not handle correctly when delta = 0,
    resulting as nan errors. I also wrote a test case to test solving
    equation x^3 = 0 after fixing.
    68bcff26
test_math.cpp 82.5 KB