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.
jspm install github:aureooms/js-complex
# or
jspm install npm:aureooms-js-complex
No install step needed for duo!
component install aureooms/js-complex
bower install aureooms-js-complex
ender add aureooms-js-complex
jam install aureooms-js-complex
spm install aureooms-js-complex --save
npm install aureooms-js-complex --save
let complex = require( "github:aureooms/js-complex" ) ;
// or
import complex from 'aureooms-js-complex' ;
let complex = require( "aureooms/js-complex" ) ;
let complex = require( "aureooms-js-complex" ) ;
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.
require( [ "aureooms-js-complex" ] , function ( complex ) { ... } ) ;