Skip to content

math.gamma(1) not returning exactly 1 #5496

Closed

Description

@YoshiRulz

Feature

Title. In CPython 3.10.12 it returns 1.0, in RustPython Wasm demo (version?) it returns 0.9999999999999996.

Python Documentation or reference to CPython source code

math.gamma

Activity

  1. added
    C-compatA discrepancy between RustPython and CPython
    on Feb 1, 2025
  2. chushic commented on Feb 3, 2025

    @chushic

    Seems like some thing wrong in the puruspe's gamma definition

  3. arihant2math commented on Feb 22, 2025

    @arihant2math
    Contributor
  4. Axect commented on Feb 24, 2025

    @Axect
    Contributor

    Hi, I'm the author of puruspe. I have fixed this problem in puruspe and updated its version to 0.4.0.
    I'll make a PR for the puruspe version update.

  5. added a commit that references this issue on Feb 24, 2025
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

    C-compatA discrepancy between RustPython and CPython

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions