Ruud H.G. van Tol on Sun, 20 Nov 2022 14:31:17 +0100


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

Re: symbol manipulation



Another smaller test:

? li(x,b) = logint(x,b)
%12 = (x,b)->logint(x,b)

? li_2(x) = li(x,2)
%13 = (x)->li(x,2)

? li_2(x)
  ***   at top-level: li_2(x)
  ***                 ^-------
  ***   in function li_2: li(x,2)
  ***                     ^-------
  ***   in function li: logint(x,b)
  ***                   ^-----------
  *** logint: incorrect type in logint (t_POL).
  ***   Break loop: type 'break' to go back to GP prompt
break>

The ultimately desired return value is "logint(x,2)".
How feasible/doable is that?

-- Ruud