// -------------------- Etudes de fonctions -------------------- function consoleInfos(){ var table = []; for(var i in arguments){ table.push(arguments[i]); } document.getElementById("infos").innerHTML += table +"
"; } Array.prototype.first = function(){ return this[0]; } Array.prototype.last = function(){ return this[this.length-1]; } Array.prototype.removeDoubles = function(){ // Sort numerically this.sort(function(nbr1,nbr2){return nbr1-nbr2}); // Remove doubles for(var i=1; i' } else{ txtSigne += ''+listeNbr[i][0]+'' } switch(b){ case -1: txtSigne += "-"; dernierSigne = "-"; break; case 1: txtSigne += "+"; dernierSigne = "+"; break; } } document.getElementById("etudeSigneRow").innerHTML = txtSigne; // consoleInfos(""+txtSigne+"
Signe :
"); }, asymptotesNum : function(){ var f = this.f; // Verticales var texteA = ""; for(var i=0; i0){ if(txtMinMax != ""){ txtMinMax += "
"; } txtMinMax += "Min("+this.listeX[i]+";"+this.round(this.listeY[i])+")"; } else if(a>0 && b<0){ if(txtMinMax != ""){ txtMinMax += "
"; } txtMinMax += "Max("+this.listeX[i]+";"+this.round(this.listeY[i])+")"; } } // consoleInfos(txtMinMax); if(txtMinMax == ""){ txtMinMax = "none"; try{ txtMinMax = languages.getText("none_m"); } catch(e){} } document.getElementById("etudeMinMax").innerHTML = txtMinMax; }, pointI : function(){ // Rechercher des zéros dans les points calculés var listeID = []; // for(var i=1; i("+this.listeX[i]+";"+this.round(this.listeY[i])+")"; } // consoleInfos(txtI); if(txtI == ""){ txtI = "none"; try{ txtI = languages.getText("none_m"); } catch(e){} } document.getElementById("etudeI").innerHTML = txtI; }, }