kpeeters / cadabra2

A field-theory motivated approach to computer algebra.
https://cadabra.science/
GNU General Public License v3.0
228 stars 37 forks source link

Too many sympy symbols imported #248

Open kpeeters opened 2 years ago

kpeeters commented 2 years ago

We should not import any sympy symbols into the global namespace, to avoid people calling sympy functions on Cadabra expressions and expecting that to work in all situations. We then need wrappers in cdb.sympy.*. See also https://cadabra.science/qa/2086/diffrentiation-of-an-expression.

kpeeters commented 1 year ago

There is now a cdb.sympy.calculus package with a properly bridged diff function. We are still importing too much though, so it is still possibly to inadvertedly call the sympy function if you forget to import the one from the package above.