Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:

Desktop / s_mishei2 / Math / Новый2

.html
Скачиваний:
34
Добавлен:
27.03.2015
Размер:
6.17 Кб
Скачать

юя function one() { a=(Math.random()*10) if (a=3)&&(a6){alert("third")} } function two() { w=text1.value; alert("abs="+Math.abs(w)+" sin="+Math.sin(w)+ " cos="+Math.cos(w)+" tan="+Math.tan(w)+ " exp="+ Math.exp(w)+ " log="+Math.log(w)+" okruglim="+Math.ceil(w)+" sqrt="+ Math.sqrt(w)) } function three() { R=text2.value; radius=2*Math.PI*R; ploshad=Math.PI*(R*R) alert("dlina okruzhnosti=" +radius+ " ploshad=" +ploshad) } function fourfirst() { var dataz=new Date() var datavelot=new Date(1995,8,12) var dataitog= (dataz- datavelot)/1000/60/60/24 a=Math.round(dataitog) n=a*a n1=Math.sin(a) //n2=Math.pow(a,a) - :0:0O B> =58725AB=0O 703>3C;8=0 alert(n2) L=((n1/n)*1) alert(L) } function four(){ a=(Math.random()*10) if (a=3)&&(a6){document.getElementById('img').src="3.jpg"} } function five() { a=Math.random() b=Math.round(a) alert(b) if (b==0){document.getElementById("body").style.textAlign="center"} if (b==1){document.getElementById("body").style.textAlign="right"} } function six(){ a=Math.round(Math.random()*10) if (a==0){document.bgColor="red"} if (a==1){document.bgColor="Blue"} if (a==2){document.bgColor="DarkGreen"} if (a==3){document.bgColor="Gold"} if (a==4){document.bgColor="Brown"} if (a==5){document.bgColor="Coral"} if (a==6){document.bgColor="Violet"} if (a==7){document.bgColor="Bisque4"} if (a==8){document.bgColor="Khaki1"} if (a==9){document.bgColor="Pink1"} } ------------------------2------------ ----------------------3------------------------------ ---------------------4---------------------------- ----------------------------5-------------------------- --------------------------6---------------------- --------------------------7----------------------

Соседние файлы в папке Math