smpl.wrap.get_varnames

smpl.wrap.get_varnames(expr, xvar)[source]

Returns a list of variables used in the str math-expression via sympy and puts xvar to the front.

Examples

>>> get_varnames("a**x*b+c","x")
['x', 'a', 'b', 'c']