r - Square root of a number to 100 decimal places -


how can square root number 100 decimal places in r?

i've looked gmp , rmpfr packages. can't figure out how use them square roots, (pow.bigz(2,0.5)=1) if did, i'm not sure how accurate be, since i've found after 25 decimal places, digits aren't reliable

eg

mpfr(1/3,400) # 1 'mpfr' number of precision  400   bits  # [1] 0.333333333333333314829616256247390992939472198486328125 

and

as.bigz(1e50/3) # big integer ('bigz') : # [1] 33333333333333337607355566542238210608487100055552 

the question computing 1 third prior mpfr has lost precision time mpfr sees it. way:

mpfr(1, 400)/3 

Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -