class Tabulation { /* Retourne la valeur de sin(theta)/cos(theta), avec theta exprimé en * degrés. */ static double maJolieFonction(double theta) { double angle = Math.toRadians(theta); return Math.sin(angle) / Math.cos(angle); } public static void main(String[] args) { final double thetaMin = 0.0; final double thetaMax = 360.0; final double incr = 10.0; System.out.println("theta \tmaJolieFonction(theta)"); System.out.println("--------\t----------------------"); for (double theta = thetaMin; theta < thetaMax; theta += incr) { double val = maJolieFonction(theta); System.out.println(theta + " \t\t" + val); } } }