ymikhale,What exactly did you change where? Changing the input in the shiet i can not reproduce it (except forcing the algo to fail).The error message typically occurs, if you change the source code. For this please note that p_start is thought as a vectorin IR^3 (for the parameters of f) and f(xi, tau1, tau2, tau3) is a 1-dim fct. So take care to change everything consistently.tmp_beta is the matrix gradF*gradF^(transpose) [and depends in size on f and data feed in]. Perhaps you may checkwhether matrix operations work within your Excel in a sheet first and make sure that 'all dimensions fit together' usingpaper and pencil