I've seen an equals sign with a small exclamation mark on top being used to say "equals because of data that was given in the problem", for example for a boundary condition or initial value in a differential equation.
A rough picture of what I mean:
!
f(x) = 4
How do I typeset this in LaTeX? I've tried $=^!$ (which doesn't produce the desired result) and looked through the "relations" section of the Comprehensive List of Symbols without success.

amsmath,\stackrelcan be considered obsolete as\oversetdoes the same thing better, because it gives correct spacing with binary operators (like+,\oplus, etc.) and ordinary symbols. – Philippe Goutet Jan 20 '11 at 13:07