As seen/discussed on one of the several R mailing lists:
R version 4.4.1 (2024-06-14 ucrt) -- "Race for Your Life"
Copyright (C) 2024 The R Foundation for Statistical Computing
[...]
> atan(1i)
[1] 0+Infi
> atan(1i)*2
[1] NaN+Infi
Oops. The reason for this is that apparently, when multiplying (or dividing) a complex number by a real number
(
Read more... )