Rikard Nordgren

Results 237 comments of Rikard Nordgren

It turns out that it was actually this warning that was triggered: ``` .tox/py38/lib/python3.8/site-packages/mpmath/libmp/six.py:74: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative...

What error message do you get when running your code?

Any further comments on this?

Thanks for reporting this. The issue is because the `0.5` and `-0.25` are interpreted as floats which are regarded in symengine to be approximations and potentially irrational. If rationals would...

Integers that fits in an `int` will not be converted to strings so I tested with smaller numbers. For `Integers` we get close, but `Rationals` are much slower to create...

Apart from #391 I don't think there are any things that can be done in cython to speed this up. symengine is at a disadvantage here since we need to...

Turns out there are other constructors for mpz from an array in memory. This could be used to speed up the integer constructor by constructing directly from the python integer...

There is a difference between sympy and symengine here: ``` > import symengine > (2*symengine.pi).is_number None ``` but ``` > import sympy > (2*sympy.pi).is_number True ``` I think symengine should...

Yes, so it seems. This is the content of `ciso646.h` from gcc that gets installed with `ciso646` ```C #ifndef __cplusplus #define and && #define and_eq &= #define bitand & #define...

Sympy ends up with the same ```Derivative(1, 1)``` although it doesn't crash. The derivative of ```abs(x)``` is not defined at ```x=0``` so there might currently be no good way of...