elliptic (version 1.4-0)

massage: Massages numbers near the real line to be real

Description

Returns the Real part of numbers near the real line

Usage

massage(z, tol = 1e-10)

Arguments

z

vector of complex numbers to be massaged

tol

Tolerance

Examples

Run this code
# NOT RUN {
massage(1+1i)
massage(1+1e-11i)

massage(c(1,1+1e-11i,1+10i))
# }

Run the code above in your browser using DataLab