A unified formulation of the construction of variational principles | Synapse