Monday, April 29, 2019

More Phi

As seen in my previous post, I enjoy special numbers. Phi is similar to Pi, as it never repeats.  As seen from the previous post it is easy to print the value of Phi for as many digits as you like. On my Linux Workstation it took 199 minutes,59 seconds to compute and print.

Here are the first few and the last few of 1,000,000 digits.


/home/eldonb
Dogee$ time echo "scale=1000000;((1+sqrt(5))/2)" | bc
1.618033988749894848204586834365638117720309179805762862135448622705\
26046281890244970720720418939113748475408807538689175212663386222353\
69317931800607667263544333890865959395829056383226613199282902678806\
75208766892501711696207032221043216269548626296313614438149758701220\
34080588795445474924618569536486444924104432077134494704956584678850\
98743394422125448770664780915884607499887124007652170575179788341662\
56249407589069704000281210427621771117778053153171410117046665991466\
97987317613560067087480710131795236894275219484353056783002287856997\
82977834784587822891109762500302696156170025046433824377648610283831\
26833037242926752631165339247316711121158818638513316203840052221657\
91286675294654906811317159934323597349498509040947621322298101726107\
05961164562990981629055520852479035240602017279974717534277759277862\
56194320827505131218156285512224809394712341451702237358057727861600\
86883829523045926478780178899219902707769038953219681986151437803149\

.
.
.

51205498805479514967289154302996769121988102263194659806380466107909\
31352857957674862371564191289402092625063920284548765631670222354467\
62108166903411674733689654891698040997088225756846422806485457083181\
54817250273792269673672784912715565863640224840546063168807939806419\
10011292989778642634722933479751500991951991756672702399802377950118\
74531421414112149235697793062845603141116573053057593276429408709647\
92714973972713169819730050190640877760201932333501404222064855249240\
36963502091099895258774893289262893136069071641672363453659300940411\
52727279580441683058589433882835637617510166237834248102913501606884\
97828073566475942021829737743512519707760133872287874153226344

real 199m59.237s
user 199m58.984s
sys 0m0.024s

/home/eldonb
Dogee$

-

-- Home Page: https://WA0UWH.blogspot.com