feat: Add return typing strategies and implement sqrt with them #26

Merged
glen merged 7 commits from return_typing into main 2025-04-28 16:29:34 +00:00

7 commits

Author SHA1 Message Date
196571ae13 feat: implement complex sqrt
All checks were successful
/ test (pull_request) Successful in 18s
2025-04-28 09:26:35 -07:00
bc8c2ff7fb feat: add number sqrt with all three return strategies 2025-04-27 06:54:29 -07:00
793dd361a6 feat: respect return typing strategy for all generic functions 2025-04-26 23:11:19 -07:00
c42249e561 feat: respect return typing strategy for all complex functions 2025-04-26 22:47:07 -07:00
87f5a0ed2a fix: pass strategy into resolve calls 2025-04-26 20:00:08 -07:00
722a2724a0 feat: Make cis(theta) respect return typing strategy
To accomplish this, also
  * implements `OneOf` union types
  * passes desired return typing strategy to behavior factory functions
  * adds formerly missing BooleanT utils
  * adds isInteger utility function, along with its dependency isfinite
  * adds several new and formerly missing Complex utils

  In addition, it adds several Complex tests, including careful checking
  of the behavior and return type of `math.cis` under different
  `math.config.returnTyping` settings.
2025-04-26 18:40:09 -07:00
47370cec9e feat: Index behaviors by return typing strategy
* Adds the concept of, and options for, the return typing strategy
  * adds the strategy at the beginning of every behavior index
  * adds the strategy as an additional argument to resolve
  * No actual use of return type strategy so far
  * Sets up eslint
  * Fixes eslint errors
2025-04-26 00:20:30 -07:00