any faster alternative??
Posted
by kaushik
on Stack Overflow
See other posts from Stack Overflow
or by kaushik
Published on 2010-06-10T05:42:58Z
Indexed on
2010/06/10
5:52 UTC
Read the original article
Hit count: 280
python
|Performance
cost=0
for i in range(12):
cost=cost+math.pow(float(float(q[i])-float(w[i])),2)
cost=(math.sqrt(cost))
Any faster alternative to this? i am need to improve my entire code so trying to improve each statements performance.
thanking u
© Stack Overflow or respective owner