complex.js
function() {

      var tmp = Math.exp(this['re']);

      if (this['im'] === 0) {
        //return new Complex(tmp, 0);
      }
      return new Complex(
              tmp * Math.cos(this['im']),
              tmp * Math.sin(this['im']));
    }
function() {

      var tmp = Math.exp(this['re']);

      if (this['im'] === 0) {
        //return new Complex(tmp, 0);
      }
      return new Complex(
              tmp * Math.cos(this['im']),
              tmp * Math.sin(this['im']));
    }
function ( ) { var tmp = Math . exp ( this [ 're' ] ) ; if ( this [ 'im' ] === 0 ) { //return new Complex(tmp, 0); } return new Complex ( tmp * Math . cos ( this [ 'im' ] ) , tmp * Math . sin ( this [ 'im' ] ) ) ; }
Calculate the complex exponent

@returns {Complex}
Calculate the complex exponent