In general, using SymPy expressions with NumPy functions is not
supported, but I think it does make sense to make Number classes
(Integer, Float, Rational) work. Can you open an issue about this at
https://github.com/sympy/sympy/issues.
I don't know exactly what needs to be done to make this work.
Hopefully NumPy provides the proper hooks. Ideally, Rational and Float
would be converted to np.float64 and Integer would be converted to
np.int64 when used in functions like linspace. Although changing this
could potentially be an issue if people are using numpy arrays of
Rational currently (which I wouldn't necessarily recommend).
Aaron Meurer
> --
> 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
sympy+un...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/sympy/208b8d87-9e7b-4fe9-86fc-9575a0b57002n%40googlegroups.com.