M HYPE SPLASH
// updates

Is 'clamp' a formally recognized mathematical function?

By Emma Valentine
$\begingroup$

I was surprised to find the clamp function absent from Mathworld and Wikipedia. Is this mainly a concept particular to computer programming? Is it known by another name in mathematics? I'll be editing the Wikipedia shortly to include a reference to this function but I want to make sure I'm not omitting some synonymous terms I'm currently unaware of.

$$ \operatorname{clamp}(x) = \max( a , \min( x , b ) ) \in [a,b] $$

$\endgroup$ 5

2 Answers

$\begingroup$

There's no such thing as a "formally recognized" mathematical function. Some are more well known and widely used, but there is no standard defining what is a recognized function. Yes, $\mathop{\rm clamp}(x)$ is a mathematical function.

$\endgroup$ 4 $\begingroup$

I remember using it in measure theory to show that a function $f : [a,b] \to \mathbb R$ was almost everywhere differentiable. The idea was that the clamp function was used to extend the identity $[a,b] \to [a,b]$ to the whole of $\mathbb R$, and then we could compose the clamp with $f$ to extend $f$ to the reals. This was just the first step of the proof, the clamp function had nothing to do with the rest. But I don't remember giving a name to that function ; I guess it just doesn't have enough importance in theoretical applications. It sounds more like a programmer's function.

Hope that helps,

$\endgroup$

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy