🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.micro.mac
Article #1501

Re: Harmonic Series Benchmark

#1501
From: Jim Budler
Date: Sat, 25 May 1985 07:57
22 lines
1454 bytes
In article <> jimb@amd.UUCP (Jim Budler) writes:
>Someone on arpanet proposed a floating point benchmark of timing the
>sum of the first 10,000 terms of the harmonic series, i.e. for 
>i = 1 to 100000; sum = sum + 1/i;  
>
>He also stated the right answer was 9.787613 determined from a Vax 11/780
>taking 0.02 seconds.
>
>Now either I'm doing it wrong or something, because I didn't get that
>answer on an IBM 3081.  But anyway, here is my results, with the
>actual output of the Macintosh using Mac C from Consulair.

Well, I now know the answer to my own question.  If you use float
as apposed to double, the answer on a Vax is 9.787613.  If you
use double the answer is 9,787606, the same as I got on the IBM, Valid
and Mac.  I'll have to go back and try float on the Mac.
-- 
 Jim Budler
 Advanced Micro Devices, Inc.
 (408) 749-5806
 UUCPnet: {ucbvax,decwrl,ihnp4,allegra,intelca}!amdcad!jimb
 Compuserve:	72415,1200
Technical Details
Message-ID: <1354@amd.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!amd!jimb
References: <>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site amd.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!amd!jimb
From: jimb@amd.UUCP (Jim Budler)
Newsgroups: net.micro.mac
Subject: Re: Harmonic Series Benchmark
Message-ID: <1354@amd.UUCP>
Date: Sat, 25-May-85 03:57:33 EDT
Article-I.D.: amd.1354
Posted: Sat May 25 03:57:33 1985
Date-Received: Sat, 25-May-85 10:01:27 EDT
References: <>
Reply-To: jimb@amd.UUCP (Jim Budler)
Organization: AMD MOSCAD
Lines: 22