feat: methods on Complex #24
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "more_complex"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds all of the pocomath functions on Complex that do not depend on any unimplemented types or config properties. To get this working, adds some additional features:
determined from the return value of the built convertor
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 arithmeticarg* 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 itselfAlso left out quotient and roundquotient because they are not necessary for polyomialRoot and the ultimate design there is unclear. With that, this PR is ready to merge, so unmarking as WIP.
WIP: feat: methods on Complexto feat: methods on Complex