{{ tocSubheader }}
| {{ 'ml-lesson-number-slides' | message : article.intro.bblockCount }} |
| {{ 'ml-lesson-number-exercises' | message : article.intro.exerciseCount }} |
| {{ 'ml-lesson-time-estimation' | message }} |
Appe (Diskussion | bidrag) | Karin.hedin@osteraker.se (Diskussion | bidrag) | ||
Rad 24: | Rad 24: | ||
ready=false; | ready=false; | ||
b.hide(travel); | b.hide(travel); | ||
− | |||
b.changeText(funktion,'f(x)=x+3'); | b.changeText(funktion,'f(x)=x+3'); | ||
b.changeText(xbox,strings['x']); | b.changeText(xbox,strings['x']); | ||
b.changeText(travel,strings['x']); | b.changeText(travel,strings['x']); | ||
travel.setAttribute({color:'blue'}); | travel.setAttribute({color:'blue'}); | ||
− | setTimeout(function(){b. | + | setTimeout(function(){b.show(travel);b.moveAlong(travel,[[0.5,0.63],[1.9,0.63]],1500);},1000); |
− | setTimeout(function(){b. | + | setTimeout(function(){b.hide(travel,200); |
fatPoint1.moveTo([2.1,1.2]); | fatPoint1.moveTo([2.1,1.2]); | ||
fatPoint2.moveTo([2.1,0.1]); | fatPoint2.moveTo([2.1,0.1]); | ||
Rad 37: | Rad 36: | ||
setTimeout(function() {b.changeText(funktion,'f('+strings['x']+')=x+3');b.changeLetter(funktion,3,'color','blue');}, 3000); | setTimeout(function() {b.changeText(funktion,'f('+strings['x']+')=x+3');b.changeLetter(funktion,3,'color','blue');}, 3000); | ||
setTimeout(function() {b.changeText(funktion,'f('+strings['x']+')='+strings['x']+'+3');b.changeLetter(funktion,[3,6],'color','blue');}, 3400); | setTimeout(function() {b.changeText(funktion,'f('+strings['x']+')='+strings['x']+'+3');b.changeLetter(funktion,[3,6],'color','blue');}, 3400); | ||
− | setTimeout(function(){fatPoint1.moveTo([2.1,1.1]);fatPoint2.moveTo([2.1,0.2]);b.changeText(travel,strings['y']);travel.setAttribute({color:'black'});travel.moveTo([5,0.6]);b. | + | setTimeout(function(){fatPoint1.moveTo([2.1,1.1]);fatPoint2.moveTo([2.1,0.2]);b.changeText(travel,strings['y']);travel.setAttribute({color:'black'});travel.moveTo([5,0.6]);b.show(travel);b.moveAlong(travel,[[5,0.63],[6.5,0.63]],1500);},4100); |
setTimeout(function(){ready=true;}, 4500); | setTimeout(function(){ready=true;}, 4500); | ||
} | } |
Omvandlingsregeln här kan tolkas i ord som "addera 3". Utvärdet y bildas alltså genom att addera 3 till invärdet x. Paret av x och y kan tolkas som en punkt. Genom att räkna ut flera sådana punkter som funktionen bildar och sätta ut punkterna i ett koordinatsystem kan funktionen illustreras grafiskt. För att en regel ska få kallas en funktion får varje x som mest ge ett y-värde. Däremot får samma y-värde återkomma för flera olika x.