Matrix Calculator

Matrix Calculator Power Mode

This page will help you get started with Matrix Calculator Advanced Power Mode.

Welcome! This quick start guide will help you to start using Matrix Calculator Advanced Power Mode. The Advanced Power Mode runs in python and in these examples, we will be running commands in Python Shell.


Setup

All you need to do to setup Advanced mode is to open matcalc-power.py your Python terminal.

In this guide, we will be showing code snippets like the following to help you out.

= RESTART: C:\Users\Test\Docs\matcalc-power.py =

>>>


Defining a Matrix

Advanced mode requires that you store your matrix in a 2D array. For example, the matrix A becomes the array B.

A =
1 2
3 4

B = [ [1,2], [3,4] ]

In the python shell you should define your matrix using the format B uses:

>>> mata = [ [1,0,0], [0,1,0], [0,0,1] ]


Calculating with Matrices

You can now use the Advanced mode determinant calculator. Run the following lines of code: (The items in red are comments and do not need to be copied)

>>> rundetsetup() #This prepares the calculator to find the determinant

>>> rundetother(mata) #This prepares lines of code ready to handle Mat A.

>>> from detother import * #This imports the required functions into the current shell session.

>>> detfunc3(3,3,mata) #This finds the determinant. Replace all '3's with the size of the matrix. E.g. for a 4x4 matrix, it would become 'detfunc4(4,4,mata)'.

4 #This is your result!


Thanks for reading!

If you have any questions, feel free to get in touch by emailing matrix@bcwd.site