function isClose(a, b, relTol = 1e-9, absTol = 0.0) {
if(isNaN(a) || isNaN(b)){
return false
}
if(a===b){
return true
}
if(!isFinite(a) || !isFinite(b)){
return false
}
return (
Math.abs(a - b) <=
Math.max(relTol * Math.max(Math.abs(a), Math.abs(b)), absTol)
);
}