MathGroup Archive 2001

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

Search the Archive

Re: Re: FindRoot question

  • To: mathgroup at
  • Subject: [mg29951] Re: [mg29906] Re: FindRoot question
  • From: "Mr. Wizard" <gleam at>
  • Date: Thu, 19 Jul 2001 03:57:17 -0400 (EDT)
  • References: <9j05h0$esi$>
  • Sender: owner-wri-mathgroup at

Chris, unless I don't understand your function, which wouldn't be a first, 
I think you're using a needlessly long and complex function.  Try this one 

NumberListQ = If[ListQ@#, And @@ NumberQ /@ #, False] &;


>Just a follow-up on my own question.  Part of the problem was that I
>was calling another homemade function that used FindRoot from within
>FindRoot.  Problems arose when the inner FindRoot got non-numeric
>values for its options.  From other messages I found that using
>_?NumberQ for the inside function should help, but I was passing my
>options as a list, which would not make it by  _?NumberQ.  _?ListQ
>didn't help either, because {x,y} counts as a list as well as {1,2}.
>I ended up writing the following test for a list of numbers, which
>Return[ret]; ];
>My inside function then begins:
>neq[xopts_?ListOfNumbersQ,ni_]:=Module[ ...
>-- Chris

  • Prev by Date: RE: Thickness Isn't Thickness
  • Next by Date: Re: Integrate[1/x, x] ??
  • Previous by thread: Re: Re: FindRoot question
  • Next by thread: inability to pass argument(s) to functions..