MCPcopy Create free account
hub / github.com/Singular/Singular / hasOne

Function hasOne

kernel/spectrum/spectrum.cc:96–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94// ----------------------------------------------------------------------------
95
96int hasOne( ideal J, const ring r )
97{
98 int i;
99
100 for( i=0; i<IDELEMS(J); i++ )
101 {
102 if (p_IsConstant(J->m[i],r)) return TRUE;
103 }
104 return FALSE;
105}
106// ----------------------------------------------------------------------------
107// test if m is a multiple of one of the monomials of f
108// ----------------------------------------------------------------------------

Callers 1

spectrumComputeFunction · 0.85

Calls 1

p_IsConstantFunction · 0.85

Tested by

no test coverage detected