Read the Rendel & Ostermann paper
Simpler generation code