PR #10503: Fix log1p inaccuracies on complex inputs with large absolute values.
PR #10503: Fix log1p inaccuracies on complex inputs with large absolute values.

Imported from GitHub PR https://github.com/openxla/xla/pull/10503

As in the title.

Tests and improvement reports are in https://github.com/google/jax/pull/20144.

Accuracy tests are enabled in https://github.com/google/jax/pull/20436
Copybara import of the project:

--
2b8f2539d6bf364c0a97f65e186430c5eb3ed07b by Pearu Peterson <pearu.peterson@gmail.com>:

Fix log1p inaccuracies on complex inputs with large absolute values.

--
d35cef4f5fa09482c49edfee709e86c5ca29adde by Pearu Peterson <pearu.peterson@gmail.com>:

Add tests to complex Log1p

Merging this change closes #10503

FUTURE_COPYBARA_INTEGRATE_REVIEW=https://github.com/openxla/xla/pull/10503 from pearu:pearu/log1p d35cef4f5fa09482c49edfee709e86c5ca29adde
