Home Online Manual
Top
Back: varNum
Forward: arrLastVar
FastBack: algemodstd_lib
FastForward: brillnoether_lib
Up: arr_lib
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

D.15.2.8 arrSwapVar

Procedure from library arr.lib (see arr_lib).

Usage:
arrSwapVar(A, i, j); arr A, ring_variables/integers i,j

Return:
[arr] A where variables i and j are swapped.

Note:
if i and/or j are integers the algorithm considers the variables variables(A)[i] and/or variables(A)[j]

Example:
 
LIB "arr.lib";
ring R = 0,(x,y,z),lp;
arr A  = ideal(x+1,x+y,z);
arrSwapVar(A,x,z);
==> _[1]=z+1
==> _[2]=y+z
==> _[3]=x
==> 
See also: arrLastVar; arrSwapVar; varMat; varNum.