Numbers incorrectly calculates Factorial 30?

I tried calculating Factorial 30 in Numbers. As a refresh, Factorial 30 is written as 30! and is product of all positive integers from 1 through 30.

In Numbers, I got the value 265,252,859,812,191,000,000,000,000,000,000 using PRODUCT function. In Numbers, when I manually multiply 30 x 29 x 28 .... x 1, I still get the same value 265,252,859,812,191,000,000,000,000,000,000.

But, actually Factorial 30 = 30! = 265,252,859,812,191,058,636,308,480,000,000

It appears Numbers 0's out the digits after 191. Is there a limitation in Numbers on how large a number can be multiplied?

MB, Mac OS X (10.5.2)

Posted on Jul 19, 2009 2:55 PM

Reply
21 replies

Jul 19, 2009 4:19 PM in response to AnilG

You are dealing with a digital computer which is representing decimal numbers using floating point numerical representation. Double precision floating point has a the ability to represent about 16 decimal digits. This is not a Numbers thing, it computers. If you need more precision, go to a high end math application that uses quadruple precision, which doubles the number of bits used to represent the number and gives a precision of about 34 decimal digits. That would be just enough to get you the answer to factorial 30 all the way to the very last digit (plus one digit to spare).

Jul 19, 2009 4:43 PM in response to Badunit

I would suggest that Numbers should calculate it correctly, no matter what Excel or Mathematica does.

Here is a great opportunity for Number to demonstrate its putative superiority, yet it falls short.

Apple management should allow the developers to implement solutions to these obvious limitations.

PS: I am just an humble user, out here in the hinterlands, but I understand the situation.

Jul 19, 2009 5:19 PM in response to Epictetus1

Epictetus1 wrote:
... but I understand the situation.


Apparently not. Numbers does calculate your answer correctly according to the IEEE standard. Tell me, do you truly need more than 15 digits of accuracy for whatever it is you are doing? If so, you need a high-end math application designed for that much precision (and you would already have known that).

Jul 20, 2009 2:26 AM in response to Epictetus1

Epictetus1 wrote:
I would suggest that Numbers should calculate it correctly, no matter what Excel or Mathematica does.

Here is a great opportunity for Number to demonstrate its putative superiority, yet it falls short.

Apple management should allow the developers to implement solutions to these obvious limitations.

PS: I am just an humble user, out here in the hinterlands, but I understand the situation.


In fact, you didn't understand !

A spreadsheet is not a scientific calculator.
It's designed for an other range of needs.
This range is covered by the IEEE 754-2008 Standard for Floating-Point Arithmetic.

If you really want to understand what you are writing about, it would be useful to search for "IEEE 754" in Google.

Yvan KOENIG (from FRANCE lundi 20 juillet 2009 11:25:51)

Jul 21, 2009 4:08 AM in response to AlbertEinstein

AlbertEinstein wrote:
A moot point, but I'd appreciate knowing under what circumstances you'd use such accuracy. The farthest stars are around 77720000000000000000000 miles away, and you want a million more times significance than that?


Why are you asking that to me? It's Epictetus1, not me which was asking for a higher accuracy.

I explained that the application is not designed for such an accuracy, no less, no more !

Yvan KOENIG (from FRANCE mardi 21 juillet 2009 13:08:21)

Jul 21, 2009 5:08 AM in response to KOENIG Yvan

Yvan: "Why are you asking that to me?"

I wasn't, and don't know why you would think so. As a beginner in this forum, I have to yet get used to the formalities involved. Every other forum I've attended over a long span of time now usually indicates the author of a message to which one is replying. This one apparently does not, unless I'm missing something ... it happens.

If you read my reply more carefully, you'd see that no-one in particular was mentioned, and that the "moot point" was my own ...the one I was about to make. The intent was a reply to purpose of the OP, and to the physical reason for such accuracy, aside from "I can do this and the spreadsheet can't.". A short while ago, a troll absolutely took over a math conference I attend with persistence on a degree of accuracy much smaller even than this, to the distress of all concerned, so I thought it worth a comment as to the purpose. If you couldn't answer that, then you shouldn't.

Message was edited by: AlbertEinstein

Jul 21, 2009 6:22 AM in response to AlbertEinstein

AlbertEinstein wrote:
Every other forum I've attended over a long span of time now usually indicates the author of a message to which one is replying. This one apparently does not, unless I'm missing something ... it happens.


Just make sure you are hitting the "reply" button on a message authored by the person you are responding to. Then it is good to hit the "quote" marks so you can get the author's name and quote part of his message to make clear what you are responding to exactly.

Jul 21, 2009 6:53 AM in response to AlbertEinstein

AlbertEinstein wrote:
Yvan: "Why are you asking that to me?"

I wasn't, and don't know why you would think so.


Why aren't you reading carefully ?
Your message what clearly stating "in response to Yvan KOENIG".

User uploaded file

Next time, _take care of what you do_ and I will not have to send this kind of question !

Yvan KOENIG (from FRANCE mardi 21 juillet 2009 15:52:38)

Jul 21, 2009 7:54 AM in response to KOENIG Yvan

Stop being so arrogant! I am new here, but am far from new with newsgroups and discussion forums, which I may well have been attending since before you were born. As I type this, I still do not see evidence of "in response to" which possibly appears AFTER I am finished, or as a result of the choice of which "reply" is clicked. But I'm very new here, and just getting used to things. I'm also blind in one eye due to a recent accident, so I might not see things as well as I used to. I was simply using this site in the manner I have done with others, but which are clearly designed differently, as I now observe.

You are clearly knowledgeable in the use of the apple computer and with the vagaries of this forum. I am not ...yet. But I guarantee you that I will be! Now, please don't ever think of lecturing me again. I have WAY too many years of experience to tolerate that. If you want to be helpful, then try directing a person in a polite fashion instead of sitting on a high horse and frowning on them. I.E. inform me on how to avoid this terrible error next time ...what to look for. I have personally helped people with thousands of replies over the decades in other forums in which I have gained respect, and don't need this sort of reply myself. You should concentrate on the message and its intent, not on petty problems which are of no real concern. In this case, that was simply to question the original poster on his intent in gaining such accuracy.

Jul 21, 2009 8:17 AM in response to KOENIG Yvan

KOENIG Yvan wrote:
I repeat:
take care of what you do when you respond and you will no longer get the kind of response which you got.
Yvan KOENIG (from FRANCE mardi 21 juillet 2009 17:08:23)


I repeat: Please take care of HOW you respond and you will not get the kind of response that you got. As you may see, with the help of Tom's kind reply, I've learned a little already. With a degree in math/physics, and having taught them for a few decades as well, I am not used to being spoken to as if I was stupid or incompetent.

Now, I've had enough of this, as it is well off the original topic.

David.

Jul 21, 2009 9:20 AM in response to AlbertEinstein

As I am a retired Engineer from "École Nationale des Ponts et Chaussées" (and a retired potter) I am really not not impressed by your degree in math/physics 😉

You made an error, and I point that with my own words even if you don't like them.
Who is arrogant?
I use my true last name, not a pretentious pseudo like yours.
Albert Einstein was able to admit errors when he made some. It seems that you aren't 😟

Yvan KOENIG (from FRANCE mardi 21 juillet 2009 18:19:00)

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Numbers incorrectly calculates Factorial 30?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.