replace_constants function¶
(Shortest import: from brian2.parsing.sympytools import replace_constants)
-
brian2.parsing.sympytools.
replace_constants
(sympy_expr, variables=None)[source]¶ Replace constant values in a sympy expression with their numerical value.
Parameters: sympy_expr :
sympy.Expr
The expression
variables : dict-like, optional
Dictionary of
Variable
objectsReturns: new_expr :
sympy.Expr
Expressions with all constants replaced