Calculation of the function:

Input function: 
Input X: