Skip to content

eulerian_number(0,0) and eulerian_polynomial(0) should return 1 not 0 #39679

@maxale

Description

@maxale

Steps To Reproduce

sage: from sage.combinat.combinat import eulerian_number,eulerian_polynomial
sage: eulerian_number(0,0)
0
sage: eulerian_polynomial(0)
0

Expected Behavior

Both should be 1. E.g., see https://en.wikipedia.org/wiki/Eulerian_number

Actual Behavior

Returned 0 is incorrect.

Additional Information

No response

Environment

  • OS: Ubuntu 24.04.2 LTS
  • Sage Version: 10.6.beta7

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