One useful method is to create all the templates for your functions in a data type, and then run the algorithm with an arithmetic type of intervals instead of a floating point type. This gives an upper bound on the accuracy of the result for a given set of inputs without the need for extensive numerical analysis.
It is also important to have an idea of the expected values of your results and any intermediate links, so you can quickly tell if something is wrong.
source share