#!/usr/bin/env python3 import math for n in range(-8, 9): r = 1/2 if n != 0: f = (math.fabs(math.sin(n*math.pi*r)/n*math.pi))**2 print(f)