| New Reply |
Functions vs. Operations |
Share Thread | Thread Tools |
| Jan25-13, 03:52 PM | #1 |
|
|
Functions vs. Operations
This question is fairly simple: what is the difference between functions and operations. Both seem to have inputs and outputs. Both can input/output scalars, vectors, functions, functionals, etc. I think the sticking point might be mapping, but I'm not sure.
E.g. f=a+b vs. f(x,y)=x+y |
| Jan25-13, 04:12 PM | #2 |
|
|
not sure in what context but in programming operators work with one or two arguments whereas a function can work with none, one, two...n arguments. Both return one object.
|
| Jan25-13, 04:32 PM | #3 |
|
Mentor
|
|
| Jan25-13, 04:34 PM | #4 |
|
Mentor
|
Functions vs. Operations |
| Jan25-13, 06:39 PM | #5 |
|
|
As an aside, if you use Scala (better java than Java) then you have unlimited operators as you can define them yourself. Currently the Scala operator set as the following operators: http://jim-mcbeath.blogspot.com/2008...eat-sheet.html |
| Jan25-13, 10:07 PM | #6 |
|
|
Basic Operations: arithmetic, logical, set Functions: polynomial, transcendental Operators: differential, integral, composition(?) I suppose my question now becomes three-fold. What is the difference between all of these? Operations generally take on a binary or unary form. And I realize that examples of ternary and other n-ary operations are usually only seen in computer science, but in terms of mathematics, why are they distinguished from functions? Functions are defined using operations and operators are defined using functions. The distinction here seems to be a bit clearer, but not entirely: can operators simply be functions of functions (a complicated composition of sorts)? Here is an quote from Wikipedia: "On the set of real numbers R, f(a,b) = a + b is a binary operation since the sum of two real numbers is a real number." Are basic operations a type of function then? And operators another type of function? |
| Jan25-13, 10:55 PM | #7 |
|
|
According to the Oxford Concise Dictionary of Mathematics, these are the definitions of operator, operation and function:
operator: A symbol used to indicate that a mathematical operation is to be performed on one or more quantities. So √ is an operator acting on one quantity, and ∩ is an operator which requires two. operation: An operation on a set S is a rule that associates with some number of elements of S a resulting element. If this resulting element is always also in S, then S is said to be closed under the operation. An operation that associates with one element of S a resulting element is called a *unary operation; one that associates with two elements of S a resulting element is a *binary operation. function: A function f from S to T, where S and T are non-empty sets, is a rule that associates with each element of S (the domain) a unique element of T (the codomain). Thus it is the same thing as a *mapping. The word 'function' tends to be used when the domain S is the set R of real numbers, or some subset of R, and the codomain T is R (see REAL FUNCTION). The notation f: S → T, read as 'f from S to T', is used. If x [itex]\in[/itex] S, then f(x) is the image of x under f. The subset of T consisting of those elements that are images of elements of S under f, that is, the set {y | y = f(x), for some x in S}, is the range of f. If f(x) = y, it is said that f maps x to y, written f: x ? y. If the graph of f is then taken to be y = f(x), it may be said that y is a function of x. When x = a, f(a) is the corresponding value of the function. |
| Jan25-13, 11:09 PM | #8 |
|
|
Wonderful, thank you Best Pokemon. Such concision and clarity should be on Wikipedia.
So operations are performed within the same domain, whereas functions map a domain to a codomain. So, the corresponding difference between a function operator and a function must be that while a function maps a domain to a codomain, the function operator "maps" one relation (a mapping of a domain to a codomain) to another? Could anyone clarify the definition of such an operator? |
| Jan26-13, 12:41 AM | #9 |
|
Mentor
|
Other words have different meanings in different contexts. For example, "linear" in the context of linear equations could refer to a straight line, but "linear" in the context of transformations on vector spaces means something else entirely. The first equation says that a variable f is equal to the sum of two other variables, a and b. The second equation says that f is a function (or map) from the plane (R2) to the reals (R). The domain here is the entire real plane (I'm assuming that all variables are real numbers, something you didn't explicitly state), and the codomain is the entire real line. In these examples, the terms "operator" and "operation" are bit players without much of a role. The more important player is the term "function." |
| Jan26-13, 01:22 AM | #10 |
|
|
So a closer reading of PB's post reveals that both are "rules". Besides that, I found another Wiki article stating: "The familiar binary operations of arithmetic, addition and multiplication, can be viewed as functions from R×R to R. This view is generalized in abstract algebra, where n-ary functions are used to model the operations of arbitrary algebraic structures. For example, an abstract group is defined as a set X and a function f from X×X to X that satisfies certain properties." I feel the answer I am seeking lies deep within abstract algebra... |
| Jan26-13, 02:25 AM | #11 |
|
|
|
| Jan26-13, 03:46 AM | #12 |
|
|
We tend to use the terms 'function' and 'operator' to represent different ideas although the boundaries between the ideas are often blurred into insignificance.
However sometimes we wish to distinguish two (or more) different processes that occur within the same statement so we use operator for one and function for the other, although it could be argued that either could be employed twice. For example consider the difference operator Δxi. This provides an output equal to the difference between values of x in some table of values of x for x= some function of some other variable, that does not appear explicitly in the operand. |
| Jan26-13, 12:57 PM | #13 |
|
Mentor
|
For example, a circle is usually defined as the set of all points that are equidistant from a fixed point. Do we then need to provide definitions of each word used in this definition? If so, do those definitions have to provide definitions of the words used in those definitions? At some point you need to stop, otherwise you have an infinitely long chain of terms and definitions. |
| New Reply |
| Tags |
| functions, operations |
| Thread Tools | |
Similar Threads for: Functions vs. Operations
|
||||
| Thread | Forum | Replies | ||
| Set operations | Calculus & Beyond Homework | 2 | ||
| -ary set operations. | Set Theory, Logic, Probability, Statistics | 11 | ||
| Operations | General Discussion | 22 | ||
| Operations of Functions | Introductory Physics Homework | 6 | ||
| Operations | General Math | 3 | ||