← Main book chapter 11
Contents / index
Browser back
← Previous chapter
Next chapter →
Laboratory
Memory
Cards
Sort
Match
Visuals
Coding
Quiz
Programming practice
Finite-difference BVP row — Chapter 11
Fix the centered second derivative stencil.
Language:
JavaScript
Student code
A[i][i-1] = -1/(h*h); A[i][i] = 1/(h*h); A[i][i+1] = -1/(h*h);
Check code
Show corrected code
Reset buggy code
Feedback
Corrected code