### Question:
TSAGeoMag { public double getDipAngle( double dlat, double dlong ) { calcGeoMag( dlat, dlong, defaultDate, defaultAltitude ); return dip; } TSAGeoMag(); double getDeclination( double dlat, double dlong ); double getDeclination( double dlat, double dlong, double year, double altitude ); double getIntensity( double dlat, double dlong ); double getIntensity( double dlat, double dlong, double year, double altitude ); double getHorizontalIntensity( double dlat, double dlong ); double getHorizontalIntensity( double dlat, double dlong, double year, double altitude ); double getVerticalIntensity( double dlat, double dlong ); double getVerticalIntensity( double dlat, double dlong, double year, double altitude ); double getNorthIntensity( double dlat, double dlong ); double getNorthIntensity( double dlat, double dlong, double year, double altitude ); double getEastIntensity( double dlat, double dlong ); double getEastIntensity( double dlat, double dlong, double year, double altitude ); double getDipAngle( double dlat, double dlong ); double getDipAngle( double dlat, double dlong, double year, double altitude ); double decimalYear(GregorianCalendar cal);  }### Answer:
@Test public final void getDipAngle() { assertEquals(83.04, magModel.getDipAngle(80, 0, 2015, 0), 5E-03); assertEquals(-15.89, magModel.getDipAngle(0, 120, 2015, 0), 5.0E-03); assertEquals(-72.39, magModel.getDipAngle(-80, 240, 2015, 0), 5.0E-03); assertEquals(83.09, magModel.getDipAngle(80, 0, 2015, 100), 5.0E-03); assertEquals(-16.01, magModel.getDipAngle(0, 120, 2015, 100), 5.0E-03); assertEquals(-72.57, magModel.getDipAngle(-80, 240, 2015, 100), 5.0E-03); assertEquals(83.08, magModel.getDipAngle(80, 0, 2017.5, 0), 5.0E-03); assertEquals(-15.57, magModel.getDipAngle(0, 120, 2017.5, 0), 5.0E-03); assertEquals(-72.28, magModel.getDipAngle(-80, 240, 2017.5, 0), 5.0E-03); assertEquals(83.13, magModel.getDipAngle(80, 0, 2017.5, 100), 5.0E-03); assertEquals(-15.70, magModel.getDipAngle(0, 120, 2017.5, 100), 5.0E-03); assertEquals(-72.45, magModel.getDipAngle(-80, 240, 2017.5, 100), 5.0E-03); assertEquals(83.08, magModel.getDipAngle(80, 0), 5.0E-03); assertEquals(-15.57, magModel.getDipAngle(0, 120), 5.0E-03); assertEquals(-72.28, magModel.getDipAngle(-80, 240), 5.0E-03); }