MathGroup Archive 2003

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

Search the Archive

Re: Automatic detection for application of NSolve or FindRoot

  • To: mathgroup at smc.vnet.net
  • Subject: [mg40070] Re: Automatic detection for application of NSolve or FindRoot
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Tue, 18 Mar 2003 05:50:05 -0500 (EST)
  • Organization: Universitaet Leipzig
  • References: <b4ub9b$qkg$1@smc.vnet.net>
  • Reply-to: kuska at informatik.uni-leipzig.de
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,

sol=NSolve[yourArgumentList];
If[Head[sol===NSolve,
  sol=FindRoot[yourArgumentListForFindRoot]
 ];

may help.

Regards
  Jens

"Jörg Schaefer" wrote:
> 
> Hi,
> 
> I have an automatically generated equation system that should be solved
> in a predefined sequence (which will work).
> 
> The problem is:
> Some equations can be solved by NSolve[], others only by FindRoot[].
> Unfortunately I have to decide which method is to be used before the
> equation system is handed over to Mathematica.  So, is there any way to
> launch a "solve"-kind of operation that automatically chooses the method
> applicable to the specific equation it should solve?
> 
> Thanks in advance for help,
> Jörg


  • Prev by Date: Re: Q: lists
  • Next by Date: Evaluation problem
  • Previous by thread: Automatic detection for application of NSolve or FindRoot
  • Next by thread: Functions with multiple groups of arguments? [David Park?]