Algosim documentation: inv

inv

Computes multiplicative inverses.

Syntax

Description

If z is a non-zero complex number, then inv(z) = 1/z.

If A is a non-singular matrix, then inv(A) is the inverse of A.

Examples

inv(2)
1/2	(=0.5)
inv(5/7)
7/5	(=1.4)
inv(π)
0.318309886184	(=π⁻¹)
A ≔ ❨❨2, 0, 0❩, ❨1, 0, −2❩, ❨0, 1, 4❩❩
⎛ 2   0   0⎞
⎜ 1   0  −2⎟
⎝ 0   1   4⎠
inv(A)
⎛ 0.5     0     0⎞
⎜  −1     2     1⎟
⎝0.25  −0.5     0⎠

See also