设为首页   加入最爱           最新更新:全方位英文文章资料库
 
资料坊搜索: 标题 全文     
一种函数的计算方法并给出相应的曲线图片
   首页>>YesizeCOM>>电脑技能坊>>ASP>>正文       
 
广告招租,e-mail:yesize@hotmail.com

广告招租,e-mail:yesize@hotmail.com

<SCRIPT LANGUAGE=JavaScript>
<!-- Begin
var a, b, c;
function xtop(form) {
form.u.value = (form.b.value * -1) / (form.a.value * 2);
}
function ytop(form) {
form.u2.value = -1 * (form.b.value * form.b.value) / (4 * form.a.value) - (-1 * form.c.value);
}
function doCoord(form) {
form.co.value = form.u.value + , + form.u2.value;
}
function disc(form) {
form.o.value = (form.b.value * form.b.value) - (form.a.value * form.c.value * 4);
}
function zeroes1(form) {
form.n.value = ((form.b.value * -1) - (Math.sqrt(form.o.value))) / (form.a.value * 2);
}
function zeroes2(form) {
form.n2.value = ((form.b.value * -1) - (-1 * Math.sqrt(form.o.value))) / (form.a.value * 2);
}
function move_in(img_name,img_src) {
document[img_name].src=img_src;
}
// End -->
</script>
<form>
<table bgcolor=#C0C0C0 cellspacing=2 cellpadding=2 border=3>
<tr>
<td>
<b>
<h3>Parabolic Calculator</h3>
<input name=a size=3>X<sup>2</sup>+
<input name=b size=3>X +
<input name=c size=3>
<br>
<input type=button value=x-top name=x-top onclick=xtop(this.form)>
<input type=button value=y-top name=y-top onclick=ytop(this.form)>
<input type=button value=crd name=crd onclick=doCoord(this.form)>
<input type=button value=disc. name=D onclick=disc(this.form)>
<br>
<input type=button value=0-points name=zeroes onclick=zeroes1(this.form);zeroes2(this.form)>
<input type=button onclick=xtop(this.form);ytop(this.form);doCoord(this.form);disc(this.form);zeroes1(this.form);zeroes2(this.form) value=do all>
<input type=button name=pics value=show e.g. onClick=if(form.a.value>0 && form.o.value>0)move_in(p,p2.gif);if (form.a.value<0 && form.o.value>0)move_in(p,p3.gif); if(form.a.value>0 && form.o.value==0) move_in(p,p4.gif); if(form.a.value<0 && form.o.value==0) move_in(p,p5.gif); if(form.a.value>0 && form.o.value<0) move_in(p,p6.gif); if(form.a.value<0 && form.o.value<0) move_in(p,p7.gif) value=show e.g.>
<br>
<input type=text name=u size=8> x-top<br>
<input type=text name=u2 size=8> y-top<br>
<input type=text size=8 name=co onmouseover=form.rem.value=form.co.value> Coord.<br>
<input type=text size=8 name=o> Discriminant<br>
<input type=text size=8 name=n> neg zero pt.<br>
<input type=text size=8 name=n2> pos zero pt.
<input type=hidden value= name=rem><br>
<input type=reset value=reset><br>
</b>
</td>
<td><img src=p1.gif width=200 name=p height=200 border=0 alt=></td>
</tr>
</table>
</form>
上一篇:一个检测一个字符串在另一个字符串当中出现几次的函数 下一篇:嵌入式Web视频点播系统实现方法

版权说明:作品来源于网上,版权归作者所有,如果无意中侵犯了您的版权,请来信告知,本站将在3个工作日内删除。yesize@hotmail.com
  热门小游戏分类 
射击小游戏 连连看小游戏
台球小游戏 成人小游戏
CS小游戏 化妆小游戏
赛车小游戏 休闲小游戏
篮球小游戏 换装小游戏
儿童小游戏 牛牛小游戏
麻将小游戏 冒险小游戏
美媚小游戏 益智小游戏
体育小游戏  
Society Recreation & Sports
Travel & Leisure Communications
Vehicles Computers
Fashion Arts & Entertainment
Reference & Education Disease & Illness
Writing & Speaking Politics
Product Reviews Food & Beverage
Finance Internet Business
Self Improvement Home & Family
Health & Fitness Business
最新更新内容
警惕“公务员报考热”背
公务员考试不是丈母娘考
一名新公务员的自白:我
公务员考脑筋急转弯与挂
北努斗:2006行政能力测
大讨论:06行测BT题目大
过来人回忆:当年,我也
一家之言:公务员热折射
公务员考试申论要是有正
数十万大学生走进公务员
      粤ICP备05005424         Copyright ©2000 - 2004 Yesize.COM