cat zerofcn2_ex.pro ; zerofcn1_ex.pro ; This an excellent xample ; example of zero function from eve/PV-WAVE ; To run enter: zerofcn1_ex , after setting up "cd , ... FUNCTION f, x RETURN, x^2 -1 END PRO zerofcn2_ex ; initialize the Math Toolkit MATH_INIT ; Use Zerofcn to find values zero=ZEROFCN("f",/Double,Xguess=.5) ; Print the zero value PRINT,'The zero is at ',zero UNLOAD_OPTION,'math' END cat zerofcn1_ex.pro ; zerofcn1_ex.pro ; This an excellent xample ; example of zero function from eve/PV-WAVE ; To run enter: zerofcn1_ex , after setting up "cd , ... FUNCTION f, x RETURN, ALOG(x) + x END PRO zerofcn1_ex ; initialize the Math Toolkit MATH_INIT ; Use Zerofcn to find values zero=ZEROFCN("f",/Double,Xguess=.5) ; Print the zero value PRINT,'The zero is at ',zero UNLOAD_OPTION,'math' END