Skip to content

Log of integer to base 1/n can have exact numeric results #21517

@rwst

Description

@rwst

Log of integer to base 1/n can have nonsymbolic results but this is not recognized in Integer::log():

sage: ZZ(8).log(1/2)
log(8)/log(1/2)

nor in Integer.exact_log():

sage: ZZ(8).exact_log(1/2)
...
TypeError: no conversion of this rational to integer

Component: numerical

Author: Ralf Stephan

Branch/Commit: 4aba8a9

Reviewer: Travis Scrimshaw

Issue created by migration from https://trac.sagemath.org/ticket/21517

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions