- Forum
- General C++ Programming
- Is any mathematical term for integer num

Pages: 12

It is interesting is any mathematical term for the integer number for which factorial is evaluated?

That is**n!** is called factorial and is written as factorial( n ). And what is the name of **n**? Is any common acceptable term for **n**?

The questian arised when I wanted to name a function that returns n for a given value of factorial( n ).

That is

The questian arised when I wanted to name a function that returns n for a given value of factorial( n ).

Last edited on

Thanks, Peter87

But in my opinion a variable or an argument are too general notions. I thought that there is a more specific term for argument of factorial.

Could it be for example a degree or is it a wrong term?

But in my opinion a variable or an argument are too general notions. I thought that there is a more specific term for argument of factorial.

Could it be for example a degree or is it a wrong term?

Last edited on

Hi vlad,

I guess you could call it a permutation - I just Googled "wiki factorial" & found this page

Hope this helps

I guess you could call it a permutation - I just Googled "wiki factorial" & found this page

http://en.wikipedia.org/wiki/Factorial |

Hope this helps

I think a permutation would generally apply to a set of numbers.

Could it not just be operand?

Could it not just be operand?

@iHutch105

I agree with you.

As for operand it is not a very expressive term for the name of such a function that returns n.

I think a permutation would generally apply to a set of numbers. |

I agree with you.

As for operand it is not a very expressive term for the name of such a function that returns n.

Last edited on

This is from the above web page:

I guess this is combination of what iHutch105 and I are saying.

You could have a set of permutations from a set of objects.

This all talks about factorial n, as for n itself, it would just be number of objects in the set.

The other thing is what application is the factorial for? Eg Terms in a series, but the factorial function is a general one (independent of the application), so I guess you could call it whatever you want.

Perhaps another way of looking at it, is that n is one of the set of positive whole numbers.

A final thought: what about - base ?

Its most basic occurrence is the fact that there are n! ways to arrange n distinct objects into a sequence (i.e., permutations of the set of objects). |

I guess this is combination of what iHutch105 and I are saying.

You could have a set of permutations from a set of objects.

This all talks about factorial n, as for n itself, it would just be number of objects in the set.

The other thing is what application is the factorial for? Eg Terms in a series, but the factorial function is a general one (independent of the application), so I guess you could call it whatever you want.

Perhaps another way of looking at it, is that n is one of the set of positive whole numbers.

A final thought: what about - base ?

@ne555

¿What about ammag? |

Is gamma a common acceptable term for integer number for which a factorial is evaluated?

Then how to name the maximum integer number for a given C/C++ integer type for which a factorial can be evaluated?

Last edited on

@TheIdeasMan

I also thought about base. But is there the term base factorial numbers in mathematics? Will it confuse a user?

A final thought: what about - base ? |

I also thought about base. But is there the term base factorial numbers in mathematics? Will it confuse a user?

Last edited on

Vlad,

Well the wiki page didn't have anything at all about what n was referred to as. Does that mean there isn't a term for n?

Could you come up with a sentence to describe it like : "Calculate the factorial for this number" You could put that on your form if it is a GUI app, and put it in a tooltip, or say whatever you want if it is a console app.

I guess you have to be careful with the psychology of users, but I wonder if there is some point where you have to assume some reasonable inteligence.

But is there the term base factorial numbers in mathematics? |

Well the wiki page didn't have anything at all about what n was referred to as. Does that mean there isn't a term for n?

Will it confuse a user? |

Could you come up with a sentence to describe it like : "Calculate the factorial for this number" You could put that on your form if it is a GUI app, and put it in a tooltip, or say whatever you want if it is a console app.

I guess you have to be careful with the psychology of users, but I wonder if there is some point where you have to assume some reasonable inteligence.

-- is any mathematical term for the integer number for which factorial is evaluated?

-- Don't know specific for the factorial. Generalizing, it's a function so its argument might be called*argument*.

-- I wanted to name a function that returns n for a given value of factorial( n ).

-- So you created the inverse function of the factorial. You may call it*inverse_factorial*

-- Don't know specific for the factorial. Generalizing, it's a function so its argument might be called

-- I wanted to name a function that returns n for a given value of factorial( n ).

-- So you created the inverse function of the factorial. You may call it

wikipedia wrote: |
---|

In mathematics, the gamma function (represented by the capital Greek letter Γ) is an extension of the factorial function, |

At first I marked the question as resolved but now I have decided to remove the mark because I have some doubts due to an alternative variant.

So there are two proposals. As I showed in the previous post it could be

**argn();** // returns a current value of factorial( n )

**max_argn();** // returns the maximum acceptable value for a given factorial

and

**base();**
**max_base();**

which have the same meaning as the functions above them.

So what is the better?

I am interested espesially the opinion of English spoken programmers.

So there are two proposals. As I showed in the previous post it could be

and

which have the same meaning as the functions above them.

So what is the better?

I am interested espesially the opinion of English spoken programmers.

Last edited on

Honestly, they're all bad. If you're not going to use ne555's suggestion of 'inverse_factorial', 'factoriand' seems like the most descriptive choice.

At least one other person uses "factoriand":

http://stackoverflow.com/questions/4961331/matlab-lazy-evaluation-in-dependent-property

http://stackoverflow.com/questions/4961331/matlab-lazy-evaluation-in-dependent-property

Pages: 12