Skip to content

Use sinc in ChudleyElliottJumpDiffusion width dependency expression once supported for Parameters #272

Open

Description

@markbujehein

ChudleyElliottJumpDiffusion._write_width_dependency_expression currently writes
the Chudley-Elliott width as

(hbar / tau) * (1 - sin(Q * l.value) / (Q * l.value))

because sinc isn't available for Parameters yet. This also affects a few cases in the unit tests. Support for it is being
implemented in easyscience/core:

Once that PR is merged and released, and dynamics-lib depends on a version that
includes it, replace the explicit sin(x)/x with sinc.

To do:

  • Wait for Add es.math maths module with uncertainty and bounds core#329 to be merged and released.
  • Bump the easyscience dependency to a version that includes it.
  • Update _write_width_dependency_expression (and the matching dependency map
    expression) to use sinc.
  • Check that calculate_width and the dependency-based widths still agree in the tests.
  • Update and test test_calculate_width_sinc_stability
  • Remove the TODO comment that points to this issue.

Raised in review of #246.

Activity

  1. added
    [scope] ⚠️ label needed
    [priority] ⚠️ label needed
    on Oct 19, 2026
  2. added
    [scope] maintenance
    [priority] medium
    and removed
    [scope] ⚠️ label needed
    [priority] ⚠️ label needed
    on Oct 21, 2026
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

    [priority] medium[scope] maintenance

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions