From help-octave-request at bevo dot che dot wisc dot edu Tue Jan 19 00:36:27 1999 Subject: fsolve - more params, how ? From: "John W. Eaton" To: "Butora Robert (NTC/Espoo)" Cc: help-octave Date: Tue, 19 Jan 1999 00:36:40 -0600 (CST) On 19-Jan-1999, Butora Robert (NTC/Espoo) wrote: | fsolve goes like: | | fsolve(fname,x0) where: y=fname(x) | | Trying to solve Kepler's equation: | | M = E - e*sin(E) -> f(x)=M-(x-e*sin(x)) | | How to pass more then 1 parameter ('M' and 'e') | to the fname function besides the unknown 'x' ? Use global variables. jwe