CoCoA:NonZero

From ApCoCoAWiki
Revision as of 10:02, 24 October 2007 by XMLBot (talk | contribs) (pushing XML rev. 1.46, again)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

NonZero

remove zeroes from a list

Description

This function returns the list obtained by removing the zeroes from L.

Example

  Use R ::= Q[x,y,z];
  NonZero([<quotes>a</quotes>,0,0,3,Ideal(y),0]);
[<quotes>a</quotes>, 3, Ideal(y)]
-------------------------------

Syntax

NonZero(L:LIST or VECTOR):LIST

FirstNonZero

FirstNonZeroPos

   <type>list</type>
   <type>vector</type>