Applies gamma correction to a given value within a specified range.
the gamma corrected value
the maximum absolute value allowed in the input range
the gamma value for correction