does anybody can calculate Ļ€ up to million using c++ | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

does anybody can calculate Ļ€ up to million using c++

2nd Jul 2016, 11:57 AM
Rajiv Singh
Rajiv Singh - avatar
4 Respostas
+ 1
Ļ€!= 22/7
2nd Jul 2016, 11:58 AM
Rajiv Singh
Rajiv Singh - avatar
+ 1
You can use ramanujan's formula to calculate the nth digit without calculating all the previous n-1 ones. https://crypto.stanford.edu/pbc/notes/pi/ramanujan.html
2nd Jul 2016, 1:32 PM
Garme Kain
Garme Kain - avatar
0
Actually the one formula that calculates the nth digit without calculating the previous ones is the Bailey-Borwein-Plouffe formula. I was wrong.
2nd Jul 2016, 3:14 PM
Garme Kain
Garme Kain - avatar
0
please help
2nd Jul 2016, 3:16 PM
Rajiv Singh
Rajiv Singh - avatar