← Main book chapter 5
Contents / index
Browser back
← Previous chapter
Next chapter →
Laboratory
Memory
Cards
Sort
Match
Visuals
Coding
Quiz
Programming practice
Jacobi iteration — Chapter 5
Fix Jacobi so both components use the old iterate.
Language:
JavaScript
Student code
function jacobiStep(x,y){ x = (1-y)/4; y = (2-x)/3; return [x,y]; }
Check code
Show corrected code
Reset buggy code
Feedback
Corrected code