Create BasisFnc.cpp

Short code for learning how calculation of grid energy works