From: kanschat Date: Wed, 12 Sep 2012 08:59:34 +0000 (+0000) Subject: test Hermite interpolation polynomials X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a8daee92bac6f26f8d6c1e6cb32214065c6af1a8;p=dealii-svn.git test Hermite interpolation polynomials git-svn-id: https://svn.dealii.org/trunk@26300 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/base/polynomial_hermite_interpolation.cc b/tests/base/polynomial_hermite_interpolation.cc new file mode 100644 index 0000000000..495638a2b0 --- /dev/null +++ b/tests/base/polynomial_hermite_interpolation.cc @@ -0,0 +1,60 @@ +//----------------------------------------------------------------------------- +// $Id: polynomial_lagrange_product.cc 23959 2011-07-26 12:58:28Z kronbichler $ +// +// Copyright (C) 2012 by the deal.II authors +// +// This file is subject to QPL and may not be distributed +// without copyright and license information. Please refer +// to the file deal.II/doc/license.html for the text and +// further information on this license. +// +//----------------------------------------------------------------------------- + +#include "../tests.h" +#include +#include +#include + +#include +#include + +using namespace Polynomials; + +void plot(const std::vector >& polynomials) +{ + LogStream::Prefix("plot"); + const unsigned int n=8; + for (unsigned int i=0;i<=n;++i) + { + const double x = 1.*i/n; + deallog << x; + for (unsigned int p=0;p >& polynomials) +{ + std::vector values(2); + for (unsigned int i=0;i