/* topy.c -- Solve f(x)=0 by the homotopy method Written Septeber 29, 2012 by Eric Olson for Math 701 */ #include #include "func.i" #define N 10 main(){ printf("# topy -- Solve f(x)=0 by the homotopy method\n" "# Written September 29, 2012 for Math 701 by Eric Olson\n\n"); int i; double dt=1.0/N; double x=getx0(0.0); printf("# %2s %8s %24s\n","n","t_n","x_n"); for(i=0;i