debugging signal creation
reference for legendre values