fix compile error for binary float function with two different input types, add tests for atan2 atan2pi