def create_index_cauchy_law(A,B,C,D,E,F):
    """Creates a function that returns the cauchy calculated index

    The cauchy index function is defined as:
    n_complex = A+B/x**2.0+C/x**4.0-1.0j*(D/x+E/x**3.0+F/x**5.0)

    Arg:
        A(float): A parameter of the cauchy function
        B(float): B parameter of the cauchy function
        C(float): C parameter of the cauchy function
        D(float): D parameter of the cauchy function
        E(float): E parameter of the cauchy function
        F(float): F parameter of the cauchy function

    Returns:
        callable: returns the complex index given the wavelength

    Note: as per the rest of this library, meters are used for unit wavelength
    """
    return lambda x: A+B/x**2.0+C/x**4.0-1.0j*(D/x+E/x**3.0+F/x**5.0)