code to read data file

the read_file function reads the data from the xls file, develops the
transmission  curve by cubic spline interpolation, finds out the crtical
points and inflecton points to find out the envelope curves and return
them
rootspline function is used to find the roots of each spline