all.equal function

Approximate equality of mvp objects

Approximate equality of mvp objects

Two multivariate polynomials x,yx,y are held to be approximately equal if the coefficients of xyx-y are small compared to the coefficients of xx and yy separately. The comparison all.equal() is dispatched to all_equal_mvp() which uses base::all.equal().

all_equal_mvp(target, current)

Arguments

  • target,current: Objects of class mvp

Author(s)

Robin K. S. Hankin

Examples

a <- rmvp() a1 <- a + rmvp()/1e5 a2 <- a - rmvp()/1e5 all.equal(a1,a2)