Path: utzoo!utgpu!water!watmath!clyde!rutgers!cmcl2!brl-adm!umd5!eneevax!mimsy!chris From: chris@mimsy.UUCP (Chris Torek) Newsgroups: comp.lang.fortran Subject: Re: COMPLEX variables Message-ID: <10363@mimsy.UUCP> Date: 27 Jan 88 17:03:14 GMT References: <12359761762.8.BEEBEX@SCIENCE.UTAH.EDU> <1263@nmtsun.nmt.edu> Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 21 In article <1263@nmtsun.nmt.edu> john@nmtsun.nmt.edu (John Shipman) writes: >What about type COMPLEX? Presumably the FORTRAN-to-C translators are >generating calls to library routines to handle COMPLEX calculations. Either that, or using macros or simply inline code. While a.real = b.real * c.real - b.imag * c.imag, a.imag = b.real * c.imag + b.imag * c.real; is much uglier than A = B * C, since it is all generated automatically I doubt you will hear the computer complain. :-) What I do not understand is why FORTRAN programmers never complain about the lack of built-in quaternions. -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163) Domain: chris@mimsy.umd.edu Path: uunet!mimsy!chris