d95e5ad930
feat: Allow reconfiguration of an existing picomath instance
...
Keeps track of which operations depend on the configuration and
invalidates them for lazy reconfiguration when the config changes.
2022-03-25 14:40:57 -07:00
4213ade4ba
feat: Add a configuration for an instance that can be set at creation time
...
And use it to control whether the result of a complex operation where the
imaginary part comes out to 0 will be coerced back to a number.
2022-03-25 13:43:37 -07:00
e5ec1083e3
feat: Selective loader that extends all/only existing number methods to complex
...
Plus a test example where an instance is initialized to have only addition,
and then that instance is extended to complex numbers, at which point it
has number and complex addition but not negation or subtraction (at all).
2022-03-25 02:46:49 -07:00
32bc9ca515
feat: Add complex numbers
...
With just the operations we have for numbers, and overall tests.
2022-03-25 01:54:20 -07:00