jverzani / SymPyCore.jl

Package to help connect Julia with the SymPy library of Python
https://jverzani.github.io/SymPyCore.jl/
MIT License
5 stars 4 forks source link

Unexpected Result of Sym instead of SymFunction #53

Closed tomaklutfu closed 3 months ago

tomaklutfu commented 3 months ago

The constructors mentioned in this line return Sym objects instead of SymFunction but what is the use of them? The callabality is broken if Sym object is used since f(t), then, returns the object f but silently it is changed to t. Then, it causes diff(f(t), t) to return 1.

jverzani commented 3 months ago

Yes, the issue is in calling v(t) for such objects. I need to catch that case. Thanks for letting me know.

jverzani commented 3 months ago

54 works around this. Thanks

tomaklutfu commented 3 months ago

Thanks for quick fix.