def print_parameters(parameters):
    """
    Print parameters of sines in a nice format:

    y_intercept
    amplitude1 frequency1 phase1
    amplitude2 frequency2 phase2
    amplitude3 frequency3 phase3
    ...

    Parameters
    ----------
    parameters : ndarray
        y0, amplitude1, frequency1, phase1, amplitude2, frequency2, phase2, ...
    """
    fmt = '{0:16.10f}'
    print(fmt.format(parameters[0]))
    fmt += ' {1:16.10f} {2:16.10f}'
    for i, par in enumerate(parameters[1:].reshape(-1, 3)):
        print(fmt.format(*par))
