Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Tricomi 合流超几何函数的计算在使用两个 1F1 函数之和时可能是病态的,因为它们的大小几乎相等但符号相反。mpmath 函数“hyperu”在内部使用任意精度,并在默认模式下生成具有 35 个有效数字的结果。这些数字中有多少是可靠的?它取决于传递的参数吗?
import mpmath x = mpmath.hyperu(a, b + 1, u)
我刚刚收到一封来自 mpmath 主要作者 Fredrik Johansson 的电子邮件,确认完整的 35 位数字都可用。他写道“hyperu 在内部使用自适应更高的精度,因此结果应该几乎总是准确到用户设置的完整精度”。