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?
Yes. Any binary operation on is simpy a function from . 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.
Yes. Any binary operation on is simpy a function from . 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.
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.
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)?