arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1806.08068physics.comp-phcond-mat.soft
收藏

一种简单有效的高精度朗之万反函数数值计算方法

A simple and efficient numerical procedure to compute the inverse Langevin function with high accuracy

José María Benitez, Francisco Javier Montáns

摘要:

逆朗之万函数是用于描述聚合物类材料行为的统计链模型的基本部分,也出现在其他领域,如磁性,分子动力学,甚至生物力学。在过去的四年中,已经提出了几个近似的逆朗之万函数。在大多数情况下,优化技术被用来减少以前发表的近似值的相对误差,以达到O(10^-2,10^-3)的数量级。本文提出了一种新的计算反朗之万函数的简单而有效的数值方法。它的主要特点是在所有域x=[0,1)中的相对误差减少到接近机器精度,保持函数评估CPU时间与最有效的近似值相似。该方法包括在离散的Langevin函数,计算这些离散点的逆和他们的插值三次样条。为了再现逆朗之万函数的渐近行为,仅在与三次样条保持C^1连续的渐近区域中考虑有理函数。我们包括可定制的Matlab代码来创建样条系数,评估函数,并与其他已发表的建议进行准确性和效率比较。

英文摘要:

The inverse Langevin function is a fundamental part of the statistical chain models used to describe the behavior of polymeric-like materials, appearing also in other fields such as magnetism, molecular dynamics and even biomechanics. In the last four years, several approximants of the inverse Langevin function have been proposed. In most of them, optimization techniques are used to reduce the relative error of previously published approximants to reach orders of magnitude of O(10^-2, 10^-3). In this paper a new simple and efficient numerical approach to calculate the inverse Langevin function is proposed. Its main feature is the reduction of the relative errors in all the domain x=[0,1) to near machine precision, maintaining function evaluation CPU times similar to those of the most efficient approximants. The method consists in the discretization of the Langevin function, the calculation of the inverse of these discretization points and their interpolation by cubic splines. In order to reproduce the asymptotic behavior of the inverse Langevin function, a rational function is considered only in the asymptotic zone keeping C^1 continuity with the cubic splines. We include customizable Matlab codes to create the spline coefficients, to evaluate the function, and to compare accuracy and efficiency with other published proposals.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑