JuliaSymbolics / SymbolicUtils.jl

Symbolic expressions, rewriting and simplification
https://docs.sciml.ai/SymbolicUtils/stable/
Other
527 stars 100 forks source link

Fix `toterm` bug that omits coeff. #471

Closed sunxd3 closed 1 year ago

sunxd3 commented 1 year ago

Simple fix.

Before

>julia @syms a; SymbolicUtils.toterm(a+1)
a

>julia @syms a; SymbolicUtils.toterm(2a)
a

Now the function works as intended.

shashi commented 1 year ago

@YingboMa could you review?