Computus in scala and java
In the spirit of the holiday, I figured I would try my hand at writing computus in scala and java. For those who aren't aware, computus is the algorithm used to compute which day easter falls on. First, the scala version: object Computus { def main(args: Array[String]) { val start = System.currentTimeMillis() for (year 11)) || (epact_val ==24)) { epact_val + 1 } else { epact_val } } def n_whatever(year:Long):Long = { 44- correct_epact(year) } def fix_n(year:Long):Long = { val n=n_whatever(year) if (n 31) { "April " + (day_of_march -31).toString() } else { "March " + day_of_march.toString() } } } and now the java version public class JavaComputus { public static void main(String[] args) { Long start = System.currentTimeMillis(); for (long i = 2000; i 11)) || (epact_val ==24)) { return epact_val + 1; } else { return epact_val; } } ...