C callback functions are not handled very well so I am currently
int he process of implementing the arb_calc root finding functions in
the RealFunction class
Replying to myself here, but I think it would be more productive to write a C function which calls back to Java rather than port the C root finding code to Java after making some initial progress .