Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

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

Search the Archive

FindRoot syntax?

  • To: mathgroup at
  • Subject: [mg66507] FindRoot syntax?
  • From: AES <siegman at>
  • Date: Wed, 17 May 2006 03:30:02 -0400 (EDT)
  • Organization: Stanford University
  • Sender: owner-wri-mathgroup at

I just defined an expression making use of FindRoot[] in the form

   g[x_,y_] := g /. FindRoot[ f[g, x, y]==0, {g, 0, 1} ]

where  f[g,x,y]  is a simple expression involving g, x, and y, and it 
seems to work just fine, churning out numerical values of g[x,y] for 
numerical inputs of x and y, with no obvious problems.

I keep feeling guilty, however, as if I've done something sinful -- 
specifically that I should be using a different symbol name or dummy 
variable in place of g on the right-hand side.

Is this syntax really OK?

  • Prev by Date: Re: want real solutions instead of complex ones
  • Next by Date: Re: Reconstructing data points from a InterpolatingFunction object
  • Previous by thread: Re: Fancy pictures in 3D
  • Next by thread: Re: FindRoot syntax?