R/ops.R
expand.Rd
This function takes a SymEngine object and return its expanded form.
expand(x)
A Basic/VecBasic/DenseMatrix S4 object.
Same type as input.
expr <- S(~ (x + y) ^ 3) expand(expr) #> (Add) 3*x*y^2 + 3*x^2*y + x^3 + y^3