Home Online Manual
Top
Back: interpretList
Forward: simplePrune
FastBack:
FastForward:
Up: modules_lib
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

D.15.23.51 compareVectors

Procedure from library modules.lib (see modules_lib).

Usage:
compareVector(V1,V2); Vector V1,V2

Return:
compares the given Vectors up tu equivalence

Example:
 
LIB "modules.lib";
ring r;
matrix m[2][1] = x,-y;
Module M = subquotient(id(2),m);
Vector V = [x,y],M;
Vector W = [0,2y],M;
Vector U = [x,y2],M;
compareVectors(V,W);
==> 1
compareVectors(U,V);
==> 0