DiscussionsIssue archiveOCCT:Modeling Algorithms

Archived issue #0033448

Modeling Algorithms - incorrect result in solving 4th degree equations

CommunityOCCT:Modeling Algorithmsresolved6 public notes

Search issues

Description

Hello,
There are sometimes bad results in
math_DirectPolynomialRoots::Solve(const Standard_Real a, const Standard_Real b, const Standard_Real c, const Standard_Real d, const Standard_Real e)

Steps to reproduce

We don't get the right results, with values:

a=1.0000000000000004
b=-2.[revision removed]-13
c=-17361733.368892364
d=28.998342463569099
e=75357446168894.516

Additional information

The results can be checked with this website:

http://serge.mehl.free.fr/anx/equ4_ferrari.html

Public activity

6 archived notes

Participants are labeled by their role within this record.

01Author
Reminder sent to: Commenter 1

Hi Commenter 2, did you have time to check this issue ? Thanks !
02Commenter 1
Commenter 3
Not yet. It is still on to-do list.
03Author
Hi, is there any update for this issue please ?
04Commenter 1
The results with current numbers are valid.
The difference are only order of roots, which is on your site have specific post-ordering..
05Commenter 1
Oh, on MacOS it is perfect, other OS are broken. Sorry, yes, I can see broken results for that case.
06Commenter 1
Merged into [archived branch], repository: archived repository reference
[revision removed]

Branch: archived repository reference