You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation of discrete_log (in groups/generic.py) describes the possibility to use the optional identity=None, inverse=None, op=None arguments when op='other'. However, those arguments are completely ignored (i.e. not passed on to the bsgs implementation).
This results in incorrect results where discrete_log fails silently and returns 0.
Probably this issue can be fixed by passing on those optional parameters to bsgs.
Furthermore, the function discrete_log_generic claims to be an alias of discrete_log, but the way it wraps the function is incorrect. Instead of passing on the arguments it receives, it sets them to the default value, see the following snippet from the sage codebase:
The documentation of
discrete_log
(ingroups/generic.py
) describes the possibility to use the optionalidentity=None, inverse=None, op=None
arguments whenop='other'
. However, those arguments are completely ignored (i.e. not passed on to thebsgs
implementation).This results in incorrect results where discrete_log fails silently and returns 0.
Probably this issue can be fixed by passing on those optional parameters to bsgs.
Furthermore, the function
discrete_log_generic
claims to be an alias ofdiscrete_log
, but the way it wraps the function is incorrect. Instead of passing on the arguments it receives, it sets them to the default value, see the following snippet from the sage codebase:Correctly, this snippet should call
CC: @yyyyx4
Component: group theory
Keywords: discrete_log, discrete_log_generic
Issue created by migration from https://trac.sagemath.org/ticket/32334
The text was updated successfully, but these errors were encountered: