R-beta: (0+0i)^2

Martin Maechler maechler at stat.math.ethz.ch
Thu Sep 17 14:56:31 CEST 1998

>>>>> "laimonis" == laimonis kavalieris <laimonis at chance.otago.ac.nz> writes:

    laimonis> The following behaviour (in R 0.62.3) is disturbing:
    >> (0+0i)^2
    laimonis> [1] NaN+NaNi

    laimonis> Is it deliberate??
it's a clear bug.

Even shorter is


Patches to complex_pow(.) in src/main/complex.c are welcome,
[obvious tests for 0..]
but to R-devel, not to R-help !

Martin Maechler <maechler at stat.math.ethz.ch>	http://stat.ethz.ch/~maechler/
Seminar fuer Statistik, ETH-Zentrum SOL G1;	Sonneggstr.33
ETH (Federal Inst. Technology)	8092 Zurich	SWITZERLAND
phone: x-41-1-632-3408		fax: ...-1086			<><

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list