Roots of a cubic polynomial: Difference between revisions

From Rosetta Code
Content added Content deleted
imported>Raygis
No edit summary
imported>Raygis
(add example)
Line 3: Line 3:
Find all eigenvalues of a real 3x3 matrix and estimate their errors.
Find all eigenvalues of a real 3x3 matrix and estimate their errors.


See Wikipedia Cubic equation. Example. [https://en.wikipedia.org/wiki/Cubic_equation]
See Wikipedia Cubic equation. [https://en.wikipedia.org/wiki/Cubic_equation]
Example.


a*x**3 + b*x**2 + c*x + d = 0
a*x**3 + b*x**2 + c*x + d = 0

Revision as of 13:40, 23 November 2023

Roots of a cubic polynomial is a draft programming task. It is not yet considered ready to be promoted as a complete task, for reasons that should be found in its talk page.

Find all eigenvalues of a real 3x3 matrix and estimate their errors.

See Wikipedia Cubic equation. [1] Example.

a*x**3 + b*x**2 + c*x + d = 0

matrix: [[1,-10], [0,1,-1],[0,0,1]]

polynomial: [a,b,c,d] =[1, -3,+3, -1]

roots: [1,1,1]