det

From DavinciWiki
Jump to: navigation, search

Description

Calculates determinant of input matrix

Arguments and Return Values

Parameters: A square matrix (dimensions [n, n, 1])

Return Value: A double-precision value specifying the determinant of the input

Usage

Syntax: det(matrix)

Note that, due to roundoff error, the calculated determinant of a singular matrix may not be exactly zero.

When det() is entered without any arguments, it prints its description, as shown below.

Examples

dv> det()

Returns determinant of a square matrix
Returned value is double precision
S.Marshall 11-11-2010

dv> a = create(3,3, start=1)
3x3x1 array of int, bsq format [36 bytes]
1       2       3
4       5       6
7       8       9
dv> det(a)
6.66134e-16
dv> a = cat(1//2//3, 1//4//9, 1//8//27, axis=y)
3x3x1 array of int, bsq format [36 bytes]
1       2       3
1       4       9
1       8       27
dv> det(a)
12.0000

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

  • davinci-dev [AT] mars.asu.edu

All other topics

  • See navigation on the left

Major Sub-Functions

Related Functions

Recent Library Changes

Created On: 12-02-2010
Modified On: 12-04-2010

Personal tools