Fortran has built-in complex numbers and complex-valued functions, so similar issues arise. There was a paper by Anton Shterenlikht, "On quality of implementation of Fortran 2008 complex intrinsic functions on branch cuts" <a href="https://arxiv.org/abs/1712.10230" rel="nofollow">https://arxiv.org/abs/1712.10230</a> .