<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.2314.1000" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I´m new to R so maybe this issue has been asked
before and I still could not read the complete set of past messages sent to the
list.</FONT></DIV>
<DIV><FONT face=Arial size=2>I found a weird behabiour that I will explain
with a simple example. Lets consider the following block of
commands:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>> x <- diag(c(1,4,10))<BR>>
x<BR> [,1] [,2] [,3]<BR>[1,]
1 0 0<BR>[2,]
0 4 0<BR>[3,]
0 0 10<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>> invx <- x^-1<BR>>
invx<BR> [,1] [,2] [,3]<BR>[1,]
1 Inf Inf<BR>[2,] Inf 0.25 Inf<BR>[3,] Inf
Inf 0.1</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I would really appreciate if the result would have
been</FONT></DIV>
<DIV><FONT face=Arial size=2> [,1] [,2]
[,3]<BR>[1,] 1 0
0<BR>[2,] 0 0.25
0<BR>[3,] 0 0 0.1</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>most of all because</FONT></DIV>
<DIV><FONT face=Arial size=2>> x %*% invx<BR> [,1]
[,2] [,3]<BR>[1,] NaN NaN NaN<BR>[2,] NaN
NaN NaN<BR>[3,] NaN NaN NaN</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>does not really satisfies me :-)</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I´m using version 0.90.1.</FONT></DIV>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Is this what it was meant to
be?</FONT></DIV></FONT></DIV>
<DIV><FONT face=Arial size=2>Is this a known bug?</FONT></DIV>
<DIV><FONT face=Arial size=2>Am I doing something wrong?</FONT></DIV>
<DIV><FONT face=Arial size=2>Anybody knows a workaround (for a general matrix,
not for a diagonal one)?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I would really appreciate your help and
support.</FONT></DIV>
<DIV><FONT face=Arial size=2>Thanks in advance.</FONT></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2>------------------------------------------------------------------------------------------------------------------------------------------------------</FONT></DIV>
<DIV><FONT face="Courier New"
size=2>
Manuel Castejon Limas.</FONT></DIV>
<DIV><FONT face="Courier New"
size=2>
<A
href="mailto:aailto:amailto: mailto: Manuel.Castejon@dim.unirioja.es ">Manuel.Castejon@dim.unirioja.es
</A></FONT></DIV>
<DIV><FONT face="Courier New" size=2>Departamento de Ingenieria
Mecanica. | Mechanical Engineering Department.</FONT></DIV>
<DIV><FONT face="Courier New" size=2>Area de Proyectos de
Ingenieria. | Project Management
Area.</FONT></DIV>
<DIV><FONT face="Courier New" size=2>Universidad de La
Rioja.
| University of La Rioja.</FONT></DIV>
<DIV><FONT face="Courier New"
size=2>Espaņa.
| Spain.</FONT></DIV>
<DIV><FONT face=Arial
size=2>------------------------------------------------------------------------------------------------------------------------------------------------------</FONT></DIV>
<DIV> </DIV></BODY></HTML>