# Are there any mathematical functions beside +, -, \*, / ?

**URL:** <https://boards.straightdope.com/t/are-there-any-mathematical-functions-beside/112491>\
**Category:** Factual Questions\
**Created:** [June 5, 2002, 2:44pm UTC](https://boards.straightdope.com/t/are-there-any-mathematical-functions-beside/112491 "2002-06-05T14:44:03Z")\
**Posts on this page:** 13\
**Page:** 3

<div class="post-metadata">

**Author:** ![AHunter3](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/ahunter3/32/368_2.png) [@AHunter3](https://boards.straightdope.com/u/AHunter3)\
**Post date:** [June 6, 2002, 3:54pm UTC](https://boards.straightdope.com/t/are-there-any-mathematical-functions-beside/112491/41 "2002-06-06T15:54:41Z")

</div>

**zev** :

> [@](#):
>
> in c++ the ++ operator automatically increments your variable by one. Thus if a = 4, a++ = 5.

So… these software applications I’m using were really written in “D”?

---

<div class="post-metadata">

**Author:** ![John\_Kentzel-Griffin](https://avatars.discourse-cdn.com/v4/letter/j/ccd318/32.png) [@John\_Kentzel-Griffin](https://boards.straightdope.com/u/John_Kentzel-Griffin)\
**Post date:** [June 6, 2002, 4:05pm UTC](https://boards.straightdope.com/t/are-there-any-mathematical-functions-beside/112491/42 "2002-06-06T16:05:45Z")

</div>

> [@](#):
>
> \*Originally posted by \*\*\*zev\_steinhardt \*\*  
> Technically, +, -, \*, /, etc. are operators, not functions.
> 
> There are an infinite number of functions, simply because you can create your own. For example, I will create a function (called Zev() ) which doubles a number.
> 
> Thus: Zev(6) = 12.
> 
> There are many other mathematical operators. In programming languages, such as c++, you can create your own operators as well. For example, in c++ the ++ operator automatically increments your variable by one. Thus if a = 4, a++ = 5.

What exactly is the difference between an operator and a function? How is a uniary operator different from a function? I don’t see the difference. I see no difference between a binary operator on R and a function from R x R into R. For that matter, the differential operator is just a function whose domain is certain well-behaved functins and whose range is functions. Function, operator, transformation – they all look the same to me. What is the techinical distinction?

**SCSimmons**

You left out one property of natural numbers: The set of natural numbers is the smallest set that has the five properties that you listed. That is, if we have a set S that has the five properties you listed, the set of natural numbers is equivalent to a subset of S.

---

<div class="post-metadata">

**Author:** ![Newton\_meter](https://avatars.discourse-cdn.com/v4/letter/n/57b2e6/32.png) [@Newton\_meter](https://boards.straightdope.com/u/Newton_meter)\
**Post date:** [June 6, 2002, 6:30pm UTC](https://boards.straightdope.com/t/are-there-any-mathematical-functions-beside/112491/43 "2002-06-06T18:30:11Z")

</div>

> [@](#):
>
> \*Originally posted by AHunter3 \*  
> \*\*So… these software applications I’m using were really written in “D”? \*\*

No.

The value of the expression C++ is the same as the value of the expression C. Maybe they should have called the language ++C.

And even that would be the character ‘D’ only if the value of the variable C happened to be the character ‘C’.

I suppose that C++ could evaluate to the string “D”, exactly when C is the string “D”.

So, in order to know what C++ is, you have to know what C is; and then they’re just the same thing except C++ carries a little extra baggage along with it. Perhaps the name of the language is apropos after all.

---

<div class="post-metadata">

**Author:** ![JS\_Princeton](https://avatars.discourse-cdn.com/v4/letter/j/57b2e6/32.png) [@JS\_Princeton](https://boards.straightdope.com/u/JS_Princeton)\
**Post date:** [June 6, 2002, 6:52pm UTC](https://boards.straightdope.com/t/are-there-any-mathematical-functions-beside/112491/44 "2002-06-06T18:52:15Z")

</div>

Confused people should go to the library and check out a book on Group Theory… Linear Algebra too while they’re at it. These will give you some good non-rigorous, rudimentary understandings of what on Earth operators are and how they’re different from functions. For example, in physics, any operator that is Hermetian is representative of an observable… but I digress.

The OP (assuming operations are what is meant instead of functions) doesn’t define the set they are concerned with well enough for me to answer the question. For example. the set could be all real numbers and all real cucumbers. You can define an operator that has the property that the operator operated on the number 2 gives the cucumber in my refrigerator. I’ll be damned if I know what kind of combination of +,\* will give you that answer.

If we are to assume we’re dealing with a set of Real Numbers, then we can begin to behave a bit less humorously. If the question is, can we define finite piecewise operators to map the set of real numbers to itself (or a subset of itself) using simply addition and multiplication the answer is no (since the real numbers are not a group). However, for the set of natural numbers, the answer is yes (since the natural numbers are a group). Also, you may note that multiplication and addition don’t have to be related, but you have to include a concept of numerating your iterations in your reconstructed, piecewise operation if you want to define some relation (in other words, a three has to represent three members of the set as well as the element “3”). This is not a trivial problem, and I actually know of no solution (this is perhaps due to the fact that I have never taken a set-theory course). It really hasn’t bothered me that much, but it may come back to haunt me in the future.

Please, mathematicians… I’m a bit rusty in this area as it has been years since taking classes in this subject. Correct me if I’ve gone out into left-field.

---

<div class="post-metadata">

**Author:** ![JS\_Princeton](https://avatars.discourse-cdn.com/v4/letter/j/57b2e6/32.png) [@JS\_Princeton](https://boards.straightdope.com/u/JS_Princeton)\
**Post date:** [June 6, 2002, 6:58pm UTC](https://boards.straightdope.com/t/are-there-any-mathematical-functions-beside/112491/45 "2002-06-06T18:58:18Z")

</div>

Actually, I believe it’s the whole numbers (natural numbers and zero) that’s a group since zero is the additive identity. A thousand apologies.

---

<div class="post-metadata">

**Author:** ![Newton\_meter](https://avatars.discourse-cdn.com/v4/letter/n/57b2e6/32.png) [@Newton\_meter](https://boards.straightdope.com/u/Newton_meter)\
**Post date:** [June 6, 2002, 7:03pm UTC](https://boards.straightdope.com/t/are-there-any-mathematical-functions-beside/112491/46 "2002-06-06T19:03:41Z")

</div>

> [@](#):
>
> \*Originally posted by JS Princeton \*  
> **Actually, I believe it’s the whole numbers (natural numbers and zero) that’s a group since zero is the additive identity. A thousand apologies.**

Computer Scientists of my ilk generally consider zero as a natural number. Pretend that’s what you meant.

---

<div class="post-metadata">

**Author:** ![ultrafilter](https://avatars.discourse-cdn.com/v4/letter/u/3d9bf3/32.png) [@ultrafilter](https://boards.straightdope.com/u/ultrafilter)\
**Post date:** [June 6, 2002, 7:44pm UTC](https://boards.straightdope.com/t/are-there-any-mathematical-functions-beside/112491/47 "2002-06-06T19:44:27Z")

</div>

> [@](#):
>
> \*Originally posted by DrMatrix \*  
> **What exactly is the difference between an operator and a function? How is a uniary operator different from a function? I don’t see the difference. I see no difference between a binary operator on R and a function from R x R into R. For that matter, the differential operator is just a function whose domain is certain well-behaved functins and whose range is functions. Function, operator, transformation – they all look the same to me. What is the techinical distinction?**

Operators, in the formal sense, are mappings between function spaces–see [here](http://mathworld.wolfram.com/Operator.html). I don’t think that addition on the naturals is formally an operator, but hey, whatever.

> [@](#):
>
> _Originally posted by erislover_  
> **I don’t think so. 2\*3 asks “what is the result of 2+2+2”? Unless you feel that “2+2+2” involves iteration. In which case iteration doesn’t come from multiplication, but from a certain method of expressing addition.**

2 \* 3 doesn’t have to mean that, though. That’s just the recursive framework that we’re all familiar with. I’m not sure what multiplication would look like in an iterative setting, but I’m pretty sure it would look different.

> [@](#):
>
> _Originally posted by Newton Meter_  
> **Computer Scientists of my ilk generally consider zero as a natural number. Pretend that’s what you meant.**

The guy I had for computation theory didn’t. I didn’t know he was in the minority.

---

<div class="post-metadata">

**Author:** ![ultrafilter](https://avatars.discourse-cdn.com/v4/letter/u/3d9bf3/32.png) [@ultrafilter](https://boards.straightdope.com/u/ultrafilter)\
**Post date:** [June 6, 2002, 7:57pm UTC](https://boards.straightdope.com/t/are-there-any-mathematical-functions-beside/112491/48 "2002-06-06T19:57:15Z")

</div>

> [@](#):
>
> \*Originally posted by JS Princeton \*  
> **If we are to assume we’re dealing with a set of Real Numbers, then we can begin to behave a bit less humorously. If the question is, can we define finite piecewise operators to map the set of real numbers to itself (or a subset of itself) using simply addition and multiplication the answer is no (since the real numbers are not a group). However, for the set of natural numbers, the answer is yes (since the natural numbers are a group). Also, you may note that multiplication and addition don’t have to be related, but you have to include a concept of numerating your iterations in your reconstructed, piecewise operation if you want to define some relation (in other words, a three has to represent three members of the set as well as the element “3”). This is not a trivial problem, and I actually know of no solution (this is perhaps due to the fact that I have never taken a set-theory course). It really hasn’t bothered me that much, but it may come back to haunt me in the future.**

Although I’m not 100% certain how it affects your argument, the real numbers are a group under addition, at least according to [the standard definition](http://mathworld.wolfram.com/Group.html)–we do agree on that, right? If not, what do you mean when you say “group”?

---

<div class="post-metadata">

**Author:** ![Jabba](https://avatars.discourse-cdn.com/v4/letter/j/b5e925/32.png) [@Jabba](https://boards.straightdope.com/u/Jabba)\
**Post date:** [June 6, 2002, 9:30pm UTC](https://boards.straightdope.com/t/are-there-any-mathematical-functions-beside/112491/49 "2002-06-06T21:30:11Z")

</div>

Neither the set of positive integers nor the set of non-negative integers forms a group under addition: elements do not have additive inverses in those sets.

---

<div class="post-metadata">

**Author:** ![Allen\_Parine](https://avatars.discourse-cdn.com/v4/letter/a/57b2e6/32.png) [@Allen\_Parine](https://boards.straightdope.com/u/Allen_Parine)\
**Post date:** [June 7, 2002, 2:31pm UTC](https://boards.straightdope.com/t/are-there-any-mathematical-functions-beside/112491/50 "2002-06-07T14:31:57Z")

</div>

> [@](#):
>
> _Originally posted by erislover_  
> I don’t think so. 2\*3 asks “what is the result of 2+2+2”? Unless you feel that “2+2+2” involves iteration. In which case iteration doesn’t come from multiplication, but from a certain method of expressing addition.

Right, but to define \* in terms of + _in general_ requires recursion. You can define m_3 as m+m+m, but then you haven’t defined , you’ve defined a unary postfix operator 3. You still don’t know what m4 is unless you define another unary postfix operator so that m4 = m+m+m+m. But using recursion, we can say m_0 = m and m\*(n+1) = m\*n + m, thus defining \* for all nonnegative integers.

---

<div class="post-metadata">

**Author:** ![erislover](https://avatars.discourse-cdn.com/v4/letter/e/71e660/32.png) [@erislover](https://boards.straightdope.com/u/erislover)\
**Post date:** [June 7, 2002, 4:03pm UTC](https://boards.straightdope.com/t/are-there-any-mathematical-functions-beside/112491/51 "2002-06-07T16:03:29Z")

</div>

Crap, not another mathworld link. every time someone links there I spend hours reading it, which means that I am backlogged on my SDMB hours, which means my work gets pushed aside. 😛

---

<div class="post-metadata">

**Author:** ![ultrafilter](https://avatars.discourse-cdn.com/v4/letter/u/3d9bf3/32.png) [@ultrafilter](https://boards.straightdope.com/u/ultrafilter)\
**Post date:** [June 8, 2002, 1:58am UTC](https://boards.straightdope.com/t/are-there-any-mathematical-functions-beside/112491/52 "2002-06-08T01:58:43Z")

</div>

> [@](#):
>
> \*Originally posted by erislover \*  
> \*\*Crap, not another mathworld link. every time someone links there I spend hours reading it, which means that I am backlogged on my SDMB hours, which means my work gets pushed aside. 😛 \*\*

Yeah, I know that feeling. Damn site’s addictive.

---

<div class="post-metadata">

**Author:** ![David\_Simmons](https://avatars.discourse-cdn.com/v4/letter/d/9de053/32.png) [@David\_Simmons](https://boards.straightdope.com/u/David_Simmons)\
**Post date:** [June 8, 2002, 5:17am UTC](https://boards.straightdope.com/t/are-there-any-mathematical-functions-beside/112491/53 "2002-06-08T05:17:23Z")

</div>

Some people might claim that the only mathematical operation is counting and all the others are just algorithms to speed up the process.

[Previous page](https://boards.straightdope.com/t/are-there-any-mathematical-functions-beside/112491.md?page=2)
