使用锐利近似公式来计算PI [英] use sharps approximation formula to calculate PI
本文介绍了使用锐利近似公式来计算PI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是我的第一个计划。在我的大学实验室关闭的时候,我一直在努力争取很长时间和令牌,有人可以检查一下,甚至可以纠正一些部分。如果有人能,我会很高兴。谢谢
分配是使用锐利近似公式来计算PI,这是一个连续的公式,直到n = k。第二部分是使用M_PI并删除近似公式,并打印两者。
This is my first ever program. I have struggled big time and its token so long my university lab is closed, can someone please check this over and maybe even correct some parts. I would be so happy if someone could. Thanks
The assignment is to use sharps approximation formula to calculate PI, which is a continous formula until n = k. The second part is to use M_PI and take away the approxiamtion formula, and print both.
展开 | 选择 | 换行 | 行号
推荐答案
修复一些拼写错误后,代码中出现以下错误:
Here are the errors in your code after I have repaired some typos:
展开 | 选择 | Wrap | 行号
有人可以通过修复这些故障代码来帮助我,甚至可以告诉我它们的含义以及如何修复它们。我是一个真正的新手。谢谢。
Could someone help me by fixing these fault codes or even tell me what they mean and how to fix them. I am a real novice at this. Thank you.
有人可以通过修复这些故障代码来帮助我,甚至告诉我他们的意思以及如何修复它们。我是一个真正的新手。谢谢。
Could someone help me by fixing these fault codes or even tell me what they mean and how to fix them. I am a real novice at this. Thank you.
那么你从哪里得到你发布的代码?
So where did you get the code that you posted?
这篇关于使用锐利近似公式来计算PI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文