round.dual {ADtools}R Documentation

Rounding of Numbers

Description

Rounding of Numbers

Usage

## S3 method for class 'dual'
round(x, digits = 0)

Arguments

x

A "dual" object.

digits

An integer indicating the number of decimal places.

Note

The function 'round' does not have a derivative over the real line. The derivative will be kept unchanged. The reason of not dropping it is that sometimes one may need to round a matrix to correct floating-point errors. This is often used when an apparent symmetric matrix does not pass the symmetry test.


[Package ADtools version 0.5.5 Index]