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