defining a function of functions

*To*: mathgroup at smc.vnet.net*Subject*: [mg110463] defining a function of functions*From*: J Davis <texasautiger at gmail.com>*Date*: Sat, 19 Jun 2010 07:49:15 -0400 (EDT)

I want to define an inner product function such as (here mylist is a specified list and L is a specified constant) innerprod[f_, g_] = Sum[f[k]Conjugate[g[k]]Part[mylist,k],{k,1,L}] This works fine but now I need to apply it in a situation where f is a function of 2 variables while g is a function of only one variable, i.e. I want to compute something like the inner product of f[2,n] and g[n]. Of course, I want the ability to freely vary the first input of f. I have accomplish this before rather easily but I'm presently drawing a blank. Thanks for your help. Best, JD