First order jet spaces, namely , are
implemented in the class tangent defined in tangent.hpp. They are compatible with all the floating types.
#include<numerix/tangent.hpp>
using namespace mmx;
void main () {
tangent<double> a (2.0, 3.0);
mmout << "a= " << base (a)
<< " + " << slope (a) << " * x + O(x^2)\n";
} |
© 2010 Grégoire Lecerf
Permission is granted to copy, distribute and/or modify this document
under the terms of the
GNU General Public License. If you
don't have this file, write to the Free Software Foundation, Inc., 59
Temple Place - Suite 330, Boston, MA 02111-1307, USA.