X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=check%2Fpowerlaws.cpp;h=b7fdd60c554ade490f6add40b772126bd12a90a2;hp=e103fed9cf37cb8fafe904de35f8892fc0b8d081;hb=b08505c6c50a4c0310d096cb62774ccd53db7b0a;hpb=6b3768e8c544739ae53321539cb4d1e3112ded1b diff --git a/check/powerlaws.cpp b/check/powerlaws.cpp index e103fed9..b7fdd60c 100644 --- a/check/powerlaws.cpp +++ b/check/powerlaws.cpp @@ -1,10 +1,32 @@ -// check/powerlaws.cpp +/** @file powerlaws.cpp + * + * Tests for power laws. You shouldn't try to draw much inspiration from + * this code, it is a sanity check rather deeply rooted in GiNaC's classes. */ -/* Tests for power laws. You shouldn't try to draw much inspiration from - * this code, it is a sanity check rather deeply rooted in GiNaC's classes. */ +/* + * GiNaC Copyright (C) 1999 Johannes Gutenberg University Mainz, Germany + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ #include +#ifndef NO_GINAC_NAMESPACE +using namespace GiNaC; +#endif // ndef NO_GINAC_NAMESPACE + static unsigned powerlaws1(void) { // (x^a)^b = x^(a*b)