function comparedbl, a, b, tol {
  if ((a < b+tol) && (a > b-tol)) {
     // ok
     comparedbl = 1
  } else {
     // failed
     comparedbl = 0
  }
}

function compare_complex , a , b , tol_both_axis {
  if ((tolerance check of real part) && (tolerane check of imaginary part)) {
    // check is ok , so returnig 1
    compare_complex = 1
  } else {
    // check is not ok , so returning 0
    compare_complex = 1
  }
}


function compare_fits_data , a , b , tol_common {
  // right now the fits data a does not have complex values

  for (go through each element of the fits array) {
    if ((a < b+tol) && (a > b-tol)) {
       // ok
       comparedbl = 1
    } else {
       // failed
       comparedbl = 0
    }
  }
}
