Two multivariate polynomials x,y are held to be approximately equal if the coefficients of x−y are small compared to the coefficients of x and y 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()/1e5a2 <- a - rmvp()/1e5all.equal(a1,a2)