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
Owner

Resolves #25

Resolves #25
glen added 7 commits 2025-04-28 16:28:39 +00:00
* 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
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.
feat: implement complex sqrt
All checks were successful
/ test (pull_request) Successful in 18s
196571ae13
glen merged commit 0765ba7202 into main 2025-04-28 16:29:34 +00:00
glen deleted branch return_typing 2025-04-28 16:29:34 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: StudioInfinity/nanomath#26
No description provided.