@Yogesh: There are very few practical uses for matrix determinants.
Why do you want to compute one?

That asked, if n exceeds 3, the accepted method is to use Gaussian
Elimination with partial pivoting, and then calculate the product of
the diagonal elements. Negate the result if the number of interchanges
in the pivoting was odd.

If n is very large, you also have to protect against the product of
the diagonal elements exceeding the dynamic range of numbers in your
computer. The standard way of doing that is to return the determinant
in scientific notation, i.e., a number between -10 and -1 or between 1
and 10 and an integer power of 10. E.g., if the determinant is
1.65E4011, the number 1.65 and the number 4011 are returned, since
1.65E4011 exceeds the dynamic range of doubles.

An alternative to Gaussian Elimination with partial pivoting is the QR
factorization.

Dave

On Aug 21, 2:39 pm, Yogesh Bhati <ybha...@gmail.com> wrote:
> how to find determinant of a matrix of order n x n.

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to