R/simplify.R
expand.Rd
Expand expression
expand(x, ...)
A caracas_symbol
caracas_symbol
Pass on to SymPy's expand, e.g. force = TRUE
force = TRUE
if (has_sympy()) { def_sym(x) y <- log(exp(x)) simplify(y) expand(simplify(y)) expand(simplify(y), force = TRUE) expand_log(simplify(y)) } #> c: x