A cubic generalization of Brahmagupta's identity.