// 1. Fixpunkt
x1 = x10;
lambda1 = abs(exp(x10)/2);
if (lambda1 < 1)
{
for (n1 = 0; n1 < nMax; n1++)
{ // Fixpunkt_1iteration
x1 = (exp(x1) - 2)/2; // Berechnung des verbesserten x-Wertes
if (abs(x1 - x1_old) < epsilon) break; // geforderte Genauigkeit erreicht
x1_old = x1;
}
if (n1 >= nMax) displayLine("n > nMax!", 0, "LEFT", 10, 45);
}
else displayLine("lambda >= 1!", '#ff0000', "LEFT", 10, 50);
deltax1 = 2 + 2*x1 - exp(x1);
// 2. Fixpunkt
x2 = x20;
if (x20 != -1) lambda2 = abs(1/(x20+1)); else lambda2 = 1e8;
if (lambda2 < 1)
{
for (n2 = 0; n2 < nMax; n2++)
{ // Fixpunkt_1iteration
x2 = log(2) + log(1 + x2);
if (abs(x2 - x2_old) < epsilon) break;
x2_old = x2;
}
if (n2 >= nMax) displayLine("n > nMax!", 0, "LEFT", 70, 45);
}
else displayLine("lambda >= 1!", '#ff0000', "LEFT", 70, 50);
deltax2 = 2 + 2*x2 - exp(x2);