1500
[ randRange( -9, -1 ), randRange( 1, 9 ) ]
(function() {
var functionPath = [];
var prev;
var push = function( val ) {
prev = val;
functionPath.push( prev );
};
push([ DOMAIN[0], randRange( -5, 5 ) ]);
for( var i = DOMAIN[0]+1; i <= DOMAIN[1]; i++ ) {
if ( abs( randRangeNonZero( -10, 10 ) < 2 ) && prev[1] < 8 ) {
push([i, prev[1]+1]);
} else if ( abs( randRangeNonZero( -10, 10 ) < 2 ) && prev[1] > -8 ) {
push([i, prev[1]-1]);
} else if ( abs( randRangeNonZero( -10, 10 ) < 2 ) && prev[1] < 7 ) {
push([i, prev[1]+2]);
} else if ( abs( randRangeNonZero( -10, 10 ) < 3 ) && prev[1] > -7 ) {
push([i, prev[1]-2]);
} else {
push([i, prev[1]]);
}
}
return functionPath;
})()
(function() {
var values = $.map( FUNCTION_PATH, function( p ) { return p[1]; } );
return [ min.apply( null, values ), max.apply( null, values ) ];
})()
Der Graph der Funktion f
ist dargestellt.
graphInit({
range: 10,
scale: 20,
tickStep: 1,
labelStep: 1,
unityLabels: false,
labelFormat: function( s ) { return "\\small{" + s + "}"; }
});
label( [ -0.5, 9.5 ], "{f(x)}", "left" );
label( [ 9, 0.75 ], "x", "right" );
graph.fn_path = path( FUNCTION_PATH, { stroke: BLUE } );
circle( FUNCTION_PATH[0], 0.15, { stroke: "none", fill: BLUE } );
circle( FUNCTION_PATH[ FUNCTION_PATH.length - 1], 0.15, { stroke: "none", fill: BLUE } );
Was ist der Wertebereich?
untere Grenze:
untere Grenze:
RANGE[0]
obere Grenze:
obere Grenze:
RANGE[1]
Welche Werte nimmt f(x)
auf der y
-Achse an?
Auf der y
-Achse als Zahlengerade sehen wir
var range_path = graph.fn_path.clone();
var tmp_path = path( $.map( FUNCTION_PATH, function( p ) { return [[ 0, p[1] ]]; }), { stroke: "none" } );
range_path.animate( { path: tmp_path.attrs.path, "stroke-width": 4, stroke: GREEN }, ANIM_SPEED, "ease-in-out");
circle( [ 0, RANGE[0] ], 0.3, { stroke: "none", fill: GREEN, "fill-opacity": 0 } )
.animate( { "fill-opacity": 1.0 }, ANIM_SPEED, "ease-in-out" );
circle( [ 0, RANGE[1] ], 0.3, { stroke: "none", fill: GREEN, "fill-opacity": 0 } )
.animate( { "fill-opacity": 1.0 }, ANIM_SPEED, "ease-in-out" );
tmp_path.remove();
den Wertebereich:
RANGE[0]\le x\le RANGE[1]
,
d.h. die untere Grenze ist
RANGE[0]
und die obere Grenze betrÃĪgt
RANGE[1]
.