Function squaredChord