Functional equations related to addition theorems