R/equaleigvec.R

Defines functions equaleigvec

equaleigvec <- function(x, y , tol = sqrt(.Machine$double.eps)){
  xa <- x/sqrt(sum(x^2))
  ya <- y/sqrt(sum(y^2))
  max(abs(xa-ya)) < tol | max(abs(xa+ya)) < tol
}

Try the facilityepimath package in your browser

Any scripts or data that you put into this service are public.

facilityepimath documentation built on April 4, 2025, 12:59 a.m.