<problem>
<script type="loncapa/perl">
# Enter computations here
$x1 = random(2,4,1);
$y1 = random(3,7,1);
$x2 = random($x1+1,9,1);
$y2 = random($y1+1,15,1);
$m = "($y2-$y1)/($x2-$x1)";
$b = "$y1-$m*$x1";
$answer = "$m*x+$b";
$answer =~ s/\+-/-/g;
$answer =~ s/-\+/-/g;
</script>
<startouttext />
<p>
What is the equation of the line which passess through ($x1,$y1) and ($x2,$y2)?
</p>
y =
<endouttext />
<formularesponse samples="x@-5:5#11" id="11" answer="$answer">
<textline size="25" />
</formularesponse>
</problem>
hallmat3@msu.edu |