Home Online Manual
Top
Back: ncratMultiply
Forward: ncratSPrint
FastBack:
FastForward:
Up: ncrat_lib
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

7.10.6.8 ncratInvert

Procedure from library ncrat.lib (see ncrat_lib).

Usage:
ncrat h = ncratInvert(f);
f of type ncrat

Return:
h = inv(f)

Note:
ncrat h = f^-1;
yields the same result as
ncrat h = ncratInvert(f);

Example:
 
LIB "ncrat.lib";
ncInit(list("x", "y", "z"));
ncrat f = ncratFromString("2*x*y");
print(f);
==> 2*x*y
ncrat h1, h2;
h1 = ncratInvert(f);
print(h1);
==> inv(2*x*y)
h2 = f ^ -1;
print(h2);
==> inv(2*x*y)