def METHOD_NAME(x):
    m = make_cubic_mineral_from_parameters(x)
    chisqr = 0.0
    for d in per_data:
        T, PGPa, Perr, rho, rhoerr = d[:5]
        C11S, C11Serr, C12S, C12Serr, C44S, C44Serr = d[5:]
        P = PGPa * 1.0e9
        m.set_state(P, T)
        chisqr += np.power(
            (m.isentropic_stiffness_tensor[0, 0] / 1.0e9 - C11S) / C11Serr, 2.0
        )
        chisqr += np.power(
            (m.isentropic_stiffness_tensor[0, 1] / 1.0e9 - C12S) / C12Serr, 2.0
        )
        chisqr += np.power(
            (m.isentropic_stiffness_tensor[3, 3] / 1.0e9 - C44S) / C44Serr, 2.0
        )
    print(x)
    print(chisqr)
    return chisqr