git://www.ginac.de
/
ginac.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lst(0) now works as expected
[ginac.git]
/
check
/
genex.cpp
diff --git
a/check/genex.cpp
b/check/genex.cpp
index 2a5529132a6391d10f0ba298882d0ebdd87c007f..8875ed6c9ecedb0d846c423f3e57d9cdf25ca21b 100644
(file)
--- a/
check/genex.cpp
+++ b/
check/genex.cpp
@@
-4,7
+4,7
@@
* input in the consistency checks. */
/*
* input in the consistency checks. */
/*
- * GiNaC Copyright (C) 1999-200
1
Johannes Gutenberg University Mainz, Germany
+ * GiNaC Copyright (C) 1999-200
3
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
*
* 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
@@
-21,14
+21,10
@@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-// For rand() and friends:
-#include <stdlib.h>
-
+#include <cstdlib>
#include "ginac.h"
#include "ginac.h"
-
-#ifndef NO_NAMESPACE_GINAC
+using namespace std;
using namespace GiNaC;
using namespace GiNaC;
-#endif // ndef NO_NAMESPACE_GINAC
/* Create a dense univariate random polynomial in x.
* (of the form 9 - 22*a - 17*a^2 + 14*a^3 + 7*a^4 + 7a^5 if degree==5) */
/* Create a dense univariate random polynomial in x.
* (of the form 9 - 22*a - 17*a^2 + 14*a^3 + 7*a^4 + 7a^5 if degree==5) */
@@
-155,4
+151,6
@@
sparse_tree(const symbol & x,
} else
return random_symbol(x,y,z,rational,complex);
}
} else
return random_symbol(x,y,z,rational,complex);
}
+
+ return 0;
}
}