What's the difference between operators and functions?

  • Context: Undergrad 
  • Thread starter Thread starter SW VandeCarr
  • Start date Start date
  • Tags Tags
    Functions Operators
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
5 replies · 2K views
SW VandeCarr
Messages
2,199
Reaction score
77
Is there a fundamental difference between operators and functions?

For example we could have F(x,y)=x+y or we could write SUM(x,y) where SUM is a defined operation in some program. Could operators be considered a particular type of function?
 
Mathematics news on Phys.org
Yes. Any binary operation on [itex]S[/itex] is simpy a function from [itex]S \times S \to S[/itex]. We use infix notation (that is, we write the function in between the operands as in x + y instead of +(x, y) ) out of convenience and familiarity.
 
Moo Of Doom said:
Yes. Any binary operation on [itex]S[/itex] is simpy a function from [itex]S \times S \to S[/itex]. We use infix notation (that is, we write the function in between the operands as in x + y instead of +(x, y) ) out of convenience and familiarity.

Thanks Moo Of Doom. I was pretty sure of this, but math texts usually use these in terms in distinct ways.
 
Last edited:
HallsofIvy said:
Moo of Doom talked about "operations". Your question was about "operators". Generally, an "operator" is a function defined on functions as opposed to functions on numbers.

Then SUM(x,y) would not be read as an operator on (x,y), but rather as an operation on (x,y)?