Inner Product For Functions