@Override public double cos(int step){
  step=Math.abs(step) % steps;
  return costable[step];
}

@ Override public double cos ( int step ) { step = Math . abs ( step ) % steps ; return costable [ step ] ; }
get cosine by step value .
