Add function to calculate LP distance between two functions defined over different domains.