Java tutorial
//package com.java2s; public class Main { public static double M_E = 2.71828182845904523536028747135266250; public static double earth_R = 6378137.0; public static double earth_Rn(double L) { return earth_R * (1 - 2 * M_E + 3 * M_E * Math.sin(L)); } }