/// <reference path="./complex.d.ts" />

import Complex from 'complex';

var z: Complex = new Complex(2, 3);
var z: Complex = Complex.from(2, 3);
var z: Complex = Complex.from(2, 4);
var z: Complex = Complex.from(5);
var z: Complex = Complex.from('2+5i');
var z: Complex = Complex.fromPolar(3, Math.PI);
var z: Complex = Complex.i;
var z: Complex = Complex.one;
var z: Complex = z.fromRect(2, 3);
var z: Complex = z.fromPolar(3, Math.PI);
var z: Complex = z.toPrecision(3);
var z: Complex = z.toFixed(3);
var z: Complex = z.finalize();
var x: number = z.magnitude();
var x: number = z.abs();
var x: number = z.angle();
var x: number = z.arg();
var x: number = z.phase();
var z: Complex = z.conjugate();
var z: Complex = z.negate();
var z: Complex = z.multiply(z);
var z: Complex = z.mult(3);
var z: Complex = z.divide(z);
var z: Complex = z.div(3);
var z: Complex = z.add(z);
var z: Complex = z.subtract(z);
var z: Complex = z.sub(3);
var z: Complex = z.pow(z);
var z: Complex = z.sqrt();
var z: Complex = z.log(2);
var z: Complex = z.exp();
var z: Complex = z.sin();
var z: Complex = z.cos();
var z: Complex = z.tan();
var z: Complex = z.sinh();
var z: Complex = z.cosh();
var z: Complex = z.tanh();
var z: Complex = z.clone();
var s: string = z.toString();
var b: boolean = z.equals(z);
