The book Numerical Recipes in C by William H. Press et al has a wonderful coverage of a wide range of numerical problems including integration techniques, optimization, random number generation, root finding and Fourier transformation. A number of the algorithms in Vensim are based on this book.