Path: utzoo!mnetor!uunet!husc6!cmcl2!brl-adm!adm!V4039%TEMPLEVM.BITNET@CUNYVM.CUNY.EDU From: V4039%TEMPLEVM.BITNET@CUNYVM.CUNY.EDU (Stan Horwitz) Newsgroups: comp.lang.c Subject: Re: parens honored Message-ID: <11221@brl-adm.ARPA> Date: 12 Jan 88 04:32:43 GMT Sender: news@brl-adm.ARPA Lines: 15 The temp variables I am referring to are those needed to evaluate the different quantities involved in the formula I mentioned. Temps for that case could be: TEMP1 = SUM(XY) / N and TEMP2 = SUM(X) * SUM(Y) so that they can be included in the formula as: SUMXY = TEMP1 - TEMP2 / N. Of course I know the formula is not robust, it was not intended to be. It was only meant as a short example to illustrate my point that in order to avoid the use of temps, sometimes one can play a little mathemagic (algebra) and write the formula in question to an order which C will handle properly. I did not provide the formula with the intention of advocating it's use in numerical computations. Stan Horwitz V4039 at TEMPLEVM.BITNET