Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Using FindFit with another function.' topicStudent Support Forum > General > Archives > "Using FindFit with another function."

< Previous CommentHelp | Reply To Comment | Reply To Topic
Author Comment/Response
Peter Pein
10/02/08 5:29pm

Hi Asuquo,

Plotting works because Plot[] has the Attribute HoldAll. The function cle[] will stay unevaluated until the plot-routines feed it with numeric values.

So you have to delay execution of cle[] until concrete values will be given to it.

An usual way to achieve this is to declare:
cle[n_?NumericQ,\[Mu]_?NumericQ,\[Sigma]3_?NumericQ]:=.....

Your notebook has been incomplete; I created a silly example (the Graphics have been deleted before posting to keep the attachment small).

hth,
Peter


Attachment: anotherFindfit.nb, URL: ,

Subject (listing for 'Using FindFit with another function.')
Author Date Posted
Using FindFit with another function. Asuquo 09/29/08 1:46pm
Re: Using FindFit with another function. Peter Pein 10/02/08 5:29pm
< Previous CommentHelp | Reply To Comment | Reply To Topic