← Main book chapter 15
Contents / index
Browser back
← Previous chapter
Next chapter →
Laboratory
Memory
Cards
Sort
Match
Visuals
Coding
Quiz
Programming practice
L1 fractional weights — Chapter 15
Fix the L1 weights for \(0<\alpha<1\).
Language:
JavaScript
Student code
function weight(k,alpha){ return Math.pow(k+1,alpha)-Math.pow(k,alpha); }
Check code
Show corrected code
Reset buggy code
Feedback
Corrected code