Hallo alle Zusammen,
wer kann mir bei dieser aufgebe denn weiterhelfen ?
die aufgabe:
Berechnen Sie den double-Wert. (1 / 107751) * (1682xy4 + 3x3 + 29xy2 – 2x5 + 832).
Für x = 192119201 und y = 35675640.
meine Lösung:
public class ue13_a6 {
public static void main(String[] args){
int x = 192119201;
int y = 35675640;
double Ergebnis = (1 / 107751) * (1682*x*(y*y*y*y) + 3*(x*x*x) + 29*x*(y*y) - 2*(x*x*x*x*x) + 832);
IO.println(Ergebnis);
}
}
Es kommt der Wert 0.0 raus, es müsste aber 1783 rauskommen.
Was mache ich nur falsch ?
wer kann mir bei dieser aufgebe denn weiterhelfen ?
die aufgabe:
Berechnen Sie den double-Wert. (1 / 107751) * (1682xy4 + 3x3 + 29xy2 – 2x5 + 832).
Für x = 192119201 und y = 35675640.
meine Lösung:
public class ue13_a6 {
public static void main(String[] args){
int x = 192119201;
int y = 35675640;
double Ergebnis = (1 / 107751) * (1682*x*(y*y*y*y) + 3*(x*x*x) + 29*x*(y*y) - 2*(x*x*x*x*x) + 832);
IO.println(Ergebnis);
}
}
Es kommt der Wert 0.0 raus, es müsste aber 1783 rauskommen.
Was mache ich nur falsch ?