尽可能计算PI ax? (Mathametical Question) [英] Calculating PI ax far as possible? (Mathametical Question)
本文介绍了尽可能计算PI ax? (Mathametical Question)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我想知道是否有任何方法可以尽可能计算PI?
今天在学校我听说PI在3.14之后有一百万个数字。
所以,我想为什么不尝试计算所有这些数字呢?
我打算使用一个会在里面使用的空白,
a有点像这样:
public void CalculatePI(< span class =code-keyword> int Start)
{
int 写入=开始+(此处计算PI)。
Console.WriteLine(Write.ToString());
CalculatePI(写);
}
有谁知道从哪里开始?
解决方案
< blockquote>你错了。 PI在3.14之后具有<无数个数字。你有那么多记忆......还是时间?我怀疑。
请阅读这篇文章: http://en.wikipedia.org/ wiki / Approximations_of_% CF%80 [ ^ ],在你尝试计算所有这些数字之前。请注意,高素质的数学家和高性能计算机正在努力击败当前记录 [ ^ ]。
Hello everyone,
I am wondering if there is any way of calculating PI as far as possible?
Today on school I heard that PI has a million numbers after the 3.14.
So, I thought why not try and calculate all those numbers?
I was planning on using a void that will use itself inside it,
a little bit like so:
public void CalculatePI(int Start)
{
int Write = Start + (Calculate PI here).
Console.WriteLine(Write.ToString());
CalculatePI(Write);
}
Does anyone know where to start?
解决方案
You are wrong. PI has infinite number of "numbers after 3.14". Do you have that much memory... or time? I doubt.
Please read this article: http://en.wikipedia.org/wiki/Approximations_of_%CF%80[^], before you try to calculate all those numbers. Be aware that highly qualified mathematicians and high performance computers are working on beating the current record[^].
这篇关于尽可能计算PI ax? (Mathametical Question)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文