newton functions now use macros, to allow for total flexibility in the F functions that can be provided.