bridge/class-master/depend/pari/src/basemath/QX_factor.c
/* f of degree 1, return a cyclotomic factor (Phi_1 or Phi_2) or NULL */
f of degree 1, return a cyclotomic factor (Phi_1 or Phi_2) or NULL
f of degree 1 return a cyclotomic factor ( Phi_1 or Phi_2 ) or NULL
static GEN
BD_deg1(GEN f)
{
  GEN a = gel(f,3), b = gel(f,2); 
  if (!absequalii(a,b)) return NULL;
  return polcyclo((signe(a) == signe(b))? 2: 1, varn(f));
}
static GEN BD_deg1 ( GEN f ) { GEN a = gel ( f , 3 ) , b = gel ( f , 2 ) ; if ( ! absequalii ( a , b ) ) return NULL ; return polcyclo ( ( signe ( a ) == signe ( b ) ) ? 2 : 1 , varn ( f ) ) ; }
f of degree 1, return a cyclotomic factor (Phi_1 or Phi_2) or NULL
f of degree 1 return a cyclotomic factor ( Phi_1 or Phi_2 ) or NULL
/* f = ax + b */