import java.lang.Math;
public class Mathtest {
public static void main(String args[])
{
//d=111.12cos{1/[sinΦAsinΦB十cosΦAcosΦBcos(λB—λA)]}
//A:
// double lngA=120.98;
double Ajingdu=117.14259624636335;
double Aweidu=39.09080750868698;
double Bjingdu=117.1433295796967;
double Bweidu=39.09024750868698;
double asd=0.0;
double juli=0.0;
// double asd=Math.sin(latA)*Math.sin(latB)+Math.cos(latA)*Math.cos(latB)*Math.cos(lngB-lngA);
double ax = Aweidu*Math.PI/180;
double bx = Bweidu*Math.PI/180;
double ay = Ajingdu*Math.PI/180;
double by = Bjingdu*Math.PI/180;
double z = (Bjingdu-Ajingdu)*Math.PI/180;
asd = (Math.acos((Math.sin(ax)*Math.sin(bx)+Math.cos(ax)*Math.cos(bx)*Math.cos(z))));
System.out.println("jieguo="+111.32*asd*180/Math.PI);
}
}