一般复数多项式求根器及其对二元微引力透镜的进一步优化
General Complex Polynomial Root Solver and Its Further Optimization for Binary Microlenses
AI总结:
提出一种比商业ZROOTS子程序快1.6-3倍的多项式求根算法,通过安全失效程序避免大部分计算,并利用判别式在拉盖尔法和牛顿法间合理选择。
摘要:
我们提出了一种求解多项式方程的新算法,并发布了其代码,根据应用不同,该算法比Numerical Recipes商业提供的ZROOTS子程序快1.6-3倍。与朴素求解器相比,最大的改进来自一个安全失效程序,它允许我们在绝大多数情况下跳过大部分计算,而不会在少数确实需要这些计算的情况下冒灾难性失败的风险。其次,我们识别出一个判别式,使得能够在拉盖尔法和牛顿法(或一种新的中间方法)之间逐案进行合理选择。我们简要回顾了求根的历史,并证明“牛顿法”既不是牛顿(1671年)也不是拉夫森(1690年)发现的,而是辛普森(1740年)发现的。导致这一结论的一些论点最早由英国科学史学家尼克·科勒斯特罗姆于1992年提出,但这些论点似乎并未渗透到天文学界。最后,我们认为Numerical Recipes应自愿放弃其非营利应用的版权保护,尽管在这种特定情况下,这种保护是开发我们改进算法的主要刺激因素。
英文摘要:
We present a new algorithm to solve polynomial equations, and publish its code, which is 1.6-3 times faster than the ZROOTS subroutine that is commercially available from Numerical Recipes, depending on application. The largest improvement, when compared to naive solvers, comes from a fail-safe procedure that permits us to skip the majority of the calculations in the great majority of cases, without risking catastrophic failure in the few cases that these are actually required. Second, we identify a discriminant that enables a rational choice between Laguerre's Method and Newton's Method (or a new intermediate method) on a case-by-case basis. We briefly review the history of root solving and demonstrate that "Newton's Method" was discovered neither by Newton (1671) nor by Raphson (1690), but only by Simpson (1740). Some of the arguments leading to this conclusion were first given by the British historian of science Nick Kollerstrom in 1992, but these do not appear to have penetrated the astronomical community. Finally, we argue that Numerical Recipes should voluntarily surrender its copyright protection for non-profit applications, despite the fact that, in this particular case, such protection was the major stimulant for developing our improved algorithm.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。