issmall: Is a form zero to within numerical precision?

issmallR Documentation

Is a form zero to within numerical precision?

Description

\loadmathjax

Given a \mjseqnk-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

stokes documentation built on Aug. 19, 2023, 1:07 a.m.