Implement the Softsign activation function, a smooth activation function used in neural networks. Your task is to compute the Softsign value for a given input, ensuring the output is bounded between -1 and 1.
Example:
Input:
softsign(1)
Output:
0.5
Reasoning:
For x = 1, the Softsign activation is calculated as 1+∣x∣x=1+11=21=0.5.