function calculate(data) { var d, x = data[0] || 0, y = data[1] || 0, z = data[2] || 0, massive = []; if(x + y + z == 0) return {}; while(y - x > z) { x += z; massive.push(x, x * Math.PI); } return massive; }