Skip to content

Conversation

@swetank18
Copy link

Motivation

The analytical integral of exponential TF1 functions computes differences of
exponentials, which can suffer from numerical cancellation or overflow when the
integration bounds are close or the exponent is large.

Changes

  • Replace the direct difference of exponentials with a numerically stable
    expm1-based formulation

Impact

  • Improves numerical robustness without changing the mathematical result
  • No API changes

@swetank18 swetank18 requested a review from hageboeck as a code owner January 28, 2026 18:24
@hageboeck
Copy link
Member

This will clash with #20992. Should we close that one?

@hageboeck hageboeck self-assigned this Jan 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants