﻿功能:获取大数级的黄金分割比(5^0.5-1)/2

格式:BgConstantGoldenRatio(n);BgConstantGoldenRatio()

说明:n表示获取黄金分割比值小数点后的位数.其大于0.BgConstantGoldenRatio()表示获取程序可提供的小数位最多的黄金分割比.当然黄金分割比还有一种形式(5^0.5+1)/2,那么直接是本函数执行的结果加1即可.

例子:

BgConstantGoldenRatio(150)//回车后得到如下结果
ans=
"0.618033988749894848204586834365638117720309179805762862135448622705260462818902449707207204189391137484754088075386891752126633862223536931793180060766"

//By2012/8/21