2013年12月16日 星期一
2013年12月9日 星期一
2013年12月2日 星期一
LAB27
Pa=0.15+0.425Pc (1)
Pb=0.15+0.85Pa (2)
Pc=0.15+0.85Pa+0.85Pb (3)
(1)代入(2)
Pb=0.15+0.85(0.15+0.425Pc)
=0.15+0.1275+0.36125Pc (4)
(1)(4)代入(3)
Pc=0.15+0.85(0.15+0.425Pc)+0.85(0.15+0.1275+0.36125Pc)
=0.15+0.1275+0.36125Pc+0.1275+0.108375+0.3070625Pc
=0.513375+0.6683125Pc
0.3316875Pc=0.513375
Pc=1.5477671
Pb=0.15+0.1275+0.36125*1.5477671=0.83663086
Pa=0.15+0.45*1.5477671=0.807801012
Pc>Pb>Pa
Pb=0.15+0.85Pa (2)
Pc=0.15+0.85Pa+0.85Pb (3)
(1)代入(2)
Pb=0.15+0.85(0.15+0.425Pc)
=0.15+0.1275+0.36125Pc (4)
(1)(4)代入(3)
Pc=0.15+0.85(0.15+0.425Pc)+0.85(0.15+0.1275+0.36125Pc)
=0.15+0.1275+0.36125Pc+0.1275+0.108375+0.3070625Pc
=0.513375+0.6683125Pc
0.3316875Pc=0.513375
Pc=1.5477671
Pb=0.15+0.1275+0.36125*1.5477671=0.83663086
Pa=0.15+0.45*1.5477671=0.807801012
Pc>Pb>Pa
2013年11月11日 星期一
2013年11月10日 星期日
Homework 11-5-2013
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<script type="text/javascript">
var re = /\(?\d{3}\)?([-\/\.])\d{3}\1\d{4}/;
function check(){
var OK = re.exec(f.q.value);
if (!OK)
{window.alert(RegExp.input + " isn't a phone number with area code!");
f.q.value="";
document.f.q.focus();
return false; }
else
window.alert("Thanks, your phone number is " + OK[0]);
}
</script>
</head>
<body>
<p>Enter your phone number (with area code) and then click "Check".
<br>The expected format is like ###-###-####.</p>
<form name="f" action="#" onsubmit="return check()" method="get">
check:<input type="text" name="q">
<input id="phone" type="submit" value="check">
</form>
</body>
</html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<script type="text/javascript">
var re = /\(?\d{3}\)?([-\/\.])\d{3}\1\d{4}/;
function check(){
var OK = re.exec(f.q.value);
if (!OK)
{window.alert(RegExp.input + " isn't a phone number with area code!");
f.q.value="";
document.f.q.focus();
return false; }
else
window.alert("Thanks, your phone number is " + OK[0]);
}
</script>
</head>
<body>
<p>Enter your phone number (with area code) and then click "Check".
<br>The expected format is like ###-###-####.</p>
<form name="f" action="#" onsubmit="return check()" method="get">
check:<input type="text" name="q">
<input id="phone" type="submit" value="check">
</form>
</body>
</html>
訂閱:
意見 (Atom)

















































