fixed typos

This commit is contained in:
Johannes Schmelz 2025-05-02 13:53:22 +02:00
parent a50307c4d4
commit 6426a6ccfb

View File

@ -28,6 +28,10 @@ public class Polynomial {
this(new int[]{0,1});
}
public int getDegree() {
return degree;
}
//Option 1 Kopie des Arrays
public int[] getCoeef() {
return werte.clone();
@ -179,7 +183,7 @@ public class Polynomial {
public int apply(int v) {
int res = werte[werte.length - 1];
for (int i = werte.length - 2; i >= 0; i--)
res = res + v * werte[i];
res = res * v + werte[i];
return res;
}