Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site hou5e.UUCP Path: utzoo!linus!vaxine!wjh12!genrad!decvax!harpo!ihnp4!houxm!hogpc!houti!ariel!hou5f!hou5e!tgg From: tgg@hou5e.UUCP Newsgroups: net.lang.c Subject: Re: Numerical C Message-ID: <960@hou5e.UUCP> Date: Tue, 24-Apr-84 10:53:28 EST Article-I.D.: hou5e.960 Posted: Tue Apr 24 10:53:28 1984 Date-Received: Thu, 26-Apr-84 01:14:11 EST References: <1311@mhuxt.UUCP> <166@utastro.UUCP>, <459@sequent.UUCP> Organization: AT&T Information Systems Laboratories, Holmdel, NJ Lines: 8 I'll be brash (i.e., not look in K&R) and say that '!', used as a dyodic operation, could be used as expnentiation. It even looks nice and it's better than a function because the compiler can cast as needed to mix types. Note that the expedient #define power(a,b) pow( (double) (a), (double) (b) ) will promote lessors to doubles, it won't recognise situations that don't require promotion. Tom Gulvin AT&T ISL - soon to be Silicon Valley.