function fill_array () { var a = new Array (); var i; for (i = 0; i <= 4; i += 0.3) { a[i] = Math.pow (i, 3); //alert (a[i]); } return a; }