Homogeneous polynomial invariants for cubic-homogeneous functions