Buch Modellbildung und Simulation
Error creating thumbnail: Unable to save thumbnail to destination
Das Buch "Modellbildung und Simulation - Eine anwendungsorientierte Einführung" ist 2009 im Springer-Verlag erschienen
Errata
- S. 91, Z. 6: $n_A := |S_A|$ statt $n_A := |S_B|$
- S. 266, Z. 6: "allen" statt "allem"
- S. 364, Z10: "vorstellen" statt "vrstellen"
- S. 365, multigrid-Algorithmus
- Z. 6: zero_vector(l-1) statt zero_vector(l)
- Am Ende sollte
x
als Funktionsergebnis zurückgegeben werden - Und der Rumpf des
if
wäre einheitlicher mit{}
geklammert - Im ganzen Satz:
multigrid(l, b, x){
x = jacobi(l, b, x) // Vorglätten
if(l>0) { // Abbruchbedingung
r = residual(l, b, x) // Residuum berechnen
b_c = restrict(l, r) // Restriktion
e_c = zero_vector(l-1)
e_c = multigrid(l-1, b_c, e_c) // Rekursion
x_delta = interpolate(l, e_c) // Prolongation
x = x + x_delta // Korrektur
}
x = jacobi(l, b, x) // Nachglätten
return x
}