Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class TestComplexGetal
- {
- public static void main(String[] args)
- {
- ComplexGetal a = new ComplexGetal(5, 3, 1, 2);
- ComplexGetal b = new ComplexGetal(1, 6, -1, 3);
- System.out.println("a\t\t\t= " + a);
- System.out.println("b\t\t\t= " + b);
- System.out.println("b + a\t\t\t= " + b.telop(a));
- System.out.println("a - b + b\t\t= " + (a.trekaf(b)).telop(b));
- System.out.println("(a - b) + (b - a)\t= " + (a.trekaf(b)).telop((b.trekaf(a))));
- System.out.println("a * b\t\t\t= " + a.vermenigvuldig(b));
- //System.out.println("a / b\t\t\t= " + a.deel(b));
- //System.out.println("(a / b) * b\t\t= " + a.deel(b).vermenigvuldig(b));
- System.out.println("omgekeerde(a)\t\t= " + a.omgekeerde(a));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement