Complex numbers code bricks for JavaScript.
let kernel = complex.cartesian.kernel.compile( number , "i" ) ;
let { add , sub , mul , div } = complex.cartesian.array.compile( kernel ) ;

Can be managed through jspm,
duo,
component,
bower,
ender,
jam,
spm,
and npm.
Install
jspm
jspm install github:aureooms/js-complex
# or
jspm install npm:@aureooms/js-complex
duo
No install step needed for duo!
component
component install aureooms/js-complex
bower
bower install @aureooms/js-complex
ender
ender add @aureooms/js-complex
jam
jam install @aureooms/js-complex
spm
spm install @aureooms/js-complex --save
npm
npm install @aureooms/js-complex --save
Require
jspm
let complex = require( "github:aureooms/js-complex" ) ;
import complex from '@aureooms/js-complex' ;
duo
let complex = require( "aureooms/js-complex" ) ;
component, ender, spm, npm
let complex = require( "@aureooms/js-complex" ) ;
bower
The script tag exposes the global variable complex
.
<script src="bower_components/@aureooms/js-complex/js/dist/complex.min.js"></script>
Alternatively, you can use any tool mentioned here.
jam
require( [ "@aureooms/js-complex" ] , function ( complex ) { ... } ) ;