Sub Ex_Rpqr79()
Const N As Long = 5
Dim A(N) As Double, Z(N - 1) As Complex, S(N - 1) As Double
Dim Info As Long, I As Long
A(0) = 1: A(1) = 0: A(2) = 2: A(3) = 2: A(4) = -15: A(5) = 10
Call
Rpqr79(N, A(), Z(), Info)
For I = 0 To N - 1
Next
Debug.Print "Info =", Info
End Sub
Function Cimag(A As Complex) As Double
Imaginary part of complex number
Function Creal(A As Complex) As Double
Real part of complex number
Sub Rpqr79(N As Long, A() As Double, Z() As Complex, Info As Long)
Roots of a polynomial (real coefficients) (Companion matrix method)