Arbitrary precision arithmetic with GMP

前端 未结 3 1151
梦谈多话
梦谈多话 2021-01-26 14:38

I\'m using the GMP library to make a Pi program, that will calculate about 7 trillion digits of Pi. Problem is, I can\'t figure out how many bits are needed to hold that many de

3条回答
  •  耶瑟儿~
    2021-01-26 15:14

    I wanna just correct one thing about what was written in the response answer:

    Recall that log(a^b) = a * log(b)

    well it is the opposite :

    log(a^b) = b * log(a)
    

提交回复
热议问题