Learning Equivariant Functions via Quadratic Forms