aaaaaaaahhhhhhhhhhhhh

master
Domen 2025-03-21 15:33:01 +01:00
parent 8e0df97a0c
commit d37abad2ac
1 changed files with 69 additions and 1 deletions

View File

@ -47,6 +47,10 @@ public static double quadrat(double x) {
return ergebnis;
}
/**
* Berechnet die Potenz a^b
*/
public static double potenz(double j, double k){
double E = 1;
@ -54,5 +58,69 @@ public static double quadrat(double x) {
E = E* j;
}
return E;
}
}
public static int max(int a, int b){
if( a < b)
return b;
else{ return a;
}
}
public static int min(int a, int b){
if( a > b)
return b;
else{ return a;
}
}
public static int abs(int a){
if( a < 0)
return produkt(a, -1);
else{
return a;
}
}
public static int round(double a){
int vorkomma = (int) a;
double nachkomma = a - vorkomma;
if(nachkomma >= 0.5)
return (int) a + 1;
else{
return (int) a;
}
}
public static boolean istGroß(double a){
if( a > 1000)
return true;
else{
return false;
}
}
public static boolean istBetragsmaesigGroß(double a){
if(abs((int)a) > 1000)
return true;
else{
return false;
}
}
public static boolean istGerade(int a){
}
}