Closed cchuang2009 closed 2 years ago
Can you give an example of a specific answer and student answer that are scoring incorrectly?
Here the examples
$anstypes=array("numfunc","calcinterval","numfunc","calcinterval","numfunc","calcinterval","calcinterval","numfunc","numfunc","calcinterval")
$variables="x,n"
$a=rand(2,4) $b=rand(1,4) $c=rand(1,5) $d=rand(1,4) $e=rand(2,9)
$question1=" Consider $a/($b+x)
, expandeded at x=0
, is \sum_{n=0}^oo a_n x^n
."
$answer[0]="$a*(-1)^n/$b^(n+1)" $answer[1]="(-$b,$b)"
$question2=" Consider 1/x
, expandeded at x=$c
, is \sum_{n=0}^oo a_n (x-$c)^n
."
$answer[2]="(-1)^n/$c^(n+1)" $answer[3]="(0,2*$c)"
$question3=" Consider 1/($d+x)^2
, expandeded at x=0
, is \sum_{n=0}^oo a_n x^n
."
$answer[4]="(-1)^n*(n+1)/$d^(n+2)" $answer[5]="(-$d,$d)"
$question4=" Infinite series, (1+x)^p
where p\lt0
, is called binary series,"
$answer[6]="(-1,1)" $answer[7]="n(2*n-2)!"
As well known result:
1/(1-x)=\sum_{n=0}^oo x^n
for |x|<1
.
Consider the following questions:
Note:
the system displays "correct" in answer[2] if input e.
The input is always treated as right one if any factorial operation is included in answer ( in numfunc format). How to solve this problem? Thanks,