Calculates a tensor constrained within a range.