nlsSimplify function

nlsSimplify

nlsSimplify

Try to simplify an expression.

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)
  • Maintainer: John C Nash
  • License: GPL-2
  • Last published: 2023-09-05

Useful links