From J.C.Rougier@durham.ac.uk  Tue Jan  9 17:25:42 2001
From: J.C.Rougier@durham.ac.uk (J.C.Rougier@durham.ac.uk)
Date: Tue, 9 Jan 2001 18:25:42 +0100 (MET)
Subject: [Rd] Inconsistent behaviour in solve (PR#805)
Message-ID: <200101091725.SAA00060@pubhealth.ku.dk>

I find this a bit puzzling ...

> solve(matrix(c(5, 2, 3, 1), 2, 2), c(Inf, 3))
[1] NaN Inf
> solve(matrix(c(5, 2, 3, 1), 2, 2)) %*% c(Inf, 3) 
     [,1]
[1,] -Inf
[2,]  Inf

I would expect the answer to be c(-Inf, Inf), so why has the -Inf
been replaced by NaN in solve?

Cheers, Jonathan.

--please do not edit the information below--

Version:
 platform = sparc-sun-solaris2.7
 arch = sparc
 os = solaris2.7
 system = sparc, solaris2.7
 status = 
 major = 1
 minor = 1.1
 year = 2000
 month = August
 day = 15
 language = R

Search Path:
 .GlobalEnv, Autoloads, package:base

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] Inconsistent behaviour in solve (PR#805)
J.C.Rougier@durham.ac.uk