Learn R Programming

mosaicCalc (version 0.6.4)

Zeros: Finds zeros of a function within a specified domain

Description

Finds zeros of a function within a specified domain

Usage

Zeros(tilde, domain = NULL, ..., nsegs = 131)

Value

A data frame with two columns. The first has the name of the input in the tilde expression, and gives the values for that input at which the function is approximately zero. The second column, .output. gives the actual value of the function at the inputs in the first column.

Arguments

tilde

tilde expression defining a function, suitable for makeFun()

domain

specification of domain, as in slice_plot()

...

Assignments to parameters

nsegs

Subdivide the domain into this many segments, looking for a zero in each of those segments. This helps to find multiple zeros.

Examples

Run this code
Zeros(a*x + b ~ x, a=1, b=2)

Run the code above in your browser using DataLab