MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Re: Hold problems with FindRoot


Try changing the definitions of f and g, via a PatternTest, so that
they are only defined for numeric arguments.

f[x_?NumericQ,y_?NumericQ]=blahblah1
g[x_?NumericQ,y_?NumericQ]=blahblah2

On 5/14/05, Jonas Björnerstedt <lists at bjornerstedt.org> wrote:
> Hello again,
> 
> There was a small mistake in my previous posting. It should have said:
> 
> FindRoot[Evaluate[{f[x,y]==0, g[x,y]==0}],{{x,1},{y,1}}]
> 
> where f and g are functions that work correctly. Trying to solve one
> equation for two unknowns would cause other problems than I am currently
> having.
> 
> Jonas.
> 
> Jonas Björnerstedt wrote:
> 
> > Hello all,
> >
> > I have problems getting FindRoot to evaluate the equations it
> > evaluates, despite using Evaluate on the equations. I have a rather
> > complex function f[x,y] that works correctly with individual values x
> > and y. Evaluating the following expression does not work however.
> >
> > FindRoot[Evaluate[f[x,y]==0],{{x,1},{y,1}}]
> >
> > When evaluating, I get similar errors as when I evaluate f without
> > inserting values for x and y. I can also do a Plot3D on f without
> > using Evaluate.
> >
> > Does anybody have an idea what the problem is?
> >
> > Jonas
> >
> 
> 


-- 
Chris Chiasson
http://chrischiasson.com/
1 (810) 265-3161


  • Prev by Date: Re: Intersection of coordinate axes in origin (3d plot)
  • Next by Date: Re: Count using pattern on two different matrices
  • Previous by thread: Re: Hold problems with FindRoot
  • Next by thread: Re: Re: Hold problems with FindRoot