Groups
Groups
Sign in
Groups
Groups
MathematicaChina
Conversations
About
Send feedback
Help
请问谁知道Mathematica中,算 Pi 的算法?
27 views
Skip to first unread message
williamzmk
unread,
Dec 23, 2007, 12:21:41 AM
12/23/07
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to MathematicaChina
如题。为什么算得那么快,用的什么算法?
davi...@gmail.com
unread,
Dec 23, 2007, 5:05:19 AM
12/23/07
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to MathematicaChina
我曾經記得,是因為系統里面對一些常量都有一個位置儲存了很長的長度,要精確值的時候,從中調入就是了。
On 12月23日, 下午1时21分, williamzmk <
william...@gmail.com
> wrote:
> 如题。为什么算得那么快,用的什么算法?
.COM 缺氧
unread,
Dec 23, 2007, 6:14:19 AM
12/23/07
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to MathematicaChina
我在学习C语言的时间见过的算法。
我用Mathematica 6实现的方法如下:
N[4 * Sum[ ( (-1)^i ) / (2i+1), {0, 250}]
N[Pi, 250]
两者误差不大于9 * 10^(-31)。
我觉得这个算法还是蛮好的。
如果有好的算法可以发布给大家参考一下。
williamzmk
unread,
Dec 24, 2007, 7:29:18 AM
12/24/07
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to MathematicaChina
您的意思是說,例如N[Pi,10000],它根本就不計算,直接給出預先儲存的數值?
刘俊成
unread,
May 20, 2008, 6:17:52 PM
5/20/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Mathemat...@googlegroups.com
这应该是公司的秘密
在07-12-23,
williamzmk
<
willi...@gmail.com
> 写道:
如题。为什么算得那么快,用的什么算法?
Reply all
Reply to author
Forward
0 new messages