docs: public boolean hasBadValues() {
          for(int i=0; i<top; i++) {
              double v = vals[i];
              boolean bad = Double.isNaN(v) || Double.isInfinite(v);
              if(bad) return true;
          }
          return false;
      }