
Last chance! 50% off unlimited learning
Sale ends in
determinant
calculates the determinant (or its logarithm) of a matrix## S3 method for class 'Matrix':
determinant(x, logarithm = TRUE, ...)
TRUE
, the default, the logarithm of the
determinant is returned.
When FALSE
, the determinant of
x
is returned.determinant
return a list with two elements
logarithm
argument is included as an
attribute.}determinant
is a generic function with special methods for different types
of matrices or decompositions.
Use methods("determinant")
to list all the methods for the
determinant
generic.det
h9 <- hilbert(9)
determinant(h9)
determinant(h9, log = FALSE)
Run the code above in your browser using DataLab