From 57f22b225b9fe44b0144b6c4d6581a05e885c8cf Mon Sep 17 00:00:00 2001 From: E7-87-83 Date: Mon, 11 Apr 2022 02:33:25 +0800 Subject: correct filing again --- challenge-159/java/Moebius.java | 79 ----------------------------------------- 1 file changed, 79 deletions(-) delete mode 100644 challenge-159/java/Moebius.java (limited to 'challenge-159/java/Moebius.java') diff --git a/challenge-159/java/Moebius.java b/challenge-159/java/Moebius.java deleted file mode 100644 index b52e049ca8..0000000000 --- a/challenge-159/java/Moebius.java +++ /dev/null @@ -1,79 +0,0 @@ -// The Weekly Challenge 159 -// Task 2 Moebius Function -// Usage: java Moebius N - -public class Moebius -{ - public static void main(String[] args) - { - int N = 1; - try { - N = Integer.parseInt(args[0]); - } catch (Exception e) { - System.err.print("Please use a positive integer "); - System.err.println("as your parameter."); - System.exit(0); - } - double[][] complex1 = new double[][] { {1, 0} , {0, 1} }; - double[][] complex2 = new double[][] { {0, 1} , {-1, 0} }; - System.out.println(Math.round(mu(N))); - } - - - public static double mu(int n) - { - double[][] sum = ithRootOfUnityModuloN(1, n); - LOOP: for (int i=2; i