Allow for predefined range in legendre_values()