bridge/class-master/depend/pari/src/basemath/polarit2.c
/* resultant of x and y with respect to variable v, or with respect to their
 * main variable if v < 0. */
resultant of x and y with respect to variable v, or with respect to their
main variable if v < 0.
resultant of x and y with respect to variable v or with respect to their main variable if v < 0 .
GEN
polresultant0(GEN x, GEN y, long v, long flag)
{
  long v0 = 0;
  pari_sp av = avma;
  if (v >= 0)
  {
    v0 = fetch_var_higher();
    x = fix_pol(x,v, v0);
    y = fix_pol(y,v, v0);
  }
  switch(flag)
  {
    case 2:
    case 0: x=resultant(x,y); break;
    case 1: x=resultant2(x,y); break;
    default: pari_err_FLAG("polresultant");
  }
  if (v >= 0) (void)delete_var();
  return gerepileupto(av,x);
}
GEN polresultant0 ( GEN x , GEN y , long v , long flag ) { long v0 = 0 ; pari_sp av = avma ; if ( v >= 0 ) { v0 = fetch_var_higher ( ) ; x = fix_pol ( x , v , v0 ) ; y = fix_pol ( y , v , v0 ) ; } switch ( flag ) { case 2 : case 0 : x = resultant ( x , y ) ; break ; case 1 : x = resultant2 ( x , y ) ; break ; default : pari_err_FLAG ( " " ) ; } if ( v >= 0 ) ( void ) delete_var ( ) ; return gerepileupto ( av , x ) ; }
resultant of x and y with respect to variable v, or with respect to their
 main variable if v < 0.
resultant of x and y with respect to variable v or with respect to their main variable if v < 0 .