Skip to content

fix: allow Theta on Abs when positivity unknown - #37

Open
Chessing234 wants to merge 1 commit into
teorth:mainfrom
Chessing234:fix/theta-abs-nonnegative
Open

fix: allow Theta on Abs when positivity unknown#37
Chessing234 wants to merge 1 commit into
teorth:mainfrom
Chessing234:fix/theta-abs-nonnegative

Conversation

@Chessing234

@Chessing234 Chessing234 commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Abs(n).is_positive is often None, so Theta(Abs(n)) wrongly returned Undefined.
  • Accept nonnegative expressions that are not identically zero.

Test plan

  • test_theta_abs_nonnegative

Sympy leaves Abs(n).is_positive as None, so Theta wrongly returned Undefined.
@Chessing234
Chessing234 force-pushed the fix/theta-abs-nonnegative branch from 09ed221 to c5d1988 Compare August 5, 2026 10:28
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.

1 participant