i am using haversine formula in java programming (using eclipse). My problem is at the end of the equation where i get an error (atan is underlined) saying that "The method atan(double) is undefined for the type Math".
i dont know what is the problem. Does anyone have an idea?
double angle = 45;
double arctan = Math.atan(angle);