CoCoA:Inverse

From ApCoCoAWiki

Inverse

multiplicative inverse

Description

This function computes the multiplicative inverse of its argument.

It is included for use when writing Inverse(X) comes more naturally

than writing X^(-1), though both notations are functionally equivalent.

Example

  Inverse(Mat([[1,2], [3,4]]));
Mat([
  [-2, 1],
  [3/2, -1/2]
])
-------------------------------

Syntax

Inverse(X:OBJECT):OBJECT
   <type>integer</type>
   <type>matrix</type>
   <type>polynomial</type>
   <type>rat</type>
   <type>ratfun</type>
   <type>zmod</type>