Implementation
JS

Be concise.

Be useful.

All contributions dictatorially edited by webmasters to match personal tastes.

Please do not paste any copyright violating resource.

Please try to avoid dependencies to third-party libraries and frameworks.

Other implementations
x := 3i - 2
x *= 1i
import std.complex;
auto x = complex(-2, 3);
x * complex(0, 1);
use Math::Complex;
my $x = 3*i - 2;
$x *= i;
x = 3i - 2
x *= 1i
let i = ( 0 :+ 1 ) ; x = 3 * i - 2 in x * i
use Math::Complex;
my $x = cplx(-2, 3);
$x *= i;
x = 3j-2
y = x * 1j
uses ucomplex;
var
  C: Complex;
begin
  C := 3*i - 2;
end.
import org.apache.commons.math4.complex.Complex;
Complex x = new Complex(-2.0, 3.0);
x = x.multiply(Complex.I);
extern crate num;
use num::Complex;
let mut x = Complex::new(-2, 3);
x *= Complex::i();
#include <complex>
using namespace std::complex_literals;
	
auto x = 3i - 2.;
x *= 1i;
ímport Data.Complex
x = (0 :+ 1) * ((0 - 2) :+ 3)