Roots of a cubic polynomial: Difference between revisions

Content added Content deleted
m (→‎{{header|J}}: more orientation)
m (→‎{{header|J}}: link to a page going into more detail on the approach)
Line 24: Line 24:


=={{header|J}}==
=={{header|J}}==
Using J's [[j:Vocabulary/pdot|polynomial primitive]] for most of the heavy lifting here. Also using J's [[j:Vocabulary/dot|generalized determinant]] to find the characteristic polynomial (first turning each element of the matrix into a polynomial then finding the determinant of the result):
Using J's [[j:Vocabulary/pdot|polynomial primitive]] for most of the heavy lifting here. Also using J's [[j:Vocabulary/dot|generalized determinant]] to find the characteristic polynomial (first turning each element of the matrix into a polynomial then finding the determinant of the result). See also [[j:Doc/Articles/Play141|Oh, No, Not Eigenvalues Again!]]:


Implementation:
Implementation: