Learn R Programming

nleqslv (version 3.3.5)

print.test.nleqslv: Printing the result of testnslv

Description

Print method for test.nleqslv objects.

Usage

# S3 method for test.nleqslv
print(x, digits=4, width.cutoff=45L, ...)

Value

It returns the object x invisibly.

Arguments

x

a test.nleqslv object

digits

specifies the minimum number of significant digits to be printed in values.

width.cutoff

integer passed to deparse which sets the cutoff at which line-breaking is tried.

...

additional arguments to print.

Details

This is the print method for objects inheriting from class test.nleqslv. It prints the call to testnslv followed by the description of the experiment (if the title argument was specified in the call to testnslv) and the dataframe containing the results of testnslv.

Examples

Run this code
dslnex <- function(x) {
    y <- numeric(2)
    y[1] <- x[1]^2 + x[2]^2 - 2
    y[2] <- exp(x[1]-1) + x[2]^3 - 2
    y
}
xstart <- c(1.5,0.5)
fstart <- dslnex(xstart)
z <- testnslv(xstart,dslnex)
print(z)

Run the code above in your browser using DataLab