home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: sci.math.symbolic
- Path: sparky!uunet!stanford.edu!leland.Stanford.EDU!sarrenhe
- From: sarrenhe@leland.Stanford.EDU (mo Saarenheimo)
- Subject: Plotting implicite functions in Mathematica
- Message-ID: <1992Nov19.174001.1294@leland.Stanford.EDU>
- Sender: news@leland.Stanford.EDU (Mr News)
- Organization: DSG, Stanford University, CA 94305, USA
- Date: Thu, 19 Nov 92 17:40:01 GMT
- Lines: 23
-
- I am using Mathematica, and my problem is the following:
-
- I have an implicite function F(X,A)=0, 0<A<1, which can not be solved
- explicitly for X. I wish to plot X as a function of A. Here's the best
- I've been able to work out.
-
- Plot[X/.FindRoot[F[X,A]==0,{X,Xinit}],{A,0,1}]
-
- The obvious problem with this approach is that, for every value of A, the
- iteration for X begins from the same initial value Xinit. This is, of
- course, inefficient, and often there exists no initial value Xinit for
- which the iteration converges for every value of A.
-
- Since F(X,A) is continuous, the obvious alternative is to use the solution
- reached by FindRoot for previous value of A as the initial value for the
- next iteration.
-
- Can somebody suggest an elegant and efficient way to do this?
-
- Thanks in advance,
-
- Tuomas Saarenheimo
-
-