[R] BUG: atan(1i) / 5 = NaN+Infi ?

Leo Mada |eo@m@d@ @end|ng |rom @yon|c@eu
Thu Sep 5 22:23:25 CEST 2024


Dear R Users,

Is this desired behaviour?
I presume it's a bug.

atan(1i)
# 0+Infi

tan(atan(1i))
# 0+1i

atan(1i) / 5
# NaN+Infi

There were some changes in handling of complex numbers. But it looks like a bug.

Sincerely,

Leonard


	[[alternative HTML version deleted]]



More information about the R-help mailing list