Skip to content

AddConst: Answer test results

This page exposes the results of running answer tests on STACK test cases. This page is automatically generated from the STACK unit tests and is designed to show question authors what answer tests actually do. This includes cases where answer tests currentl fail, which gives a negative expected mark. Comments and further test cases are very welcome.

AddConst

Test
?
Student response
Teacher answer
Opt
Mark
Answer note
AddConst
1/0
1
-1 STACKERROR_OPTION.
TEST_FAILED
The answer test failed to execute correctly: please alert your teacher. Missing option when executing the test.
AddConst
x^3/3
x^3/3
-1 STACKERROR_OPTION.
TEST_FAILED
The answer test failed to execute correctly: please alert your teacher. Missing option when executing the test.
AddConst
x^3/3
x^3/3
[[x]]
-1 ATAddConst_Opt.
The answer test failed to execute correctly: please alert your teacher. There is something wrong with the options given to the AddConst answer test.
AddConst
x^3/3
x^3/3
x^2
-1 ATAddConst_Opt.
The answer test failed to execute correctly: please alert your teacher. There is something wrong with the options given to the AddConst answer test.
AddConst
x^3/3
x^3/3
x^3/3
-1 ATAddConst_Opt.
The answer test failed to execute correctly: please alert your teacher. There is something wrong with the options given to the AddConst answer test.
AddConst
x^3/3
x^3/3
0
-1 ATAddConst_Opt.
The answer test failed to execute correctly: please alert your teacher. There is something wrong with the options given to the AddConst answer test.
AddConst
1/0
1
x
-1 ATAddConst_STACKERROR_SAns.
AddConst
0
0
1/0
-1 ATAddConst_STACKERROR_Opt.
AddConst
0
0
[x,1/0]
-1 ATAddConst_STACKERROR_Opt.
AddConst
0
0
[x,NOCONST,1/0]
-1 ATAddConst_STACKERROR_Opt.
Basic tests
AddConst
x^3/3
x^3/3
x
0 ATAddConst_noconst.
You need to add a constant. This should be an arbitrary constant, not a number.
AddConst
x^3/3
x^3/3
[x]
0 ATAddConst_noconst.
You need to add a constant. This should be an arbitrary constant, not a number.
AddConst
x^3/3
x^3/3
aaa
0 ATAddConst_generic.
You included an additional constant, but you didn't simply add it!
AddConst
x^3/3+1
x^3/3
x
0 ATAddConst_noconst.
You need to add a constant. This should be an arbitrary constant, not a number.
AddConst
x^3/3+c
x^3/3
x
1 ATAddConst_true.
AddConst
x^3/3-c
x^3/3
x
0 ATAddConst_generic.
You included an additional constant, but you didn't simply add it!
AddConst
x^3/3+c
x^3/3
c
0 ATAddConst_generic.
You included an additional constant, but you didn't simply add it!
AddConst
x^3/3+c+1
x^3/3
x
1 ATAddConst_true.
AddConst
x^3/3+3*c
x^3/3
x
0 ATAddConst_generic.
You included an additional constant, but you didn't simply add it!
AddConst
(x^3+c)/3
x^3/3
x
0 ATAddConst_generic.
You included an additional constant, but you didn't simply add it!
AddConst
exp(x)+c
exp(x)
x
1 ATAddConst_true.
AddConst
exp(x)
exp(x)
x
0 ATAddConst_noconst.
You need to add a constant. This should be an arbitrary constant, not a number.
Several variables
AddConst
x^(k+1)/(k+1)
x^(k+1)/(k+1)
x
0 ATAddConst_generic.
You included an additional constant, but you didn't simply add it!
AddConst
x^(k+1)/(k+1)
x^(k+1)/(k+1)
[x,k]
0 ATAddConst_noconst.
You need to add a constant. This should be an arbitrary constant, not a number.
AddConst
x^(k+1)/(k+1)+c
x^(k+1)/(k+1)
x
0 ATAddConst_severalconst.
Several additional constants have been found instead of just one constant of integration!
AddConst
x^(k+1)/(k+1)+c
x^(k+1)/(k+1)
[x,k]
1 ATAddConst_true.
AddConst
x^(k+1)/(k+1)+c
x^(k+1)/(k+1)
[x,c]
0 ATAddConst_generic.
You included an additional constant, but you didn't simply add it!
AddConst
x^3/3+c+k
x^3/3
x
0 ATAddConst_severalconst.
Several additional constants have been found instead of just one constant of integration!
AddConst
n*x^n
n*x^(n-1)
x
0 ATAddConst_generic.
You included an additional constant, but you didn't simply add it!
AddConst
n*x^n
n*x^(n-1)
n
0 ATAddConst_generic.
You included an additional constant, but you didn't simply add it!
AddConst
n*x^n
(assume(n>0), n*x^(n-1))
[x,n]
0 ATAddConst_noconst.
You need to add a constant. This should be an arbitrary constant, not a number.
Strange constants
AddConst
x^3/3+c^2
x^3/3
x
0 ATAddConst_generic.
You included an additional constant, but you didn't simply add it!
AddConst
x^3/3+c^2
x^3/3
[x,c]
0 ATAddConst_noconst.
You need to add a constant. This should be an arbitrary constant, not a number.
AddConst
x^3/3+c^3
x^3/3
x
0 ATAddConst_generic.
You included an additional constant, but you didn't simply add it!
AddConst
x^3/3*c
x^3/3
x
0 ATAddConst_generic.
You included an additional constant, but you didn't simply add it!
AddConst
X^3/3+c
x^3/3
x
0 ATAddConst_severalconst.
Several additional constants have been found instead of just one constant of integration!
AddConst
sin(2*x)
x^3/3
x
0 ATAddConst_noconst.
You need to add a constant. This should be an arbitrary constant, not a number.
AddConst
x^2/2-2*x+2+c
(x-2)^2/2
x
1 ATAddConst_true.
Different variable names
AddConst
(t-1)^5/5+c
(t-1)^5/5
t
1 ATAddConst_true.
AddConst
(t-1)^5/5+c
(t-1)^5/5
x
0 ATAddConst_severalconst.
Several additional constants have been found instead of just one constant of integration!
AddConst
(v-1)^5/5+c
(v-1)^5/5
v
1 ATAddConst_true.
AddConst
cos(2*x)/2+1+c
cos(2*x)/2
x
1 ATAddConst_true.
AddConst
(x-a)^6001/6001+c
(x-a)^6001/6001
x
0 ATAddConst_severalconst.
Several additional constants have been found instead of just one constant of integration!
AddConst
(x-a)^6001/6001+c
(x-a)^6001/6001
[x,a]
1 ATAddConst_true.
AddConst
(x-a)^6001/6001
(x-a)^6001/6001
x
0 ATAddConst_generic.
You included an additional constant, but you didn't simply add it!
AddConst
(x-a)^6001/6001
(x-a)^6001/6001
[x,a]
0 ATAddConst_noconst.
You need to add a constant. This should be an arbitrary constant, not a number.
AddConst
4*%e^(4*x)/(%e^(4*x)+1)
log(%e^(4*x)+1)+c
x
0 ATAddConst_noconst.
You need to add a constant. This should be an arbitrary constant, not a number.
AddConst
x^2/2-2*x+2+c
(x-2)^2/2+k
x
1 ATAddConst_true.
Logarithms
AddConst
ln(x)
ln(x)
x
0 ATAddConst_noconst.
You need to add a constant. This should be an arbitrary constant, not a number.
AddConst
ln(x)+c
ln(x)+c
x
1 ATAddConst_true.
AddConst
ln(k*x)
ln(x)+c
x
0 ATAddConst_generic.
You included an additional constant, but you didn't simply add it!
AddConst
ln(abs(x))
ln(abs(x))+c
x
0 ATAddConst_noconst.
You need to add a constant. This should be an arbitrary constant, not a number.
AddConst
ln(abs(x))+c
ln(abs(x))+c
x
1 ATAddConst_true.
AddConst
ln(k*abs(x))
ln(abs(x))+c
x
0 ATAddConst_generic.
You included an additional constant, but you didn't simply add it!
AddConst
ln(abs(k*x))
ln(abs(x))+c
x
0 ATAddConst_generic.
You included an additional constant, but you didn't simply add it!
AddConst
ln(x)+ln(a)
ln(k*abs(x+a))
x
0 ATAddConst_generic.
You included an additional constant, but you didn't simply add it!
AddConst
log(x)^2-2*log(c)*log(x)+k
ln(c/x)^2
x
0 ATAddConst_severalconst.
Several additional constants have been found instead of just one constant of integration!
AddConst
log(x)^2-2*log(c)*log(x)+k
ln(c/x)^2
[x,c]
1 ATAddConst_true.
AddConst
c-(log(2)-log(x))^2/2
-1/2*log(2/x)^2
x
1 ATAddConst_true.
AddConst
ln(abs(x+3))/2+c
ln(abs(2*x+6))/2+c
x
1 ATAddConst_true.
AddConst
ln(x*exp(c))
ln(x)
x
1 ATAddConst_true.
AddConst
ln(x^2*exp(c))
ln(x)
x
1 ATAddConst_true.
AddConst
ln(2*x*exp(c))
ln(x)
x
1 ATAddConst_true.
AddConst
ln(x*exp(c))+k
ln(x)
x
0 ATAddConst_severalconst.
Several additional constants have been found instead of just one constant of integration!
AddConst
ln(x*exp(c))+k
ln(x)
[x,c]
1 ATAddConst_true.
AddConst
ln(x*exp(c))+k
ln(x)
[x,k]
1 ATAddConst_true.
AddConst
ln(x*exp(c))+k
ln(x)
[x,c,k]
0 ATAddConst_noconst.
You need to add a constant. This should be an arbitrary constant, not a number.
Testing the NONSTRICT option. All "true" examples return ATAddConst_generic instead.
AddConst
exp(x)+c
exp(x)
[x, NONSTRICT]
1 ATAddConst_true.
AddConst
exp(x)+c
exp(x)
[NONSTRICT,x]
1 ATAddConst_true.
AddConst
x^3/3+3*c
x^3/3
[x, NONSTRICT]
1 ATAddConst_true.
AddConst
x^3/3+3*c
x^3/3
[NONSTRICT, x]
1 ATAddConst_true.
AddConst
(x^3+c)/3
x^3/3
[x, NONSTRICT]
1 ATAddConst_true.
AddConst
(x^3+c)/3
x^3/3
[NONSTRICT, x]
1 ATAddConst_true.
AddConst
x^3/3+c^3
x^3/3
[x, NONSTRICT]
1 ATAddConst_true.
AddConst
x^3/3+c^3
x^3/3
[NONSTRICT, x]
1 ATAddConst_true.
AddConst
x^3/3*c
x^3/3
[x, NONSTRICT]
0 ATAddConst_generic.
You included an additional constant, but you didn't simply add it!
AddConst
x^3/3*c
x^3/3
[NONSTRICT, x]
0 ATAddConst_generic.
You included an additional constant, but you didn't simply add it!
AddConst
x^(k+1)/(k+1)+c
x^(k+1)/(k+1)
[x,c,NONSTRICT]
0 ATAddConst_generic.
You included an additional constant, but you didn't simply add it!
AddConst
x^(k+1)/(k+1)+c
x^(k+1)/(k+1)
[x,NONSTRICT,c]
0 ATAddConst_generic.
You included an additional constant, but you didn't simply add it!
AddConst
x^(k+1)/(k+1)+c
x^(k+1)/(k+1)
[NONSTRICT,x,c]
0 ATAddConst_generic.
You included an additional constant, but you didn't simply add it!
AddConst
ln(k*abs(x))
ln(abs(x))+c
[x, NONSTRICT]
1 ATAddConst_true.
AddConst
ln(abs(k*x))
ln(abs(x))+c
[x, NONSTRICT]
1 ATAddConst_true.
AddConst
ln(x)+ln(a)
ln(k*abs(x+a))
[x, NONSTRICT]
1 ATAddConst_true.
AddConst
ln(k*abs(x))
ln(abs(x))+c
[NONSTRICT, x]
1 ATAddConst_true.
AddConst
ln(abs(k*x))
ln(abs(x))+c
[NONSTRICT, x]
1 ATAddConst_true.
AddConst
ln(x)+ln(a)
ln(k*abs(x+a))
[NONSTRICT, x]
1 ATAddConst_true.
Some more complicated expressions
AddConst
ln(x^2+7*x+7)
ln(x^2+7*x+7)
x
0 ATAddConst_noconst.
You need to add a constant. This should be an arbitrary constant, not a number.
AddConst
-2*log(x)-(10*x^6)/3+x^3/3+5*l
og(x^4)+c
-2*log(abs(x))+(10*x^6)/3-x^3/
3-5/x^3+c
x
1 ATAddConst_true.
AddConst
ln(abs(x^2+7*x+7))+c
ln(abs(x^2+7*x+7))+c
x
1 ATAddConst_true.
AddConst
ln(k*abs(x^2+7*x+7))
ln(abs(x^2+7*x+7))+c
x
0 ATAddConst_generic.
You included an additional constant, but you didn't simply add it!
AddConst
log(abs(x-3))+log(abs(x+3))
log(abs(x-3))+log(abs(x+3))
x
0 ATAddConst_noconst.
You need to add a constant. This should be an arbitrary constant, not a number.
AddConst
log(abs(x-3))+log(abs(x+3))+c
log(abs(x-3))+log(abs(x+3))
x
1 ATAddConst_true.
AddConst
2*log(abs(x-2))-log(abs(x+2))+
(x^2+4*x)/2
-log(abs(x+2))+2*log(abs(x-2))
+(x^2+4*x)/2+c
x
0 ATAddConst_noconst.
You need to add a constant. This should be an arbitrary constant, not a number.
AddConst
-log(abs(x+2))+2*log(abs(x-2))
+(x^2+4*x)/2+c
-log(abs(x+2))+2*log(abs(x-2))
+(x^2+4*x)/2+c
x
1 ATAddConst_true.
AddConst
4*x*cos(x^12/%pi)+c
x*cos(x^12/%pi)+c
x
1 ATAddConst_true.
AddConst
4*x*cos(x^50/%pi)+c
x*cos(x^12/%pi)+c
x
1 ATAddConst_true.
AddConst
log(x-3)/6-log(x+3)/6+c
log(x-3)/6-log(x+3)/6
x
1 ATAddConst_true.
AddConst
asinh(x)
ln(x+sqrt(x^2+1))
x
0 ATAddConst_noconst.
You need to add a constant. This should be an arbitrary constant, not a number.
AddConst
asinh(x)+c
ln(x+sqrt(x^2+1))
x
1 ATAddConst_true.
AddConst
-acoth(x/3)/3
log(x-3)/6-log(x+3)/6
x
0 ATAddConst_noconst.
You need to add a constant. This should be an arbitrary constant, not a number.
AddConst
-acoth(x/3)/3+c
log(x-3)/6-log(x+3)/6
x
1 ATAddConst_true.
AddConst
log(x-a)/(2*a)-log(x+a)/(2*a)+
c
log(x-a)/(2*a)-log(x+a)/(2*a)
x
0 ATAddConst_severalconst.
Several additional constants have been found instead of just one constant of integration!
AddConst
log(x-a)/(2*a)-log(x+a)/(2*a)+
c
log(x-a)/(2*a)-log(x+a)/(2*a)
[x,a]
1 ATAddConst_true.
AddConst
-acoth(x/a)/a+c
log(x-a)/(2*a)-log(x+a)/(2*a)
[x,a]
1 ATAddConst_true.