Package Exports
- complexo
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (complexo) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Complexo
Simple complex numbers arithmetic operations.
Installation
Via npm on Node:
npm install complexo
Usage
Reference in your program:
var cx = require('complexo');
Usage
// create number 3 + 4i
var cnumber = cx.complex(3, 4);
// toString
cnumber.toString(); // "3 + 4i"
// inverse
cnumber.inv();
// add to cnumber
var newcnumber = cnumber.add(cnumber2);
// subtract cnumber
newcnumber = cnumber.sub(cnumber2);
// multiply cnumber
newcnumber = cnumber.mult(cnumber2);
// divide cnumber
newcnumber = cnumber.div(cnumber2);
// conjugate
newcnumber = cnumber.conj();
Development
git clone git://github.com/ajlopez/Complexo.git
cd Complexo
npm install
npm test
Versions
- 0.0.1 Published
- 0.0.2 Published, using complex factory function
Samples
TBD
License
MIT
Contribution
Feel free to file issues and submit pull requests � contributions are welcome<
If you submit a pull request, please be sure to add or update corresponding
test cases, and ensure that npm test
continues to pass.