Skip to content

logarithm with base 0 should raise an error #38971

Open
@DaveWitteMorris

Description

@DaveWitteMorris

Steps To Reproduce

No response

Expected Behavior

Logarithms with a base of 0 do not exist, so trying to calculate one should raise a ValueError.

Actual Behavior

Sagemath seems to think that logarithms with a base of 0 are equal to 0:

sage: log(2, 0)
0
sage: log(2.0, 0)
-0.000000000000000
sage: log(x, 0)
0

Additional Information

No response

Environment

  • OS: MacOS 14.6.1
  • Sage Version: 10.5.b9

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions