On Tue, 13 Apr 2010, Berend Hasselman wrote:
I just did this in a Gretl console
gretl console: type 'help' for a list of commands
? scalar x
? x=10/0
Replaced scalar x = NA
Warning: generated missing values
? y=0*x
Generated scalar y = 0
? z1 = tanh(y)
Generated scalar z1 = 0
? z1 = tanh(10/0)
Replaced scalar z1 = NA
? z1 = tanh(10/0.0000000000000000000001)
Replaced scalar z1 = 1
? a=0*(10/0)
Generated scalar a = 0
This doesn't make sense to me.
Neither it does to me: this is a consequence, as Allin said, of the fact
that at the moment we erroneously treat NaNs and ±Infs as if they were
NAs.
This is dangerous.
Inconvenient, sure. But dangerous?
Riccardo (Jack) Lucchetti
Dipartimento di Economia
Università Politecnica delle Marche
r.lucchetti(a)univpm.it
http://www.econ.univpm.it/lucchetti