Mathematica 对表达式求值一次,然后返回未求值的表达式

发布于 2024-12-10 03:19:09 字数 393 浏览 1 评论 0原文

Mac OS X 10.7.2 上的 Mathematica 8.0.1 执行以下操作: 退出内核并执行

MathieuS[MathieuCharacteristicA[  1, -(1/4)], -0.25`, 15.707963267948966`]
MathieuS[MathieuCharacteristicA[  1, -(1/4)], -0.25`, 15.707963267948966`]
(*
5.10119 10^-15
MathieuS[MathieuCharacteristicA[1, -(1/4)], -0.25, 15.708]
*)

即,第一次对表达式进行数值计算,而第二次则返回未计算的形式。

为什么?或者我只是盯着屏幕看了太长时间而做了一些愚蠢的事情?

Mathematica 8.0.1 on Mac OS X 10.7.2 does this: Quit the kernel and execute

MathieuS[MathieuCharacteristicA[  1, -(1/4)], -0.25`, 15.707963267948966`]
MathieuS[MathieuCharacteristicA[  1, -(1/4)], -0.25`, 15.707963267948966`]
(*
5.10119 10^-15
MathieuS[MathieuCharacteristicA[1, -(1/4)], -0.25, 15.708]
*)

That is, the first time it numerically evaluates the expression, while the second time it returns the unevaluated form.

Why? Or have I just spent too long staring at my screen and am doing something stupid?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文