Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxn!ihnp4!houxm!ho95e!wcs From: wcs@ho95e.UUCP (#Bill_Stewart) Newsgroups: net.math,net.physics,net.wanted.sources,net.unix,net.lang.c Subject: Re: Complex Arithmetic Library Wanted Message-ID: <665@ho95e.UUCP> Date: Thu, 1-May-86 21:34:46 EDT Article-I.D.: ho95e.665 Posted: Thu May 1 21:34:46 1986 Date-Received: Sat, 3-May-86 18:01:29 EDT References: <1032@cybvax0.UUCP> Reply-To: wcs@ho95e.UUCP (Bill Stewart 1-201-949-0705 ihnp4!ho95c!wcs HO 2G202) Organization: AT&T Bell Labs, Holmdel NJ Lines: 23 Keywords: Math, Complex, Library, Source, C++ Xref: watmath net.math:3140 net.physics:4253 net.wanted.sources:2262 net.unix:7744 net.lang.c:8797 In article <1032@cybvax0.UUCP> dbr@foxvax5.UUCP (Douglas Robinson) writes: >I am interested in a set of "C" language functions, suitable for >linking to analytical programs, which perform complex number >operations. ..... >Some time ago (late 1984?) I saw reference to such a treasure on >USENET, in net.physics or net.math. If the library refered to can >be resurrected and mailed to me, I would greatly appreciate it. Such libraries can be useful, but a much better approach is to get C++, which allows you to define your own data types, and overload the standard operators to work with them. Program development is a lot faster when you can write z0 = z1 + z2 * z3 * 3.141592; instead of z0 = c_add( z1, c_mul( c_mul( z2, z3 ), r_to_c( 3.141592 ))); Your programs also run faster because the complex functions can be expanded in-line at compile time instead of using function calls. The standard c++ libraries around here include data types for complex numbers, character strings, and arrays with whole-array-at-once operators. -- # Bill Stewart, AT&T Bell Labs 2G-202, Holmdel NJ 1-201-949-0705 ihnp4!ho95c!wcs