I
Ivan
Hi,
I have a function that takes, say, two varialbles:
double g_fn(const double x, const double t)
{
...............
}
In another function I want to use g_fn as an single-parameter
function, like
gg_fn(x)
Is there a shorter or better way than to redefine
double gg_fn(x)
{
extern t;
return g_fn(x,t);
}
and calling "t" as a global parameter?
regards,
I have a function that takes, say, two varialbles:
double g_fn(const double x, const double t)
{
...............
}
In another function I want to use g_fn as an single-parameter
function, like
gg_fn(x)
Is there a shorter or better way than to redefine
double gg_fn(x)
{
extern t;
return g_fn(x,t);
}
and calling "t" as a global parameter?
regards,