pocomath/complex/complex.mjs
Glen Whitney b82336e590 feat: Add complex numbers
No negation (and therefore no subtraction) since that needs self-reference.
2022-07-19 09:52:16 -07:00

7 lines
131 B
JavaScript

import './Complex.mjs'
export const complex = {
'number, number': [[], (x, y) => ({re: x, im: y})],
Complex: [[], z => z]
}