]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Forgot to fix one more problem.
authorkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 19 Nov 2009 01:15:06 +0000 (01:15 +0000)
committerkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 19 Nov 2009 01:15:06 +0000 (01:15 +0000)
git-svn-id: https://svn.dealii.org/trunk@20133 0785d39b-7218-0410-832d-ea1e28bc413d

tests/codim_one/integrate_log.cc

index e9a08a341a641765ec868b14975a38bd1ff69c5a..d7a0818516daeeedcaf807c2561a4c852fe8748f 100644 (file)
@@ -160,7 +160,7 @@ int main()
            *(
              pow(b-a,static_cast<int>(k)+1) / (k+1) * log(b-a)
                -
-             pow(b-a,static_cast<int>(k)+1) / pow(k+1, 2)
+             pow(b-a,static_cast<int>(k)+1) / pow(static_cast<double>(k+1), 2)
             ); 
     deallog << "f(x) = x^" << j << std::endl;
     for (unsigned int i=1; i<13; ++i)

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.