wie kann ich die Fehlermeldung umgehen: possible loss of precision bzw. führt der Algorithmus zum gewünschtem Ergebnis?
Java:
public class Euler
{
// instance variables - replace the example below with your own
double e, summand;
public Euler()
{
e=1.0;
summand=1.0;
}
public long eulersche (double x){
if (x<=1){
return 1;
}else{
return e+summand/eulersche (x-1);
}
}
}