expandBasisFunction function

Calculate a linear combination of arbitrary basis function