kpeeters / cadabra2

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

evaluate does not play nice with ::Depends(\partial{#}) #88

Closed kpeeters closed 5 years ago

kpeeters commented 6 years ago

When an object has a dependency as in the title, it gets added by sympy bridge as diff(#) which then freaks out the sympy parser. Dependencies of the type Depends(x,y,z) work but the above would be nice to have too.

kpeeters commented 5 years ago

This is now deprecated; derivatives with implicit 'object with respect to which the derivative is taken' should be written as e.g.

D{#}::Derivative(\tau);

and then the dependence can be written as

f::Depends(\tau);

The SymPy converter will now throw an exception when ::Depends(\partial{#}) is encountered.