Skip to contents

Function("f") returns an R function that builds unevaluated applications such as f(x). Derivatives of these stay as Derivative() objects, which is how SymPy represents unknown functions in differential equations.

Usage

Function(name)

Arguments

name

Function name.

Value

An R function of any number of arguments.

Examples

f <- Function("f")
x <- Symbol("x")
f(x) + f(x)
#> 2*f(x)