Contents:
Computes the sigmoid function.
T – The numeric type.
x – The input value.
The sigmoid function result.