Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. <PRELOAD> lib/function-plot/d3.min.js lib/function-plot/function-plot.js </PRELOAD> <HTML> <!-- Siehe https://github.com/maurizzzio/function-plot und http://maurizzzio.github.io/function-plot/ --> <div id="exfun"></div> </HTML> <JS> function shuffleArray(array) { for (var i = array.length - 1; i > 0; i--) { var j = Math.floor(Math.random() * (i + 1)); var temp = array[i]; array[i] = array[j]; array[j] = temp; } return array; } function createEx() { var steigungen=shuffleArray([-2,-1,-0.5,0,0.5,1,2]); var abschnitte=shuffleArray([-3,-2,-1,1,2,3]); for (var i=0; i<3; i++) { jQuery("#exfun").append("<span id=\"exfun"+i+"\"></span>"); ab = abschnitte[i]; if (ab==0) { ab=""} if (ab>0) { ab="+"+ab} st = steigungen[i]; if (st==-1) { st="-";} if (st==1) {st="";} if (st=="0") {st="";} else {st=st+"x"} jQuery("#exfunsol").append("Aufgabe "+(1+i)+": $f(x)="+st+ab+"$<br/>"); functionPlot({ title: "Aufgabe"+(1+i), target: "#exfun"+i, width: 250, height: 250, disableZoom: true, skipTip: true, grid: true, xAxis:{domain:[-4,4]}, yAxis:{domain:[-4,4]}, data:[{fn: ""+steigungen[i]+"*x+"+abschnitte[i]}] }); } } jQuery(createEx); </JS> <hidden Lösungen> <HTML> <div id="exfunsol"></div> </HTML> </hidden> lehrkraefte/blc/math/unterlagen/funktionenraten.txt Last modified: 2017/03/17 17:54by Ivo Blöchliger