ソース コードの場所は次のとおりです (Dropbox を使用)。
問題は、ゼロを適切に評価しないという事実にあります。
例:x^2-2x-8
のゼロに等しいはずです{-4, 2}
が、代わりに のような長い指数値が得られます-4+34534....E-25<i>i</i>
。
単根の多項式でも機能します(such as x<sup>2</sup>+4x+4, root = {-2})
Can anyone spot the problem, it's been frustrating me for weeks. This is NOT a homework assignment, this is something I work on in my free time.