git://www.ginac.de
/
ginac.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fae800e
)
fix stupid memory problem.
author
Richard Kreckel
<Richard.Kreckel@uni-mainz.de>
Wed, 14 Mar 2001 21:30:16 +0000
(21:30 +0000)
committer
Richard Kreckel
<Richard.Kreckel@uni-mainz.de>
Wed, 14 Mar 2001 21:30:16 +0000
(21:30 +0000)
check/exam_misc.cpp
patch
|
blob
|
history
diff --git
a/check/exam_misc.cpp
b/check/exam_misc.cpp
index 3b2ff8eac6679bb9b3271b5ae1b3d599f55655bc..c9872a93284bce8659586a99ba2afc4d52fc9bba 100644
(file)
--- a/
check/exam_misc.cpp
+++ b/
check/exam_misc.cpp
@@
-27,20
+27,17
@@
static unsigned exam_expand_subs(void)
{
unsigned result = 0;
static unsigned exam_expand_subs(void)
{
unsigned result = 0;
- symbol a1("a1");
symbol a[VECSIZE];
ex e, aux;
symbol a[VECSIZE];
ex e, aux;
- a[1] = a1;
- for (unsigned i=0; i<VECSIZE; ++i) {
+ for (unsigned i=0; i<VECSIZE; ++i)
e = e + a[i];
e = e + a[i];
- }
// prepare aux so it will swallow anything but a1^2:
aux = -e + a[0] + a[1];
e = expand(subs(expand(pow(e, 2)), a[0] == aux));
// prepare aux so it will swallow anything but a1^2:
aux = -e + a[0] + a[1];
e = expand(subs(expand(pow(e, 2)), a[0] == aux));
- if (e != pow(a
1
,2)) {
+ if (e != pow(a
[1]
,2)) {
clog << "Denny Fliegner's quick consistency check erroneously returned "
<< e << "." << endl;
++result;
clog << "Denny Fliegner's quick consistency check erroneously returned "
<< e << "." << endl;
++result;