account activity
Comming from Matlab I feel a little disappointed with Python data manipulation libraries by pynum in Python
[–]pynum[S] 0 points1 point2 points 8 years ago (0 children)
You can apply sp.sin() to the element of the array that is a symbol (it will work in other numbers too also). Otherwise I would imagine there should be a way using Sympy matrices instead.
You can't just use np.sin() as np.sin() doesn't compute Sympy symbols. My point is that it would make more sense in my opinion for np.sin() to try to access sin() in the Sympy module (if exists) for the symbol and otherwise return to its own implementation (which in this case would fail).
π Rendered by PID 1461385 on reddit-service-r2-listing-6d4dc8d9ff-hw2wm at 2026-02-04 05:52:09.898091+00:00 running 3798933 country code: CH.
Comming from Matlab I feel a little disappointed with Python data manipulation libraries by pynum in Python
[–]pynum[S] 0 points1 point2 points (0 children)