Jacques Gélinas on Tue, 13 Feb 2018 23:41:15 +0100


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

polrecip for a constant polymomial


It is inconvenient to have to add code to handle constant polynomials.
Why not return the constant itself ?

# polrecip(2+0*x)
%1 = 2
# polrecip(2)
  ***   at top-level: polrecip(2)
  ***                          ^-----------
  *** polrecip: incorrect type in polrecip (t_INT).

Jacques Gélinas, Ottawa