notes on toy 1d structure factor calulation