if toms748_solve accepts const double parameter it only means that it do not change theat parameter, you can pass there any double you want.