Comparing a double against zero

前端 未结 4 2027
抹茶落季
抹茶落季 2020-12-15 19:50

I\'m new to Java and I\'ve been trying to implement an algorithm for finding the roots of a cubical equation. The problem arises when I calculate the discriminant and try to

4条回答
  •  南方客
    南方客 (楼主)
    2020-12-15 20:11

    Should I check if the number falls between an epsilon neighborhood of zero?

    Exactly

提交回复
热议问题