這是一個用三角形面積 近似 圓面積 做出來的計算機...
給的數值越大( 半徑、三角形數量 ),算的就越精確
如果你的電腦很閒,可以讓他跑跑看 XD !!
[ 按我下載 ]
[ English Version ]
圓周率
Pi
圓形的公式 => X^2 + Y^2 = r^2
The one of the formula of round => X^2 + Y^2 = r^2
(r是半徑) (r is the radius of the round)
找出每一個可能的整數 X 和 Y
Find every possible x and y , x and y are integers
然後每一對 X 和 Y ,和原點 0 成一個等腰三角形
Then, every pair of x and y forms a triangle with 0
計算出每一個等腰三角形的面積 然後加起來
Calculate the area of each triangles. Add them up.
之後再把結果乘以四 (因為有四個象限)
Multiply the reslut with 4 (there are four quadrants)
再除以 直徑的平方
then Divide it with the square of diameter.
就會得到 粗略的圓周率
You'll get the rough pi.
給的數值越大( 半徑、三角形數量 ),算的就越精確
如果你的電腦很閒,可以讓他跑跑看 XD !!
[ 按我下載 ]
[ English Version ]
圓周率
Pi
圓形的公式 => X^2 + Y^2 = r^2
The one of the formula of round => X^2 + Y^2 = r^2
(r是半徑) (r is the radius of the round)
找出每一個可能的整數 X 和 Y
Find every possible x and y , x and y are integers
然後每一對 X 和 Y ,和原點 0 成一個等腰三角形
Then, every pair of x and y forms a triangle with 0
計算出每一個等腰三角形的面積 然後加起來
Calculate the area of each triangles. Add them up.
之後再把結果乘以四 (因為有四個象限)
Multiply the reslut with 4 (there are four quadrants)
再除以 直徑的平方
then Divide it with the square of diameter.
就會得到 粗略的圓周率
You'll get the rough pi.
文章標籤
全站熱搜

我的電腦很閒~ 可是看他跑這個我頭會痛........XD
話說我又找到更長的了... 3.14159265358979323846264338327950288 這程式的功用只剩下燒機測試 = ="
燒機測試? 那是什麼東東......QQ
據說這東西是用非常「暴力」「慘無人道」的方法寫的 所以只要一計算,CPU使用率馬上衝到100%掉不下來 所以,如果有人偷偷幫CPU超頻的話 就可以用這個東西,看看CPU固定維持在100%輸出的時候,會不會燒掉 這就是燒機測試... (其實我也不是很懂..我沒在玩超頻..也沒玩顯卡....|||_)