Open jverzani opened 2 months ago
Adds a TermInterface dependency, not an extension
Offers a few possible means to roundtrip from, say SymbolicUtils to/from SymPy. This is suggested in https://github.com/JuliaSymbolics/Symbolics.jl/issues/1223
The main issue is roundtripping between symbolic variables and symbolic numbers.
The xchange style requires the user to create pairs of variables and these are exchanged.
xchange
The exchange style requires the package developer to define some methods. For SymbolicUtils this is done through an extension.
exchange
For this style, the roundtrip process would look something like
import SymPy, SymbolicUtils import SymPy.SymPyCore: exchange T,S = SymbolicUtils.Sym, SymPy.SymPyCore.Sym SymbolicUtils.@syms x ex = x^2 + 2 # some expression ex1 = exchange(S, ex) exchange(T, ex1)
Adds a TermInterface dependency, not an extension
Offers a few possible means to roundtrip from, say SymbolicUtils to/from SymPy. This is suggested in https://github.com/JuliaSymbolics/Symbolics.jl/issues/1223
The main issue is roundtripping between symbolic variables and symbolic numbers.
The
xchange
style requires the user to create pairs of variables and these are exchanged.The
exchange
style requires the package developer to define some methods. For SymbolicUtils this is done through an extension.For this style, the roundtrip process would look something like