Max Alekseyev on Thu, 09 Mar 2023 04:21:00 +0100


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

logint() bug?


I see the following inconsistent results, while in both cases I expect the result to be -1. Bug?

? logint(.5,2)
%1 = 0

? logint(1/2,2)
  ***   at top-level: logint(1/2,2)
  ***                 ^-------------
  *** logint: domain error in logint: x <= 0
  ***   Break loop: type 'break' to go back to GP prompt
break> 

Regards,
Max