(function() {
var points = [];
while( points.length < 5 ) {
var point = [ randRange( -9, 9 ), randRangeExclude( -9, 9, [-1] ) ];
var isUnique = true;
$.each( points, function( index, pt ) {
if ( point[0] === pt[0] && point[1] === pt[1] ) {
isUnique = false;
return false;
}
});
if ( isUnique ) {
points.unshift( point );
}
}
return points;
})()
randRange( 0, POINTS.length - 1 )
function( arr ) {
return "(" + arr.join( ", " ) + ")";
}
Consider the following coordinate pairs:
$.map( POINTS, PAIR ).join( "\\qquad" )
Which of those pairs is not graphed below?
graphInit({
range: 10,
scale: 20,
axisArrows: "<->",
tickStep: 1,
labelStep: 2
})
$.each( POINTS, function( index, point ) {
if ( index === FORGOTTEN ) {
return;
}
style({
stroke: "#6495ED",
fill: "#6495ED"
}, function() {
circle( point, 0.15 );
});
});
PAIR( POINTS[FORGOTTEN] )
label( point, PAIR( point ), "above right" );
var point = POINTS[FORGOTTEN];
label( point, PAIR( point ), "above right");
label( point, "\\text{" + $._("was not graphed") + "}", "right" );
circle( point, 0.3, { stroke: "red" } );