Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'How to use fit' topicStudent Support Forum > General > "How to use fit"

< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic
Author Comment/Response
yehuda ben-shimol
10/01/08 3:46pm

Hi,
Sin can take only one argument so this is the reason for the error message

you probably want something like the following

mypoints = {{1, 2}, {2, 6}, {6, 5}}
aaaaa = Fit[mypoints, {1, 1 Sin[x + 1]}, x]
Plot[aaaaa, {x, 1, 6},
Epilog -> {PointSize[0.02], Red, Point /@ mypoints},
PlotRange -> {{0, 7}, {0, 15}}]

yehuda


URL: ,

Subject (listing for 'How to use fit')
Author Date Posted
How to use fit Dr.Elof 09/29/08 3:12pm
Re: How to use fit yehuda ben-s... 10/01/08 3:46pm
Re: Re: How to use fit Peter Pein 10/02/08 3:28pm
< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic