func ApproxEpsilon(x, y float64, eps float64) bool {
	return math.Abs(x-y) < eps*(1.0+math.Max(math.Abs(x), math.Abs(y)))
}
func ApproxEpsilon(x, y float64, eps float64) bool {
	return math.Abs(x-y) < eps*(1.0+math.Max(math.Abs(x), math.Abs(y)))
}
// ApproxEpsilon returns true if x ~= y, using provided epsilon value.