wedge (version 1.0-3)

issmall: Is a form zero to within numerical precision?

Description

Given a \(k\)-form, return TRUE if it is “small”

Usage

issmall(M, tol=1e-8)

Arguments

M

Object of class kform or ktensor

tol

Small tolerance, defaulting to 1e-8

Value

Returns a logical

Examples

Run this code
# NOT RUN {
o <- kform_general(4,2,runif(6))
M <- matrix(rnorm(36),6,6)

discrepancy <- o - transform(transform(o,M),solve(M))

issmall(discrepancy)  # should be TRUE
is.zero(discrepancy)  # might be FALSE
# }

Run the code above in your browser using DataCamp Workspace