<link rel="stylesheet" type="text/css" href="计算器.css"/>
<script src="计算器.js" type="text/javascript" charset="utf-8"></script>
<table border="0" cellspacing="0" cellpadding="" id='main'>
<input type="text" name="" id="result" value="0" />
<input type="button" name="" id="" value="清零" onclick="clean()"/>
<input type="button" name="" id="" value="退格" onclick='backspace()'/>
<input type="button" name="" id="" value="sin" onclick="calc1('sin')"/>
<input type="button" name="" id="" value="cos" onclick="calc1('cos')"/>
<input type="button" name="" id="" value="tan" onclick="calc1('tan')"/>
<input type="button" name="" id="" value="asin" onclick="calc1('asin')"/>
<input type="button" name="" id="" value="acos" onclick="calc1('acos')"/>
<input type="button" name="" id="" value="atan" onclick="calc1('atan')"/>
<input type="button" name="" id="" value="PI" onclick="calc1('PI')"/>
<input type="button" name="" id="" value="1/X" onclick="calc1('1/x')"/>
<input type="button" name="" id="" value="exp" onclick="calc1('exp')"/>
<input type="button" name="" id="" value="Inx" onclick="calc1('Inx')"/>
<input type="button" name="" id="" value="lgx" onclick="calc1('lgx')"/>
<input type="button" name="" id="" value="n!" onclick="calc1('n!')"/>
<input type="button" name="" id="" value="7" onclick="num(7)"/>
<input type="button" name="" id="" value="8" onclick="num(8)"/>
<input type="button" name="" id="" value="9" onclick="num(9)"/>
<input type="button" name="" id="" value="4" onclick="num(4)"/>
<input type="button" name="" id="" value="5" onclick="num(5)"/>
<input type="button" name="" id="" value="6" onclick="num(6)"/>
<input type="button" name="" id="" value="1" onclick="num(1)"/>
<input type="button" name="" id="" value="2" onclick="num(2)"/>
<input type="button" name="" id="" value="3" onclick="num(3)"/>
<input type="button" name="" id="" value="0" onclick="num(0)"/>
<input type="button" name="" id="" value="." onclick="dian()"/>
<input type="button" name="" id="" value="=" onclick="calc('=')"/>
<input type="button" name="" id="" value="+" onclick="calc('+')"/>
<input type="button" name="" id="" value="取整" onclick="calc('取整')"/>
<input type="button" name="" id="" value="-" onclick="calc('-')"/>
<input type="button" name="" id="" value="取余" onclick="calc('%')"/>
<input type="button" name="" id="" value="*" onclick="calc('*')"/>
<input type="button" name="" id="" value="x^y" onclick="calc('x^y')"/>
<input type="button" name="" id="" value="/" onclick="calc('/')"/>
<input type="button" name="" id="" value="+/-" onclick="calc('+/-')"/>