← Main book chapter 13
Contents / index
Browser back
← Previous chapter
Next chapter →
Laboratory
Memory
Cards
Sort
Match
Visuals
Coding
Quiz
Programming practice
Chebyshev--Lobatto nodes — Chapter 13
Fix the formula for Chebyshev--Lobatto nodes.
Language:
JavaScript
Student code
function nodes(N){ return Array.from({length:N}, (_,j)=>Math.cos(j*Math.PI/N)); }
Check code
Show corrected code
Reset buggy code
Feedback
Corrected code