issmall {stokes}R Documentation

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

Author(s)

Robin K. S. Hankin

Examples


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 coefficents are zeros

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

[Package stokes version 1.2-0 Index]