Fix wrong test in test_trigonometric.

The failure seems to result from merging both #2502 and #2551. Now the math is correct.