On Tue, Feb 5, 2013 at 5:42 PM, Aaron Meurer <[email protected]> wrote:
> On Tue, Feb 5, 2013 at 5:46 PM, Ondřej Čertík <[email protected]> wrote:
>> Hi Case!
>>
>> Thanks for working on this. I have finally found time and added gmpy
>> support into our Travis-CI testing:
>>
>> https://github.com/sympy/sympy/pull/1756
>>
>> the tests discovered a few minor gmpy failures today:
>>
>> http://code.google.com/p/sympy/issues/detail?id=3616
>>
>> Btw, I also noticed, that gmpy2 doesn't have the sqrt method, required
>> by mpmath.
In gmpy2, I added support for MPFR and MPC and one of the goals was to
make gmpy2 follow existing Python conventions as much as possible.
gmpy2.sqrt now returns an mpfr type and gmpy2.isqrt returns the
integer square root.
The mpmath repository includes a couple fixes for gmpy2. For example,
one of fixes in mpmath is
if BACKEND == 'gmpy':
if gmpy.version() >= "2":
isqrt_small = isqrt_fast = isqrt = gmpy.isqrt
sqrtrem = gmpy.isqrt_rem
else:
isqrt_small = isqrt_fast = isqrt = gmpy.sqrt
sqrtrem = gmpy.sqrtrem
I've follwed a similar approach in sympy.
casevh
>
> From the previous response: "gmpy duplicated almost all function calls
> with method calls; gmpy2 removes most of duplicate method calls". So I
> guess sqrt is only a function in gmpy2.
>
> Aaron Meurer
>
>>
>> Ondrej
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "sympy" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at http://groups.google.com/group/sympy?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/sympy?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
--
You received this message because you are subscribed to the Google Groups
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.