Advertisement
MirkoVa

Untitled

Sep 20th, 2014
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. public class TestComplexGetal
  2. {
  3. public static void main(String[] args)
  4. {
  5. ComplexGetal a = new ComplexGetal(5, 3, 1, 2);
  6. ComplexGetal b = new ComplexGetal(1, 6, -1, 3);
  7.  
  8. System.out.println("a\t\t\t= " + a);
  9. System.out.println("b\t\t\t= " + b);
  10. System.out.println("b + a\t\t\t= " + b.telop(a));
  11. System.out.println("a - b + b\t\t= " + (a.trekaf(b)).telop(b));
  12. System.out.println("(a - b) + (b - a)\t= " + (a.trekaf(b)).telop((b.trekaf(a))));
  13. System.out.println("a * b\t\t\t= " + a.vermenigvuldig(b));
  14. //System.out.println("a / b\t\t\t= " + a.deel(b));
  15. //System.out.println("(a / b) * b\t\t= " + a.deel(b).vermenigvuldig(b));
  16. System.out.println("omgekeerde(a)\t\t= " + a.omgekeerde(a));
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement