Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrong output of np.lcm.reduce(*awg) #88702

Closed
zlwq mannequin opened this issue Jun 29, 2021 · 2 comments
Closed

wrong output of np.lcm.reduce(*awg) #88702

zlwq mannequin opened this issue Jun 29, 2021 · 2 comments
Labels
3.8 only security fixes docs Documentation in the Doc dir

Comments

@zlwq
Copy link
Mannequin

zlwq mannequin commented Jun 29, 2021

BPO 44536
Nosy @mdickinson, @zlwq
Files
  • a text for lcm() in numpy.py
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2021-06-29.15:36:52.636>
    created_at = <Date 2021-06-29.14:55:23.108>
    labels = ['3.8', 'docs']
    title = 'wrong output of np.lcm.reduce(*awg)'
    updated_at = <Date 2021-06-29.15:36:52.635>
    user = 'https://github.com/zlwq'

    bugs.python.org fields:

    activity = <Date 2021-06-29.15:36:52.635>
    actor = 'mark.dickinson'
    assignee = 'docs@python'
    closed = True
    closed_date = <Date 2021-06-29.15:36:52.636>
    closer = 'mark.dickinson'
    components = ['Documentation']
    creation = <Date 2021-06-29.14:55:23.108>
    creator = 'zlwq'
    dependencies = []
    files = ['50133']
    hgrepos = []
    issue_num = 44536
    keywords = []
    message_count = 2.0
    messages = ['396742', '396744']
    nosy_count = 3.0
    nosy_names = ['mark.dickinson', 'docs@python', 'zlwq']
    pr_nums = []
    priority = 'normal'
    resolution = 'third party'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue44536'
    versions = ['Python 3.8']

    @zlwq
    Copy link
    Mannequin Author

    zlwq mannequin commented Jun 29, 2021

    np.lcm.reduce([1,2,3,100])
    Out[125]: 300
    
    np.lcm.reduce([1,2,3,100,101])
    Out[126]: 30300
    
    np.lcm.reduce([1,2,3,100,101,99019])
    Out[127]: -1294691596

    30300*99019
    Out[128]: 3000275700

    @zlwq zlwq mannequin added the 3.8 only security fixes label Jun 29, 2021
    @zlwq zlwq mannequin assigned docspython Jun 29, 2021
    @zlwq zlwq mannequin added docs Documentation in the Doc dir 3.8 only security fixes labels Jun 29, 2021
    @zlwq zlwq mannequin assigned docspython Jun 29, 2021
    @zlwq zlwq mannequin added the docs Documentation in the Doc dir label Jun 29, 2021
    @mdickinson
    Copy link
    Member

    It looks as though you're reporting an issue with NumPy; this tracker is for the Python core language, which doesn't include NumPy.

    For NumPy bugs, use the NumPy bug tracker at https://github.com/numpy/numpy/issues. (Though I don't think this _is_ a NumPy bug: it's simply the result of integer overflow in NumPy.)

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.8 only security fixes docs Documentation in the Doc dir
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant