nlsSimplify {nlsr} | R Documentation |
nlsSimplify
Description
Try to simplify an expression.
Usage
nlsSimplify(expr, simpEnv = sysSimplifications, verbose = FALSE)
Arguments
expr |
An expression represented in a variety of ways. See Details. |
simpEnv |
The environment in which simplifications are stored. |
verbose |
If |
Details
The expr
can be an expression vector or other language object.
If it
is a complex expression (e.g. (a + b) + c
), then simplifications
will be applied recursively. Simplifications are applied
from the database created by newSimplification
,
and the new expression (or call...) is returned.
This function is mainly for internal use by nlsDeriv
.
Examples
nlsSimplify(quote(x + 0 + y*1), verbose = TRUE)
[Package nlsr version 2023.8.31 Index]