Quad equation