cadabra2 icon indicating copy to clipboard operation
cadabra2 copied to clipboard

Too many sympy symbols imported

Open kpeeters opened this issue 3 years ago • 1 comments

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 avatar Jan 29 '22 22:01 kpeeters

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.

kpeeters avatar Oct 23 '22 17:10 kpeeters