collect {caracas} | R Documentation |
Collects common powers of a term in an expression
Description
Collects common powers of a term in an expression
Usage
collect(x, a)
Arguments
x , a |
A |
Examples
if (has_sympy()){
def_sym(x, y, z)
expr = x*y + x - 3 + 2*x**2 - z*x**2 + x**3
collect(expr, x)
}
[Package caracas version 2.1.1 Index]