version 1.2, 2007/01/23 21:16:50
|
version 1.3, 2007/05/21 22:11:07
|
Line 1
|
Line 1
|
<problem> |
<problem> |
<script type="loncapa/perl"> |
<script type="loncapa/perl"> |
$a1 = random(-6,6,4); |
$a1 = &random(-6,6,4); |
$a2 = random(-6,6,4); |
$a2 = &random(-6,6,4); |
$n1 = random(3,11,2); |
$n1 = &random(3,11,2); |
$n2 = random(2,10,2); |
$n2 = &random(2,10,2); |
$function = "$a1*cos($n1*x)+$a2*sin($n2*x)"; |
$function = "$a1*cos($n1*x)+$a2*sin($n2*x)"; |
$example=&xmlparse('An example would be <m eval="on">$(sin($n1\cdot x)+cos($n2\cdot x))/\sqrt{2}$</m>'); |
$example=&xmlparse('An example would be <m eval="on">$(sin($n1\cdot x)+cos($n2\cdot x))/\sqrt{2}$</m>'); |
</script> |
</script> |