feat: methods on Complex #24

Merged
glen merged 6 commits from more_complex into main 2025-04-25 14:17:35 +00:00

6 commits

Author SHA1 Message Date
f9b723b882 feat: Add isReal and isZero, and fix specializing a generic type
All checks were successful
/ test (pull_request) Successful in 17s
2025-04-25 00:08:29 -07:00
627c1c3d7f feat: add divide and invert and fix PredicatePattern match
All checks were successful
/ test (pull_request) Successful in 17s
2025-04-24 21:41:09 -07:00
7903a46118 feat: add cis and fix indistinguishable
All checks were successful
/ test (pull_request) Successful in 16s
2025-04-24 20:52:43 -07:00
7daa621571 feat: more Complex methods
All checks were successful
/ test (pull_request) Successful in 16s
* Adds associate, conj, multiply, negate, subtract, indistinguishable
  * As a result equal is now supported
  * Adds a check for recursive loops in resolve (a key/signature method
    depending on itself
2025-04-24 20:13:35 -07:00
8da23a84be feat: Add complex argument function arg
All checks were successful
/ test (pull_request) Successful in 17s
Also removes circular imports from nanomath
2025-04-24 13:09:15 -07:00
474cc53d68 feat: Start arithmetic functions for complex
All checks were successful
/ test (pull_request) Successful in 17s
So far, adds absquare and add. To get these working, especially on mixed
  types of arguments, this also adds some additional features:
  * Allows conversions to generic types, with the matched type
    determined from the return value of the built convertor
  * Adds predicate-based type patterns
  * Adds conversion from any non-complex type T to Complex(T)
  * Starts tests for complex arithmetic
2025-04-24 12:06:47 -07:00