Skip to content

Fix complex overflow, permutation(n, n), matrix printing, and piecewise x order - #23

Merged
barrybecker4 merged 1 commit into
masterfrom
cursor/fix-correctness-bugs-6c09
Nov 7, 2026
Merged

barrybecker4 merged 1 commit into
masterfrom
cursor/fix-correctness-bugs-6c09

Conversation

@barrybecker4

Copy link
Copy Markdown
Member

Summary

Fixes four verified correctness bugs. No dependency or unrelated changes.

Test plan

  • ./gradlew test — 248 tests, 0 failures
  • New cases: large complex divide / reciprocal / getMagnitude, permutation(5, 5) and permutation(9, 9), printMatrix capture, unsorted and duplicate piecewise x values
Open in Web Open in Cursor 

…rinting, and piecewise functions.

Scale complex division and reciprocal when |z|² overflows, and use hypot for getMagnitude. Return 1 from permutation(a, a). Print matrix entries with string concatenation. Reject piecewise samples whose x values are not strictly increasing.

Co-authored-by: Barry G Becker <barrybecker4@yahoo.com>
@barrybecker4
barrybecker4 marked this pull request as ready for review November 7, 2026 16:16
@barrybecker4
barrybecker4 merged commit cd1b0aa into master Nov 7, 2026
1 check passed
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