Learn R Programming

stokes (version 1.2-1)

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)

Value

Returns a logical

Arguments

M

Object of class kform or ktensor

tol

Small tolerance, defaulting to 1e-8

Author

Robin K. S. Hankin

Examples

Run this code

o <- kform_general(3,2,runif(3))
M <- matrix(rnorm(9),3,3)

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

discrepancy # print method might imply coefficients are zeros

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

Run the code above in your browser using DataLab