minv - Matrix Inversion

Prev Next

Function Names

minv

Description

This function calculates the inversion of the matrix: M-1.

Call as: function

Restrictions

Indirect parameter passing is disabled

Parameter count

1

Parameters

No.TypeDescription
1
input
matrix of numerals Matrix to invert

Return value

TypeDescription
matrix of numerals Result

Inverted matrix

Exceptions

Division: Matrix is not a square (number of rows and columns differ)

Examples

       print matrix( "0.0", 4, " | ", minv ( {{1,2},{3,4}} ) ); // returns {{-2,1},{1.5,-0.5}}

Output

 | -2.0   1.0 |
|  1.5  -0.5 |
Try it yourself: Open LIB_Function_minv.b4p in B4P_Examples.zip. Decompress before use.