Re: Addition problems

2011-04-01 Thread Roel Schroeven
Op 2011-04-01 16:04, vm schreef: > I'm analyzing some data in python. I have stumbled across unusual problem: > > I have the function... > > def fun1(params_used_below_except_lk_and_lk2): > lk = 0.0 > lk2 = 0.0 > for raw_data, hist, freq in raw_data_hist_list: > lk2 = lk2 + fu

Re: Addition problems

2011-04-01 Thread Rob Williscroft
vm wrote in news:in4m1u$hsc$1...@news2.carnet.hr in gmane.comp.python.general: > def fun1(params_used_below_except_lk_and_lk2): > lk = 0.0 > lk2 = 0.0 > for raw_data, hist, freq in raw_data_hist_list: > lk2 = lk2 + fun2(some_constants_and_params_from_this_scope) > q =

Addition problems

2011-04-01 Thread vm
I'm analyzing some data in python. I have stumbled across unusual problem: I have the function... def fun1(params_used_below_except_lk_and_lk2): lk = 0.0 lk2 = 0.0 for raw_data, hist, freq in raw_data_hist_list: lk2 = lk2 + fun2(some_constants_and_params_from_this_scope)