--- /dev/null
+/**
+ *
+ */
+package de.hamatoma.jkurs;
+
+import java.lang.Math;
+
+public class Lesson1 {
+ public static void main(String[] args) {
+ double a = 1;
+ double s = 2;
+ double w0 = Math.atan(a / s);
+ double lastW = w0;
+ int n = 1;
+ double wN = Math.atan(a / (s - n / 100.0));
+ System.out.println(String.format("1: Winkel: %f Diff: %f", wN, wN
+ - lastW));
+ lastW = wN;
+ n = 2;
+ wN = Math.atan(a / (s - n / 100.0));
+ System.out.println(String.format("%d: Winkel: %f Diff: %f", n, wN, wN
+ - lastW));
+ lastW = wN;
+ n = 3;
+ wN = Math.atan(a / (s - n / 100.0));
+ System.out.println(String.format("%d: Winkel: %f Diff: %f", n, wN, wN
+ - lastW));
+ lastW = wN;
+ n = 4;
+ wN = Math.atan(a / (s - n / 100.0));
+ System.out.println(String.format("%d: Winkel: %f Diff: %f", n, wN, wN
+ - lastW));
+ lastW = wN;
+ n = 5;
+ wN = Math.atan(a / (s - n / 100.0));
+ System.out.println(String.format("%d: Winkel: %f Diff: %f", n, wN, wN
+ - lastW));
+ }
+}
--- /dev/null
+/**
+ *
+ */
+package de.hamatoma.jkurs;
+
+/**
+ * @author hm
+ *
+ */
+public class Lesson1b {
+
+ /**
+ * @param args
+ */
+ public static void main(String[] args) {
+ double a = 1;
+ double s = 2;
+ double w0 = Math.atan(a / s);
+ double lastW = w0;
+ int n = 1;
+ double wN = Math.atan(a / (s - n / 100.0));
+ System.out.println(String.format("1: Winkel: %f Diff: %f", wN, wN
+ - lastW));
+ lastW = wN;
+ n = 2;
+ wN = Math.atan(a / (s - n / 100.0));
+ System.out.println(String.format("%d: Winkel: %f Diff: %f", n, wN, wN
+ - lastW));
+ lastW = wN;
+ n = 3;
+ wN = Math.atan(a / (s - n / 100.0));
+ System.out.println(String.format("%d: Winkel: %f Diff: %f", n, wN, wN
+ - lastW));
+ lastW = wN;
+ n = 4;
+ wN = Math.atan(a / (s - n / 100.0));
+ System.out.println(String.format("%d: Winkel: %f Diff: %f", n, wN, wN
+ - lastW));
+ lastW = wN;
+ n = 5;
+ wN = Math.atan(a / (s - n / 100.0));
+ System.out.println(String.format("%d: Winkel: %f Diff: %f", n, wN, wN
+ - lastW));
+ }
+
+}