I am using gmpy2 in python for bigints, 2000+ digits. I just import the functions i need and use them directly. Can i do that in Julia? How so?.
If the answer is make a python call, has anyone checked the comparative performance?
You can simply use BigInt
in julia, though I can’t speak to the performance compared to gmpy2 in python. BigInt(10)^2000
for example will (quickly) return 10^{2000}.
1 Like
they both use GMP so the performance should be identical
Bigints are built into Julia. No need to import anything.