version 1.2, 2008/09/25 01:50:47
|
version 1.3, 2009/07/06 17:12:47
|
Line 1
|
Line 1
|
<problem> |
<problem> |
|
|
<script type="loncapa/perl"> |
<script type="loncapa/perl"> |
$x = &random(-1,1,2) * &random(1,5,1); |
$x = &random(-1,1,2) * &random(1,5,1); |
$y = &random(-1,1,2) * &random(1,3,1); |
$y = &random(-1,1,2) * &random(1,3,1); |
Line 19 y(x) =
|
Line 20 y(x) =
|
<endouttext /> |
<endouttext /> |
|
|
<mathresponse answerdisplay="$example" cas="maxima" args="@args"> |
<mathresponse answerdisplay="$example" cas="maxima" args="@args"> |
|
<answer> |
<answer> |
|
y(x):=RESPONSE[1]; |
y(x):=RESPONSE[1]; |
hitspoint:is(abs(y(LONCAPALIST[1]) - LONCAPALIST[2]) <= 0.000000001); |
hitspoint:is(abs(y(LONCAPALIST[1]) - LONCAPALIST[2]) <= 0.000000001); |
islinear:is(diff(y(x),x,2) = 0); |
islinear:is(diff(y(x),x,2) = 0); |
hitspoint and islinear; |
hitspoint and islinear; |
</answer> |
</answer> |
|
<textline readonly="no" size="50" /> |
<textline readonly="no" size="50" /> |
|
</mathresponse> |
</mathresponse> |
|
|
</problem> |
</problem> |
|
|