MathFun: Miscellaneous Mathematical Functions

Description Usage Arguments Value Examples

Description

The function abs(x) computes the absolute value of x, while sqrt(x) computes the square root of x.

Usage

1
2
3
4
5
## S4 method for signature 'dual'
sqrt(x)

## S4 method for signature 'dual'
abs(x)

Arguments

x

a dual object or numeric value.

Value

A dual object containing the transformed values according to the chosen function.

Examples

1
2
3
4
x <- dual(4.3, 1:0)
y <- dual(7.6, 0:1)
abs(-2.2 * x + 0.321 * y)
sqrt(y - x)

dual documentation built on Dec. 18, 2019, 5:08 p.m.