8000 Computing log(int(0), 2) takes a long time (same as #29164 but with python int) · Issue #37794 · sagemath/sage · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Computing log(int(0), 2) takes a long time (same as #29164 but with python int) #37794
Closed
@cyrilbouvier

Description

@cyrilbouvier

Steps To Reproduce

log(int(0), 2)

Expected Behavior

-Infinity

Actual Behavior

Sage runs for a long time and cannot be killed with Ctrl+C (I need to call kill <sage pid> <python3 pid> to stop everything)

Additional Information

It looks like a duplicate of #29164 but there is a subtle difference: In #29164 the 0 is a Sage integer, here the 0 is a python integer.

Variants that work:

sage: log(ZZ(0), 2)
-Infinity
sage: log(0.0, 2)
-infinity
sage: log(ZZ(0))
-Infinity
sage: log(int(0))
-Infinity

Environment

- **OS**: Debian
- **Sage Version**: 10.3

Checklist

  • I have searched the existing issues for a bug report that matches the one I want to file, without success.
  • I have read the documentation and troubleshoot guide

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0