Commit df7a4460 authored by Jody Goldberg's avatar Jody Goldberg

Minor patch to use american namings consistently

s/goal_seek_initialise/goal_seek_initialize/
parent 4c851866
......@@ -1429,7 +1429,7 @@ gnumeric_rate (FunctionEvalInfo *ei, GnmValue **argv)
#if 0
printf ("Guess = %.15g\n", rate0);
#endif
goal_seek_initialise (&data);
goal_seek_initialize (&data);
data.xmin = MAX (data.xmin,
-powgnum (DBL_MAX / 1e10, 1.0 / udata.nper) + 1);
......@@ -1558,7 +1558,7 @@ gnumeric_irr (FunctionEvalInfo *ei, GnmValue **argv)
return result;
}
goal_seek_initialise (&data);
goal_seek_initialize (&data);
data.xmin = MAX (data.xmin,
-powgnum (DBL_MAX / 1e10, 1.0 / p.n) + 1);
......@@ -1813,7 +1813,7 @@ gnumeric_xirr (FunctionEvalInfo *ei, GnmValue **argv)
gnm_float rate0;
int n, d_n;
goal_seek_initialise (&data);
goal_seek_initialize (&data);
data.xmin = -1;
data.xmax = MIN (1000, data.xmax);
......@@ -2533,7 +2533,7 @@ gnumeric_yield (FunctionEvalInfo *ei, GnmValue **argv)
GoalSeekStatus status;
gnm_float yield0 = 0.1;
goal_seek_initialise (&data);
goal_seek_initialize (&data);
data.xmin = MAX (data.xmin, 0);
data.xmax = MIN (data.xmax, 1000);
......@@ -2908,7 +2908,7 @@ gnumeric_oddfyield (FunctionEvalInfo *ei, GnmValue **argv)
if (udata.rate < 0.0 || udata.price <= 0.0 || udata.redemption <= 0.0)
return value_new_error_NUM (ei->pos);
goal_seek_initialise (&data);
goal_seek_initialize (&data);
data.xmin = MAX (data.xmin, 0);
data.xmax = MIN (data.xmax, 1000);
......
......@@ -119,7 +119,7 @@ gnumeric_goal_seek (GoalSeekState *state)
gboolean hadold;
gnm_float oldx;
goal_seek_initialise (&seekdata);
goal_seek_initialize (&seekdata);
seekdata.xmin = state->xmin;
seekdata.xmax = state->xmax;
......
......@@ -144,7 +144,7 @@ fake_df (GoalSeekFunction f, gnm_float x, gnm_float *dfx, gnm_float xstep,
}
void
goal_seek_initialise (GoalSeekData *data)
goal_seek_initialize (GoalSeekData *data)
{
data->havexpos = data->havexneg = FALSE;
data->xmin = -1e10;
......@@ -541,7 +541,7 @@ main ()
{
GoalSeekData data;
goal_seek_initialise (&data);
goal_seek_initialize (&data);
data.xmin = -100;
data.xmax = 100;
......
......@@ -24,7 +24,7 @@ typedef enum { GOAL_SEEK_OK, GOAL_SEEK_ERROR } GoalSeekStatus;
typedef GoalSeekStatus (*GoalSeekFunction) (gnm_float x, gnm_float *y, void *user_data);
void goal_seek_initialise (GoalSeekData *data);
void goal_seek_initialize (GoalSeekData *data);
GoalSeekStatus goal_seek_point (GoalSeekFunction f,
GoalSeekData *data,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment