如何在8.0.1版本中使用Mathematica 5.2生成的InterpolatingFunction?

发布于 2024-12-08 15:38:20 字数 985 浏览 1 评论 0原文

让我们使用 Mathematica 5.2、7.0.1 和 8.0.1 插值相同的数据:

Interpolation[{{0, 0}, {1, 1}, {2, 3}, {3, 4}, {4, 3}, {5, 0}}] // InputForm

输出为:

Mathematica 5.2:

InterpolatingFunction[{{0, 5}}, 
 {2, 0, True, False, {3}, {0}}, {{0, 1, 2, 3, 4, 5}}, 
 {{0}, {1}, {3}, {4}, {3}, {0}}, {Automatic}]

Mathematica 7.0.1 :

InterpolatingFunction[{{0, 5}}, {3, 1, 0, {6}, {4}, 0, 0, 0, 0}, 
 {{0, 1, 2, 3, 4, 5}}, {{0}, {1}, {3}, {4}, {3}, {0}}, {Automatic}]

Mathematica 8.0.1:

InterpolatingFunction[{{0, 5}}, {4, 3, 0, {6}, {4}, 0, 0, 0, 0, Automatic}, 
 {{0, 1, 2, 3, 4, 5}}, {{0}, {1}, {3}, {4}, {3}, {0}}, {Automatic}]

Mathematica 5.2 的输出在版本中用作输入时仍然有效7.0.1,但不在版本 8.0.1 中。似乎在版本 8 中删除了对旧式 InterpolatingFunction 的支持。是否可以重用 Mathematica 5.2 版本中生成的 InterpolatingFunction 数据8.0.1?

Let us interpolate the same data using Mathematica 5.2, 7.0.1 and 8.0.1:

Interpolation[{{0, 0}, {1, 1}, {2, 3}, {3, 4}, {4, 3}, {5, 0}}] // InputForm

The outputs are:

Mathematica 5.2:

InterpolatingFunction[{{0, 5}}, 
 {2, 0, True, False, {3}, {0}}, {{0, 1, 2, 3, 4, 5}}, 
 {{0}, {1}, {3}, {4}, {3}, {0}}, {Automatic}]

Mathematica 7.0.1:

InterpolatingFunction[{{0, 5}}, {3, 1, 0, {6}, {4}, 0, 0, 0, 0}, 
 {{0, 1, 2, 3, 4, 5}}, {{0}, {1}, {3}, {4}, {3}, {0}}, {Automatic}]

Mathematica 8.0.1:

InterpolatingFunction[{{0, 5}}, {4, 3, 0, {6}, {4}, 0, 0, 0, 0, Automatic}, 
 {{0, 1, 2, 3, 4, 5}}, {{0}, {1}, {3}, {4}, {3}, {0}}, {Automatic}]

The output of Mathematica 5.2 still works when used as input in version 7.0.1 but not in version 8.0.1. It seems that support of the old-style InterpolatingFunction was dropped in version 8. Is it possible to reuse InterpolatingFunction data generated by Mathematica 5.2 in version 8.0.1?

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

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

发布评论

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