Hi! Can anyone please help me? I just downloaded Mathematica and I haven’t found out how it works yet… I am trying to find a fit for a set of data in Mathematica, but a problem that I don’t understand seems to pop up.
This is what I wrote, but it seems there is a problem because it says “search specification 271306 e^0.059 t without variables should be a
list with 1 to 4 elements. >>”… What am I doing wrong?
It is important to use the correct syntax when calling a function. Built in functions and constant are capitalized.
Instead of:
271306 e^0.059 t
Try writing out:
271306 E^(0.059 t)
Take a look at the documentation for FindFit. FindFit takes 4 arguments. You have provided 4 arguments in your example above, but they aren’t the correct kind. You most likely are looking to run something like:
If you are new to using the Wolfram Language for programming, take a look at the Virtual Book which will show you some of the basics about how to program with it:
Also Try a ListPlot of your data and you will see it is more likely to
need a quadratic fit,The last part of Fit becomes {1,x,x^2},x if you are looking for a quadratic fit.