amath: avoid trigonometric functions on 1e26.

1e26 isn't representable and reference values assume it is.