镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

A logarithm to base 0 is 0 #2255

Closed
Closed

Description

@Rafael-SOWNet

A logarithm to base 0 evaluates to 0, though its own condition says it has no value there:

2.6.0 and master
"log(0, 2)".ToEntity().Evaled 0
"log(x, 2)".ToEntity().DomainCondition not x = 0 and not x = 1

ln(2)/ln(0) is ln(2)/(-oo), which is 0 as a limit, but 0 is not a base: no power of 0 is 2. Logf's condition is right, and evaluation answers outside it. log(1, 2) is NaN, as it should be.

Found by work/domaincheck.

Activity

  1. added this to the 2.7.0 milestone on Oct 30, 2026
  2. added a commit that references this issue on Oct 30, 2026
    97faa62
  3. moved this from Todo to In Progress in AngouriMathon Oct 30, 2026
  4. moved this from In Progress to Done in AngouriMathon Oct 30, 2026
  5. added a commit that references this issue on Nov 4, 2026
    aab5e7f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions