{{ tocSubheader }}
| {{ 'ml-lesson-number-slides' | message : article.intro.bblockCount}} |
| {{ 'ml-lesson-number-exercises' | message : article.intro.exerciseCount}} |
| {{ 'ml-lesson-time-estimation' | message }} |
Estellecapor1@gmail.com (Diskussion | bidrag) | Estellecapor1@gmail.com (Diskussion | bidrag) (Den här versionen är märkt för översättning) | ||
Rad 43: | Rad 43: | ||
//graph.updateCurve(); | //graph.updateCurve(); | ||
− | var flyttaMig = b.textA(-1.5,0.75,'<translate>Drag mig!</translate>',{anchor:p1}); | + | var flyttaMig = b.textA(-1.5,0.75,'<translate><!--T:36--> Drag mig!</translate>',{anchor:p1}); |
− | var flyttaMig2 = b.textA(0,-1,'<translate>Drag mig!</translate>',{anchor:p2}); | + | var flyttaMig2 = b.textA(0,-1,'<translate><!--T:37--> Drag mig!</translate>',{anchor:p2}); |
− | var calc = b.textA(9,10,'<translate>Två nollställen</translate>',{flag:true, fontsize:1.1}); | + | var calc = b.textA(9,10,'<translate><!--T:38--> Två nollställen</translate>',{flag:true, fontsize:1.1}); |
$(b.getId(calc)).css({ | $(b.getId(calc)).css({ | ||
Rad 96: | Rad 96: | ||
if (Math.abs(p2.Y()) < 0.25) { | if (Math.abs(p2.Y()) < 0.25) { | ||
− | b.changeText(calc, '<translate>Ett nollställe</translate>'); | + | b.changeText(calc, '<translate><!--T:39--> Ett nollställe</translate>'); |
b.hide([p3,p4]); | b.hide([p3,p4]); | ||
p2.moveTo([p2.X(), 0]); | p2.moveTo([p2.X(), 0]); | ||
Rad 111: | Rad 111: | ||
p2.setAttribute({fillcolor:mlg.blue}); | p2.setAttribute({fillcolor:mlg.blue}); | ||
if (p1.Y() > p2.Y()) { | if (p1.Y() > p2.Y()) { | ||
− | b.changeText(calc, '<translate>Två nollställen</translate>'); | + | b.changeText(calc, '<translate><!--T:40--> Två nollställen</translate>'); |
xdist = Math.sqrt(-p2.Y() * Math.pow(p1.X() - p2.X(), 2) / (p1.Y() - p2.Y())); | xdist = Math.sqrt(-p2.Y() * Math.pow(p1.X() - p2.X(), 2) / (p1.Y() - p2.Y())); | ||
p3.moveTo([p2.X() + xdist, 0]); | p3.moveTo([p2.X() + xdist, 0]); | ||
Rad 118: | Rad 118: | ||
} | } | ||
else { | else { | ||
− | b.changeText(calc, '<translate>Inga nollställen</translate>'); | + | b.changeText(calc, '<translate><!--T:41--> Inga nollställen</translate>'); |
b.hide([p3,p4]); | b.hide([p3,p4]); | ||
} | } | ||
Rad 125: | Rad 125: | ||
p2.setAttribute({fillcolor:mlg.blue}); | p2.setAttribute({fillcolor:mlg.blue}); | ||
if (p1.Y() < p2.Y()) { | if (p1.Y() < p2.Y()) { | ||
− | b.changeText(calc,'<translate>Två nollställen</translate>'); | + | b.changeText(calc,'<translate><!--T:42--> Två nollställen</translate>'); |
xdist = Math.sqrt(-p2.Y() * Math.pow(p1.X() - p2.X(), 2) / (p1.Y() - p2.Y())); | xdist = Math.sqrt(-p2.Y() * Math.pow(p1.X() - p2.X(), 2) / (p1.Y() - p2.Y())); | ||
p3.moveTo([p2.X() + xdist, 0]); | p3.moveTo([p2.X() + xdist, 0]); | ||
Rad 132: | Rad 132: | ||
} | } | ||
else { | else { | ||
− | b.changeText(calc, '<translate>Inga nollställen</translate>'); | + | b.changeText(calc, '<translate><!--T:43--> Inga nollställen</translate>'); |
b.hide([p3,p4]); | b.hide([p3,p4]); | ||
} | } | ||
Rad 138: | Rad 138: | ||
else { | else { | ||
p2.setAttribute({fillcolor:mlg.blue}); | p2.setAttribute({fillcolor:mlg.blue}); | ||
− | b.changeText(calc,'<translate>Inga nollställen</translate>'); | + | b.changeText(calc,'<translate><!--T:44--> Inga nollställen</translate>'); |
} | } | ||
}); | }); | ||
Rad 185: | Rad 185: | ||
if (Math.round(p2.Y()*5)/5 == 0) { | if (Math.round(p2.Y()*5)/5 == 0) { | ||
− | b.changeText(calc,'<translate>Ett nollställe</translate>'); | + | b.changeText(calc,'<translate><!--T:45--> Ett nollställe</translate>'); |
b.hide([p3,p4]); | b.hide([p3,p4]); | ||
} | } | ||
else if (p2.Y() < 0) { | else if (p2.Y() < 0) { | ||
if (p1.Y() > p2.Y()) { | if (p1.Y() > p2.Y()) { | ||
− | b.changeText(calc,'<translate>Två nollställen</translate>'); | + | b.changeText(calc,'<translate><!--T:46--> Två nollställen</translate>'); |
xdist = Math.sqrt(-p2.Y() * Math.pow(p1.X() - p2.X(), 2) / (p1.Y() - p2.Y())); | xdist = Math.sqrt(-p2.Y() * Math.pow(p1.X() - p2.X(), 2) / (p1.Y() - p2.Y())); | ||
p3.moveTo([p2.X() + xdist, 0]); | p3.moveTo([p2.X() + xdist, 0]); | ||
Rad 197: | Rad 197: | ||
} | } | ||
else { | else { | ||
− | b.changeText(calc,'<translate>Inga nollställen</translate>'); | + | b.changeText(calc,'<translate><!--T:47--> Inga nollställen</translate>'); |
b.hide([p3,p4]); | b.hide([p3,p4]); | ||
} | } | ||
Rad 203: | Rad 203: | ||
else if (p2.Y() > 0) { | else if (p2.Y() > 0) { | ||
if (p1.Y() < p2.Y()) { | if (p1.Y() < p2.Y()) { | ||
− | b.changeText(calc,'<translate>Två nollställen</translate>'); | + | b.changeText(calc,'<translate><!--T:48--> Två nollställen</translate>'); |
xdist = Math.sqrt(-p2.Y() * Math.pow(p1.X() - p2.X(), 2) / (p1.Y() - p2.Y())); | xdist = Math.sqrt(-p2.Y() * Math.pow(p1.X() - p2.X(), 2) / (p1.Y() - p2.Y())); | ||
p3.moveTo([p2.X() + xdist, 0]); | p3.moveTo([p2.X() + xdist, 0]); | ||
Rad 253: | Rad 253: | ||
p4.moveTo([p2.X() - xdist, 0]); | p4.moveTo([p2.X() - xdist, 0]); | ||
b.show([p3,p4]); | b.show([p3,p4]); | ||
− | b.changeText(calc, '<translate>Två nollställen</translate>'); | + | b.changeText(calc, '<translate><!--T:49--> Två nollställen</translate>'); |
}); | }); | ||
Rad 271: | Rad 271: | ||
p2.moveTo([randX2,0]); | p2.moveTo([randX2,0]); | ||
b.hide([p3,p4]); | b.hide([p3,p4]); | ||
− | b.changeText(calc, '<translate>Ett nollställe</translate>'); | + | b.changeText(calc, '<translate><!--T:50--> Ett nollställe</translate>'); |
}); | }); | ||
Rad 291: | Rad 291: | ||
p2.moveTo([randX2,randY2]); | p2.moveTo([randX2,randY2]); | ||
b.hide([p3,p4]); | b.hide([p3,p4]); | ||
− | b.changeText(calc, '<translate>Inga nollställen</translate>'); | + | b.changeText(calc, '<translate><!--T:51--> Inga nollställen</translate>'); |
}); | }); | ||
</jsxgpre> | </jsxgpre> | ||
Rad 309: | Rad 309: | ||
\left(\dfrac{p}{2}\right)^2-q. | \left(\dfrac{p}{2}\right)^2-q. | ||
\] | \] | ||
− | <translate>Är diskriminanten positiv har ekvationen '''två''' lösningar. Är den $0$ har ekvationen '''en''' lösning, och är den negativ får man [[Kvadratroten ur ett negativt tal *Why*|kvadratroten ur ett negativt tal]] vilket innebär att det '''saknas''' reella lösningar.</translate> | + | <translate><!--T:52--> Är diskriminanten positiv har ekvationen '''två''' lösningar. Är den $0$ har ekvationen '''en''' lösning, och är den negativ får man [[Kvadratroten ur ett negativt tal *Why*|kvadratroten ur ett negativt tal]] vilket innebär att det '''saknas''' reella lösningar.</translate> |
<PGFTikz> | <PGFTikz> |