python编写数学公式大全_用python编写数学公式的问题

def test(s,c,r,k,E):

h1=[]

h3=[]

h6=[]

h8=[]

for i in range(5):

h0=2*s[i]*s[i]/(c[i]*(0.08+r[i]))

h1.append(h0)

Y=sum(h1)

for i in range(5):

h2=k[i]/r[i]

h3.append(h2)

h4=sum(h3)

for i in range(5):

h5=Y/r[i]

h6.append(h5)

h7=sum(h6)

Z=h4/(1-h7)

for i in range(5):

u=2.0*Z*s[i]/(c[i]*E[i]*(0.08+r[i]))

h8.append(u)

return h8

s=[0.03,0.02,0.03,0.04,0.02];

c=[5,6,4,5,4];

r=[0.06,0.07,0.08,0.06,0.09];

k=[0.04,0.05,0.03,0.05,0.06];

E=[15,20,25,20,30];

print(test(s,c,r,k,E))

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值