pocomath/src/complex/negate.mjs

6 lines
127 B
JavaScript
Raw Normal View History

export * from './Types/Complex.mjs'
export const negate = {
Complex: ({self}) => z => ({re: self(z.re), im: self(z.im)})
}