|
感谢关注耳机俱乐部网站,注册后有更多权限。
您需要 登录 才可以下载或查看,没有账号?注册
x
感谢kopfhorer和digi01版,感谢各位,希望能为大家提供方便。
<form name="total">
<p>电阻=<input name="res" type="text" maxlength="20">Om <input type=button name="calc_res1" value="电容算电阻" onClick=javascript:document.total.res.value=1e12/(2*3.141592654*document.total.cap.value*document.total.freq.value)> <input type=button name="calc_res2" value="电感算电阻" onClick=javascript:document.total.res.value=2*3.141592654*document.total.ind.value*document.total.freq.value></p>
<p>电容=<input name="cap" type="text" maxlength="20">pF <input type=button name="calc_cap" value="计算电容" onClick=javascript:document.total.cap.value=1e12/(2*3.141592654*document.total.res.value*document.total.freq.value)></p>
<p>电感=<input name="ind" type="text" maxlength="20">mH <input type=button name="calc_ind" value="计算电感" onClick=javascript:document.total.ind.value=document.total.res.value*1000/(2*3.141592654*document.total.freq.value)></p>
<p>频率=<input name="freq" type="text" maxlength="20">Hz <input type=button name="calc_freq1" value="电容算频率" onClick=javascript:document.total.freq.value=1e12/(2*3.141592654*document.total.cap.value*document.total.res.value)> <input type=button name="calc_freq2" value="电感算频率" onClick=javascript:document.total.freq.value=document.total.res.value*1000/(2*3.141592654*document.total.ind.value)></p>
<p>三者串联阻抗=<input name="sr" type="text" maxlength="20">Om <input type=button name="calc_sr" value="计算" onClick=javascript:document.total.sr.value=Math.sqrt(Math.pow(document.total.res.value,2)+Math.pow(2*3.141592654*document.total.freq.value*document.total.ind.value/1000-1e12/(2*3.141592654*document.total.freq.value*document.total.cap.value),2))></p>
</form> |
|