Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Fitting an implicit function' topicStudent Support Forum > General > Archives > "Fitting an implicit function"

Next Comment >Help | Reply To Topic
Author Comment/Response
jb
06/06/12 10:57am

(notebook is attached)

The function I want to fit to is:

T == -((A2^2) /(1 + 4 (pos2 - w - P T)^2/k1^2))

The problem is that

func[A2_, k1_, pos2_, P_, w_] :=
Module[{},
T /. NSolve[T == -((A2^2)/(1 + 4 (pos2 - w - P T)^2/k1^2)), T, Reals][[1]]];

func[A2, k1, pos2, P, 14000] /. startpar

leads to an error message. This is because NSolve does not recognize the the replacement command and therefore tries to solve the equation analytically. The same holds true when I use FindFit. Does anyone has an idea how to solve the problem?

Is there another way to fit implicit functions?


Thanks in advance for your help!!!





Attachment: fitimplicitfunc.nb, URL: ,

Subject (listing for 'Fitting an implicit function')
Author Date Posted
Fitting an implicit function jb 06/06/12 10:57am
Re: Fitting an implicit function Michael 06/18/12 11:40pm
Next Comment >Help | Reply To Topic