#include <stdio.h>
#include "complex.h"

/* A simple test of the complex number functions - these are going to be
tested more extensively in the mandelbrot program */
int main()
{
    CMPLX x,y,z;
    x= create_complex(5.3, 4.1);
    y= create_complex(6.3, -2.1);
    z= add (x,y);
    print_complex (x);
    printf (" + ");
    print_complex (y);
    printf (" = ");
    print_complex (z);
    printf ("\n");
    z= subtract (x,y);
    print_complex (x);
    printf (" - ");
    print_complex (y);
    printf (" = ");
    print_complex (z);
    printf ("\n");
    return 0;
}


