コード例 #1
0
 /// <summary>
 /// The Jenkins–Traub algorithm for finding the roots of a polynomial.
 /// </summary>
 /// <param name="Input">The coefficients for the polynomial starting with the constant (zero degree) and ends with the highest degree. Missing coefficients must be provided as zeros.</param>
 /// <returns>All the real and complex roots that are found are returned in a list of complex numbers. The list is not neccessarily sorted.</returns>
 public static List<Complex> FindRoots(params Complex[] Input)
 {
   var r = new ComplexPolynomialRootFinder_JenkinsTraub();
   return r.Execute(Input);
 }
コード例 #2
0
		/// <summary>
		/// The Jenkins–Traub algorithm for finding the roots of a polynomial.
		/// </summary>
		/// <param name="Input">The coefficients for the polynomial starting with the constant (zero degree) and ends with the highest degree. Missing coefficients must be provided as zeros.</param>
		/// <returns>All the real and complex roots that are found are returned in a list of complex numbers. The list is not neccessarily sorted.</returns>
		public static List<Complex> FindRoots(params Complex[] Input)
		{
			var r = new ComplexPolynomialRootFinder_JenkinsTraub();
			return r.Execute(Input);
		}