S
Schizoid Man
Hi,
I'm trying to implement a root finding solver in C# using Newton's Methods
and Numerical Recipes as a reference for the algorithm, and I have the
algorithm part of the solver up and running.
My problem is that I'm not sure how I can use this solver for any generic
function that requires a one-dimensional solver. All the examples I have
seen on the web hard the function f(x) that is being solved. I would like to
re-use this same solver code applied to a large set of functions, each with
it's own combination of input parameters - the common theme being that they
all required a one-dimensional solver.
It looks using an abstract class is the way to go, but I was hoping that
someone could give me some ideas.
Thanks,
Schiz
I'm trying to implement a root finding solver in C# using Newton's Methods
and Numerical Recipes as a reference for the algorithm, and I have the
algorithm part of the solver up and running.
My problem is that I'm not sure how I can use this solver for any generic
function that requires a one-dimensional solver. All the examples I have
seen on the web hard the function f(x) that is being solved. I would like to
re-use this same solver code applied to a large set of functions, each with
it's own combination of input parameters - the common theme being that they
all required a one-dimensional solver.
It looks using an abstract class is the way to go, but I was hoping that
someone could give me some ideas.
Thanks,
Schiz