PC Review


Reply
Thread Tools Rate Thread

Calculating Cos(pi() / 2) in Excel (?)

 
 
Charlie Johnson
Guest
Posts: n/a
 
      19th Nov 2003
When I try to compute the cos(pi()/2) , I keep getting 6.12574E-17. Does
that mean 0? I know from computer programming that something that small is
essentially 0. Is that how Excel represents 0? If so, I would have thought
MS could have programmed that into Excel.

Lurch


 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      20th Nov 2003
See one response to your other post.

Charlie Johnson wrote:
>
> When I try to compute the cos(pi()/2) , I keep getting 6.12574E-17. Does
> that mean 0? I know from computer programming that something that small is
> essentially 0. Is that how Excel represents 0? If so, I would have thought
> MS could have programmed that into Excel.
>
> Lurch


--

Dave Peterson
(E-Mail Removed)
 
Reply With Quote
 
David
Guest
Posts: n/a
 
      20th Nov 2003
Charlie

The problem is not really with the zero, but the fact that PI/2 is not
exact. As you know PI is an infinitely long non-recurring number. This is
true in decimal and binary (and in any number system).

So even if arguments to functions are given to 64 bits, the value stored for
PI/2 will not be PI/2 but something very close to this. Thus the cosine of
this will not be zero, but something quite close to it. 6 x 10^-17 would be
close enough for me!

David

"Charlie Johnson" <cj-(E-Mail Removed)> wrote in message
newsERub.10700$(E-Mail Removed)...
> When I try to compute the cos(pi()/2) , I keep getting 6.12574E-17. Does
> that mean 0? I know from computer programming that something that small

is
> essentially 0. Is that how Excel represents 0? If so, I would have

thought
> MS could have programmed that into Excel.
>
> Lurch
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2003 hangs calculating cells from a Excel XP created Document James Bates Microsoft Excel Discussion 2 12th Apr 2007 08:03 PM
In excel the sum is not calculating =?Utf-8?B?TWVsb2R5?= Microsoft Excel Worksheet Functions 3 12th Jul 2005 04:08 PM
any known problems with calculating Excel XP macros in Excel 2000? =?Utf-8?B?Um9iaW4gTWlsZm9yZA==?= Microsoft Excel Misc 3 1st Oct 2004 11:13 PM
Excel calculating very slowly in Excel 2004 for Mac menace3054 Microsoft Excel Discussion 1 28th Jun 2004 06:40 AM
Opening Excel 97 Worksheet with Excel 2002 Crashes when calculating... Gabriel Glusgold Microsoft Excel Crashes 0 18th Oct 2003 05:08 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:47 AM.