provide exact sin/cos result whenever possible