Description Usage Arguments Details Value See Also Examples
simplify simplifies sexp by applying basic algebraic
simplification rules.
simplifyq quotes its argument, i.e. simplifyq(X) is
equivalent to simplify(quote(X)).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
sexp |
An R object to simplify. See details. |
simplify is a S3 generic method with support for objects of class
numeric, integer, name, call, and
function.
SimplR uses code from the Ev3 computer algebra system to implement
expression simplification. The following simplification steps are
performed:
consolidate product coefficients
distribute coefficients over sums
convert differences to sums
simplify constants
simplify products
compact linear parts
simplify trigonometrics
The simplified expression.
http://www.lix.polytechnique.fr/~liberti/Ev3.pdf
1 2 3 4 5 6 7 8 9 10 11 12 |
[1] 7
x
[1] 1
[1] 0
x
y + 2 * f(x)
[1] 1
function (a, b)
15 + 2 * a
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.