I need to do some math operation in my code. I'm doing something like this:
kapaerror_list[i] = sqrt(4*((LDerror_list[i])**2)*((LDmean_list[i])**2) - (error_list[i])**2)
print "%s\t%g\t%g\t%g\t%g" % (indexvalue_list[i],mean_list[i],kapa_list[i],LDmean_list[i],kapaerror_list[i])
but i'm getting the following error:
print "%s\t%g\t%g\t%g\t%g" % (indexvalue_list,mean_list,kapa_list,LDmean_list,kapaerror_list)
TypeError: float argument required
The funny thing to me is that when i erase sqrt and just writing:
kapaerror_list[i] = (4*((LDerror_list[i])**2)*((LDmean_list[i])**2) - (error_list[i])**2)
It doesn't give me any error.
I really appreciate your help.