* Implementation of GiNaC's initially known functions. */
/*
- * GiNaC Copyright (C) 1999-2008 Johannes Gutenberg University Mainz, Germany
+ * GiNaC Copyright (C) 1999-2009 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
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <vector>
-#include <stdexcept>
-
#include "inifcns.h"
#include "ex.h"
#include "constant.h"
#include "symmetry.h"
#include "utils.h"
+#include <stdexcept>
+#include <vector>
+
namespace GiNaC {
//////////
if (y.is_integer()) {
if (y.is_nonneg_integer()) {
const unsigned N = y.to_int();
- if (N == 0) return _ex0;
+ if (N == 0) return _ex1;
if (N == 1) return x;
ex t = x.expand();
for (unsigned i = 2; i <= N; ++i)