]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
sqrt need std::
authorguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 9 Jul 2002 05:43:53 +0000 (05:43 +0000)
committerguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 9 Jul 2002 05:43:53 +0000 (05:43 +0000)
git-svn-id: https://svn.dealii.org/trunk@6231 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/legendre.cc

index 120e85376d9d63412ff7040bb7f33232fa7b6541..1670bc8b3c1baf7e86702a391bd56c548e41705d 100644 (file)
@@ -102,7 +102,7 @@ Legendre<number>::compute_coefficients (const unsigned int k_)
          Polynomial<number>::scale(*c0, 2.);
          Polynomial<number>::shift(*c1, (long double) -1.);
          Polynomial<number>::scale(*c1, 2.);
-         Polynomial<number>::multiply(*c1, sqrt(3.));
+         Polynomial<number>::multiply(*c1, std::sqrt(3.));
          shifted_coefficients[0]=c0;
          shifted_coefficients[1]=c1;
        }
@@ -144,7 +144,7 @@ Legendre<number>::compute_coefficients (const unsigned int k_)
          ck = new std::vector<number>(*ck);
          shift(*ck,(long double) -1.);
          Polynomial<number>::scale(*ck, 2.);
-         Polynomial<number>::multiply(*ck, sqrt(2.*k+1.));
+         Polynomial<number>::multiply(*ck, std::sqrt(2.*k+1.));
          shifted_coefficients[k] = ck;
        };
     };

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.