Skip to content
Prev 294217 / 398503 Next

problem with Gauss Hermite ( x and w )

Hello,
Yes, you are.

real^real is not necessarily real.

The most well known example is (-1)^0.5 = imaginary unit.
When you say that -2.5^(-2.4) is real you're computing the negative power of
a POSITIVE real, 2.5 then taking the result's  symmetric.

(-2.5)^(-2.4)
[1] NaN

Or
(-1)^0.5
[1] NaN
-1^0.5
[1] -1

(-1 + 0i)^0.5 # algebraically, equal to (-1)^0.5 above, but not in R
notation.
[1] 0+1i

Hope this helps,

Rui Barradas



casperyc wrote
--
View this message in context: http://r.789695.n4.nabble.com/problem-with-Gauss-Hermite-x-and-w-tp4622115p4624486.html
Sent from the R help mailing list archive at Nabble.com.