/*************************************************************************\ * Copyright (c) 2002 The University of Chicago, as Operator of Argonne * National Laboratory. * Copyright (c) 2002 The Regents of the University of California, as * Operator of Los Alamos National Laboratory. * This file is distributed subject to a Software License Agreement found * in the file LICENSE that is included with this distribution. \*************************************************************************/ /* $Log: comtest.c,v $ Revision 1.7 2009/11/06 23:37:54 borland Updated to use C99 complex number library. Revision 1.6 2009/10/30 14:07:05 borland Added test for clog(). Revision 1.5 2003/06/18 19:52:32 borland Removed the query() and query_e() macros, and replaced with queryn() and queryn_e() macros. The former used gets() whereas the latter do not. Revision 1.4 2002/08/14 16:18:53 soliday Added Open License Revision 1.3 2001/10/22 23:04:45 borland Fixed random number generation and added tests of croot() and csroot(). * Revision 1.2 1995/09/05 21:19:27 saunders * First test release of the SDDS1.5 package. * */ #include "mdb.h" #include #define MAXRAND 2147483647. int set_drand(double low, double high, int seed); double complex crand(); double complex cexpi(double x); double complex cipowr(double complex a, int n); int main(void) { double complex a, b, c, d, e, f; int seed; int i, n; char s[100]; n = query_int("number of points", 10); a = 0; for (i=0; i