MathGroup Archive 2003

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

Search the Archive

Re: Automatic detection for application of NSolve or FindRoot


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?]