﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
64	error due to integer division in mean example	Stephen Siegel		"The impl version of the mean example was getting the wrong answer.  The bug is due to the following:
{{{
  while (i < N + 1) {
    j = ( (i-1) / i ) *j + a[i-1]/i;
    i = i + 1;
  }
}}}
The division {{{(i-1)/i}}} is integer division when what you want is real division.  You need to do something like {{{((i-1)*1.0)/i}}}.  MiniMP caught the bug, which was kind of cool.

By the way, can some please change the name of variable {{{j}}} to something else.   {{{j}}} is usually used for an integer variable.  This is a real variable.

"	defect	closed	major		examples	1.0	fixed	mean, division, integer	
