Skip to content

A Python script that calculates the determinant of a square matrix using cofactor expansion.

Notifications You must be signed in to change notification settings

justin-pyne/cofactor-expansion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Cofactor Expansion

A Python script that calculates the determinant of a square matrix using the method of cofactor expansion. The program is designed to handle matrices of any size and will return the determinant of the given matrix.

Features

  • Handles square matrices of any size.
  • Calculates determinant using cofactor expansion.
  • Includes example matrices for testing.
  • Functions minor and determinant can be imported for external usage.

How to Use

  1. Clone the repository to your local machine.
  2. Run the script with Python 3:
python3 cofactor-expansion.py

Alternatively, you can import the minor and determinant functions for usage in other scripts or projects:

from cofactor_expansion import minor, determinant

About

A Python script that calculates the determinant of a square matrix using cofactor expansion.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages