TypeError: unsupported operand type(s) for +: 'int' and 'list' for molecular dynamics simulation

前端 未结 0 1353
庸人自扰
庸人自扰 2020-11-22 10:38

Why am I getting the error in line 4 of my code for an MD simulation?

a = [x*delta_t for x in velocities]
b = [x*(0.5/m)*(delta_t**2) for x in list_of_f]
for          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题