Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion ? How to have a FORTRAN function emulate flops for desired digits
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Catherine Rees Lay  
View profile  
 More options Sep 7 2000, 10:48 am
Newsgroups: comp.lang.fortran
From: Catherine Rees Lay <Cather...@reeslay.demon.co.uk>
Date: Thu, 7 Sep 2000 13:35:11 +0100
Local: Thurs, Sep 7 2000 8:35 am
Subject: Re: ? How to have a FORTRAN function emulate flops for desired digits
In article <m23djdm2l6....@vega.qnet.com>, Richard Maine
<ma...@qnet.com> writes
>Cheng Cosine <acos...@yahoo.com> writes:
>> Richard Maine wrote:
>> > Cheng Cosine <acos...@yahoo.com> writes:
>> > > I'd like to show my student about how limited significant
>> > > digits can effect the flops....
>> > I'm not sure how significant digits effect flops...
>> For example: [elided]

>Oh.  I see.  Sorry that I misunderstood your usage.  I've never seen
>the term flops used except in the context of counting the number of
>floating point operations (and most commonly as an acronym for
>Floating-point Operations Per Second).  I couldn't see how cutting the
>precision was going to show anything about the number of floating
>point operations it took to do some computation or the number that
>could be done in a second.  Yes, its clear to me that precision has an
>(important) effect on floating point operations.

>Alas, understanding what you meant by that doesn't help me come up
>with a simple solution to your request.  My comment about it being
>a lot of work still applies.

If you only need it for an example, and can choose your example
appropriately, it's relatively easy to cut off at a given number of
decimal places. For n places, multiply by 10**n, convert to integer,
divide by 10**n. If you can live with an example whose largest values
are around 1, this might help.

Catherine.
--
Catherine Rees Lay


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.