Hi Brent, I was seeing another (smaller) artefact in the code that produced #7
and and your quick response prompted me to look into this further.
I thought there was another issue in quartForm, but after tracing it down a
lot further, it turned out that the actual problem was in cubForm. I got
the resolvent cubic. This was:
Which wolfram alpha solves
as 915.4538593912 but the code was returning 911.5670525972223 -- that's too
big a difference to be the result of floating point precision.
It turns out that disc can get extremely small but the sign of qq will still
be meaningful. Simplifying the branches there got me the expected result.
Hi Brent, I was seeing another (smaller) artefact in the code that produced #7 and and your quick response prompted me to look into this further.
I thought there was another issue in
quartForm
, but after tracing it down a lot further, it turned out that the actual problem was incubForm
. I got the resolvent cubic. This was:Which wolfram alpha solves as 915.4538593912 but the code was returning 911.5670525972223 -- that's too big a difference to be the result of floating point precision.
It turns out that
disc
can get extremely small but the sign ofqq
will still be meaningful. Simplifying the branches there got me the expected result.