gmpy Questions
2
Solved
I created the code below, but when I click on the click me button I get the following error message:
TypeError: 'mpfr' object is not callable
Would someone know what is wrong with the code?
imp...
4
Solved
I am trying to install gmpy2 on my Anaconda Python 3.5 distribution using pip. I was able to install other modules such as primefac perfectly. When I try to install gmpy2 this is what I get:
(C:\P...
Remnant asked 16/10, 2016 at 20:46
3
Solved
GMPY2 (or GMP) has a powmod function but I can't find anything for regular exponentiation aside from python's native pow. Does a function like this exist for mpz integers?
1
Solved
It seems from the discussions issue #60 and issue #40 that PyPy couldn't build gmpy before. All I intend to use currently is the probable prime is_prime code which is conveniently in gmpy2. I get t...
Permeable asked 4/2, 2016 at 7:19
1
Solved
I've been having trouble with speed while trying to utilise the gmpy module.
import numpy as np
import gmpy2 as gm
N = 1000
a = range(N)
%timeit [gm.sin(x) for x in a]
# 100 loops, best of 3: 7.39...
Mannerless asked 28/10, 2014 at 3:33
3
When I used pip to install gmpy2, I always got the version 1.16, i.e. gmpy instead of gmpy2.
$ pip search gmpy
gmpy - GMP or MPIR interface to Python 2.4+ and 3.x
INSTALLED: 1.16 (latest)
Is th...
1
© 2022 - 2024 — McMap. All rights reserved.