<!-- Beginvar i=0;function reponse(form){for(var i=0;i<form.length;i++){if(form[i].checked){break}}var repondu=""if(i<form.length){repondu=form[i].value}return repondu;}function affiche(form,i){var auteur="Arnaud Saint-Martin de www.homeomath.com";var x=form.x.value;var t=0;var y=0;if(x==""){x=0;t=0;document.formulaire.x.value=0;};t=x;with(Math){x=eval(x);};if(i==1){y=3;};if(i==2){y=eval(x*2);};if(i==3){y=eval(2*x-3);};if(i==4){y=eval(x*x);};if(i==5){y=eval(x*x*x);};if(i==6){if(x!=0){y=eval(1/x);}else{alert("0 n'a pas d'inverse !");y="";};};if(i==7){if(x>=0){y=Math.sqrt(x);}else{alert("un nombre négatif n'a pas de racine carrée !");y="";};};if(i==8){y=Math.abs(x);};if(i==9){y=Math.sin(x);};if(i==10){y=Math.cos(x);};if(i==11){if(arrondi(Math.cos(x),1000000000)!=0){y=Math.tan(x);}else{alert("La fonction tangente n'est pas définie en x = "+t);y="";};};if(i==12){if(arrondi(Math.sin(x),1000000000)!=0){y=eval(Math.cos(x)/Math.sin(x));}else{alert("La fonction cotangente n'est pas définie en x = "+t);y="";};};if(i==13){if((x<=1)&&(x>=-1)){y=Math.acos(x);}else{alert("La fonction Arcosinus n'est pas définie en x = "+t);y="";};};if(i==14){if((x<=1)&&(x>=-1)){y=Math.asin(x);}else{alert("La fonction Arcsinus n'est pas définie en x = "+t);y="";};};if(i==15){y=Math.atan(x);};if(i==16){if(x>0){y=Math.log(x);}else{alert("La fonction logarithme népérien n'est pas définie en x = "+t);y="";};};if(i==17){if(x>0){y=eval(Math.log(x)/Math.log(10));}else{alert("La fonction logarithme décimale n'est pas définie en x = "+t);y="";};};if(i==18){y=Math.exp(x);};if(i==19){y=ch(x);};if(i==20){y=eval(1/ch(x));};if(i==21){y=sh(x);};if(i==22){if(x!=0){y=eval(1/sh(x));}else{alert("La fonction cosécante hyperbolique n'est pas définie en 0");y="";};};if(i==23){y=th(x);};if(i==24){if(x!=0){y=eval(1/th(x));}else{alert("La fonction cotangente hyperbolique n'est pas définie en 0");y="";};};if(i==25){if(x>=1){y=argch(x);}else{alert("La fonction arccosinus hyperbolique n'est pas définie en x = "+t);y="";};};if(i==26){y=argsh(x);};if(i==27){if((x<1)&&(x>-1)){y=argth(x);}else{alert("La fonction arctangente hyperbolique n'est pas définie en x = "+t);y="";};};if(i==28){if((x>1)||(x<-1)){y=argcoth(x);}else{alert("La fonction arccotangente hyperbolique n'est pas définie en x = "+t);y="";};};if(i==29){y=Math.floor(x);};if(i==30){if(x<0){y=0;}else{y=1;};};if(y!=""){y=arrondi(y,100000000000);};document.formulaire.y.value=y;}function arrondi(x,choix){var retour=eval(x*choix);var tronc=Math.round(retour);tronc=eval(tronc/choix);return tronc;}function ch(x){var z=eval(0.5*eval(Math.exp(-x)+"+"+Math.exp(x)));return z;};function sh(x){var z=eval(0.5*eval(Math.exp(x)-Math.exp(-x)));return z;};function th(x){var z=eval(eval(1-Math.exp(-2*x))/eval(1+"+"+Math.exp(-2*x)));return z;};function argch(x){var z=Math.log(eval(Math.sqrt(eval(x*x-1))+"+"+x));return z;}function argsh(x){var z=Math.log(eval(Math.sqrt(eval(x*x+"+"+1))+"+"+x));return z;}function argth(x){var z=eval(0.5*Math.log(eval(1+"+"+x)/eval(1-x)));return z;}function argcoth(x){var z=eval(0.5*Math.log(eval(x+"+"+1)/eval(x-1)));return z;}
