print.testnslv: Printing the result of 'testnslv'

print.test.nleqslvR Documentation

Printing the result of testnslv

Description

Print method for test.nleqslv objects.

Usage

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

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.

Value

It returns the object x invisibly.

Examples

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)

nleqslv documentation built on Nov. 27, 2023, 1:08 a.m.