rgp (version 0.4-1)

seSymbolic: Symbolic squared error (SE)

Description

Given to functions f and g, returns the area the squared differences between f and g in the integration limits lower and upper.

Usage

seSymbolic(f, g, lower, upper, subdivisions = 100)

Arguments

f
An R function.
g
An R function with the same formal arguments as f.
lower
The lower limit of integraion.
upper
The upper limit of integraion.
subdivisions
The maximum number of subintervals for numeric integration.

Value

The area of the squared differences between f and g, or Inf if integration is not possible in the limits given.