package jetbrains.mps.complex.sandbox; /*Generated by MPS */ import jetbrains.mps.samples.complex.runtime.Complex; public class Main { public Main() { } public static void main(String[] args) { Complex c1 = Complex.sum(new Complex(1, 0), Complex.product(new Complex(2, 0), Complex.getI())); Complex c2 = Complex.sub(new Complex(1, 0), Complex.product(new Complex(2, 0), Complex.getI())); System.out.println("(" + (c1) + ")*(" + (c2) + ") = " + (Complex.product(c1, c2))); System.out.println(c1 + " = " + (c2.getConjugative())); System.out.println((Complex.sum(c1, c2)) + " = " + c1 + " + " + c2); } }