求惠斯登電橋的電阻

Susan Sarandon
發布: 2024-10-13 06:09:03
原創
366 人瀏覽過

Find resistance of wheatstone bridge

Find unknown resistance of Wheatstone bridge, Rx(=R in code)

The equation of Rx is below.

Rx = Rk * R2 / R1

Proportion of R2 and R1 is R2_R1 in code.

Making function.

def Find_the_resistance (Rk, R2_R1) :
    R = Rk * R2_R1
    d.append(R)

登入後複製

I put experimental values in lists, a and b.(9 times experiments)

List c has theoretical values.

List d has the result of the function

Error rate : (experimental value - theoretical value) / theoretical value * 100

a = [147, 464, 14, 47, 2180, 8100, 5570, 1470, 4620]
b = [10, 10, 100, 100, 0.1, 0.1, 0.1, 1, 1]
c = [1470, 4520, 1470, 4520, 217, 810, 557, 1470, 4520]
d = []
登入後複製

range(starting number, ending number). It doesn't include the ending number but ending number - 1

Computer counts numbers from 0 not 1. Don't forget it!(I said it for myself. XD)

for i in range(0, 9) :
    Find_the_resistance(a[i], b[i])
    print((d[i] - c[i]) / c[i] * 100)
    i = i+1
登入後複製

以上是求惠斯登電橋的電阻的詳細內容。更多資訊請關注PHP中文網其他相關文章!

來源:dev.to
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
作者最新文章
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板
關於我們 免責聲明 Sitemap
PHP中文網:公益線上PHP培訓,幫助PHP學習者快速成長!