dds math for phase-acc input