mosaic (version 1.8.2)

expandFun: Expand the left-hand side of a formula

Description

Expands the contents of functions used in a formula.

Usage

expandFun(formula, ...)

Arguments

formula

A mathematical expression (see examples and plotFun())

additional parameters

Value

A list with the new expanded formula and the combined formals

Examples

Run this code
# NOT RUN {
f=makeFun(x^2~x)
expandFun(f(z)~z) #Returns z^2~z
# }

Run the code above in your browser using DataLab