nlsSimplify: nlsSimplify

View source: R/derivs.R

nlsSimplifyR 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 TRUE, then diagnostic output will be printed as simplifications are recognized.

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)

nlsr documentation built on Sept. 8, 2023, 5:48 p.m.