/* Example programs from the book Scientific and Engineering Programming in C++: An Introduction with Advanced Techniques and Examples, Addison-Wesley, 1994. (c) COPYRIGHT INTERNATIONAL BUSINESS MACHINES CORPORATION 1994. ALL RIGHTS RESERVED. See README file for further details. */ template FunctionalAlgebraDataModel::FunctionalAlgebraDataModel( const FunctionalAlgebra& m, const DataModelParameters& v ): parms(v), f(m) { } template FunctionalAlgebraDataModel:: FunctionalAlgebraDataModel(Subscript number_of_variables) : parms(number_of_variables) { } template TaylorCoefficient1d FunctionalAlgebraDataModel::operator()(const T& coordinate) const { // Convert to RallT, evaluate model function, re-convert return reform(f( RallT(coordinate, parms.numElts()) )); }