Jacques Gélinas on Thu, 21 Feb 2019 10:03:32 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

RE: poldisc variable must be x or y ?


Thanks for the confirmation of the variable order problem.
So what is the use of the second argument v in poldisc ?

poldisc0(GEN x, long v)  {
    case t_POL:    {            <====== oups!!! type(z/a+1)=="t_RFRAC" (:-(
      long v0 = -1;
      if (v >= 0 && v != varn(x))
      {
        v0 = fetch_var_higher();
        x = fix_pol(x,v, v0);
      }
      D = RgX_disc(x);

The easy fix is to always use x or y as main variable.


Jacques Gélinas