[PD] cosinesum vs sinesum in arrays