public void LaguerreRootsFindingTest(params double[] nums) { //arrange double TOL = 10E-7; CPolynomial poly = FromArray(nums); //action Complex[] roots = CPolynomial.LaguerreRoots(poly); //assert for (int i = 0; i < roots.Length; i++) { Complex p = poly.Evaluate(roots[i]); Complex.Abs(p).Should().BeLessOrEqualTo(TOL); } }