numbercomplexecalculator
v1.1.1
Published
a calculator for number complexe
Downloads
6
Maintainers
Readme
numbercomplexecalculator
description
it is a calculator for complexe number
documentation
for create a complexe number use
const complexenumbers = require('numbercomplexecalculator')
const a = new complexnumbers(2/*real axe*/,3/*imagine axe*/)
all the code modify the value written at but nit modify the argument
a.add
(complexenumber) add two complexe numbera.sub
(complexenumber) substract two comlexe numbera.mul
(complexenumber) multiply two comlexe numbera.inverse
() calculate the inverse of the complexe numbera.divide
(complexenumber) divide two complexe number (a.divide(b) will equal in a = b/a)a.congugate
() calculate the congugate of the complexe numbera.clone
() clone the current number. any calculation on the clone will not modify the current number