[PD-dev] faster more accurate cos than costab