From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14967 invoked by alias); 24 May 2006 06:42:22 -0000 Received: (qmail 14953 invoked by uid 22791); 24 May 2006 06:42:21 -0000 X-Spam-Check-By: sourceware.org Received: from dns2.synchrotron-soleil.fr (HELO mailhost.synchrotron-soleil.fr) (195.221.0.6) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 24 May 2006 06:42:18 +0000 Received: from localhost (raclette [127.0.0.1]) by mailhost.synchrotron-soleil.fr (Postfix) with ESMTP id B3A8243C0BE; Wed, 24 May 2006 08:42:10 +0200 (CEST) Received: from mailhost.synchrotron-soleil.fr ([127.0.0.1]) by localhost (raclette [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00510-56; Wed, 24 May 2006 08:42:09 +0200 (CEST) Received: from venusbis.synchrotron-soleil.fr (venusbis.synchrotron-soleil.fr [195.221.0.152]) by mailhost.synchrotron-soleil.fr (Postfix) with ESMTP id 04F6743C028; Wed, 24 May 2006 08:42:09 +0200 (CEST) Received: from localhost.localdomain ([195.221.5.120]) by venusbis.synchrotron-soleil.fr with Microsoft SMTPSVC(6.0.3790.1830); Wed, 24 May 2006 08:43:11 +0200 Date: Wed, 24 May 2006 14:28:00 -0000 From: picca@synchrotron-soleil.fr To: Lowell Johnson Cc: gsl-discuss@sources.redhat.com Subject: Re: cvs version: make check FAIL Message-Id: <20060524084212.78554aa6.picca@synchrotron-soleil.fr> In-Reply-To: <200605232109.19532.ldj00@sio.midco.net> References: <20060524000329.8cb0b5c2.giulio.bottazzi@libero.it> <200605232109.19532.ldj00@sio.midco.net> X-Mailer: Sylpheed version 2.2.4 (GTK+ 2.8.16; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Mailing-List: contact gsl-discuss-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gsl-discuss-owner@sourceware.org X-SW-Source: 2006-q2/txt/msg00064.txt.bz2 Hello Instead of computing 2 times fabs(fn), why not storing it in a variable ? result->val = fn; - result->err = GSL_DBL_EPSILON*fabs(fn); + result->err = 2.0*GSL_DBL_EPSILON; + double factor = fabs(fn); + if (factor > 1.0) + result->err *= factor; Have a nice day.