complex

complex - /* Name: Jason McAllister * File: complex.h *...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
/* Name: Jason McAllister * File: complex.h * Instructor: William E. Duncan * Class and Section: cs1254.02 * LogonID : cs125477 */ /* File: complex.h * ------------------------------------------------- * This interface provides the functions for the * complex number ADT implementation. */ #ifndef _COMPLEX_H #define _COMPLEX_H #define PI 3.14159265358979 typedef struct _cmplxCDT* Cmplx; /* * Function: CreateCmplx * Usage: z = CreateCmplx(x,y); * ------------------------- * This function creates a new complex number. * x and y are real numbers (doubles) with x as * its real part and y as its imaginary part. * On failure NULL is returned. */ Cmplx CreateCmplx(double x, double y); /* * Function: ConjCmplx * Usage: c = ConjCmplx(z); * ------------------------- * Given a complex number z whose real part is x * and whose imaginary part is y, it returns a * a new complex number c whose real part is y and * whose imaginary part is x. * On failure NULL is returned.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/17/2012 for the course CSC 1254 taught by Professor Blanks,l during the Fall '08 term at LSU.

Page1 / 3

complex - /* Name: Jason McAllister * File: complex.h *...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online