(lower plot, blue) and
ln (red). The highlighted vertical slice shows the computation at the point
x=2π.
Formal definition A binary operation on a set can be lifted pointwise to an operation on the set of all functions from to as follows: Given two functions and , define the function by Commonly,
o and
O are denoted by the same symbol. A similar definition is used for unary operations
o, and for operations of other
arity.
Examples The pointwise addition f+g of two functions f and g with the same domain and
codomain is defined by: The pointwise product or pointwise multiplication is: The pointwise product with a scalar is usually written with the scalar term first. Thus, when \lambda is a
scalar: An example of an operation on functions which is
not pointwise is
convolution.
Properties Pointwise operations inherit such properties as
associativity,
commutativity and
distributivity from corresponding operations on the
codomain. If A is some
algebraic structure, the set of all functions X to the
carrier set of A can be turned into an algebraic structure of the same type in an analogous way. == Componentwise operations ==