[R] R det

Prof Brian Ripley ripley at stats.ox.ac.uk
Sat Nov 17 08:52:08 CET 2007


On Fri, 16 Nov 2007, kalin lagno wrote:

> I used det but it gives me infinity. I think my matrix values are too 
> big or small (I a range around (+,-)8*e^28 )

R has numerical values up to about 1e308 (10^308), but you have not told 
us your matrix size.  It sounds as if you would benefit from  re-scaling 
your matrix and problem.

> I need a numerical value for determinant, can somebody tell me what 
> should I do?

Read the help page (as the posting guide asked you to)?  It mentions 
determinant() which will give you the value on log scale.

>
> Kalin
>
> Paul Smith <phhs80 at gmail.com> wrote: On Nov 16, 2007 7:27 PM, kalin lagno  wrote:
>> Which R function I should use to obtain determinant of a matrix with real(and complex) numbers?
>
> For real matrices:
>
> ?det
>
> Paul
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
>
>
> ---------------------------------
> Never miss a thing.   Make Yahoo your homepage.
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-help mailing list