0% found this document useful (0 votes)
8 views

Fit

The document shows data points being fitted to linear and logarithmic models and plotted. The linear model is fitted as y=33.1462 - 0.108206x and the logarithmic model is fitted as y=39.1504 - 2.83959Log(x). Both models are plotted along with the original data points.

Uploaded by

Rage_
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views

Fit

The document shows data points being fitted to linear and logarithmic models and plotted. The linear model is fitted as y=33.1462 - 0.108206x and the logarithmic model is fitted as y=39.1504 - 2.83959Log(x). Both models are plotted along with the original data points.

Uploaded by

Rage_
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

In[1]:= data = 8810, 32.6<, 820, 30.7<, 830, 29.5<, 838, 28.

7<, 852, 28<<

Out[1]= 8810, 32.6<, 820, 30.7<, 830, 29.5<, 838, 28.7<, 852, 28<<

In[2]:= line = Fit@data, 81, x<, xD

Out[2]= 33.1462 - 0.108206 x

In[3]:= Plot@line, 8x, 0, 60<D

33

32

31

Out[3]= 30

29

28

10 20 30 40 50 60

In[4]:= Show@Plot@line, 8x, 0, 60<D, ListPlot@dataDD

33

32

31

Out[4]= 30

29

28

10 20 30 40 50 60

In[6]:= log = Fit@data, 81, Log@xD<, xD

Out[6]= 39.1504 - 2.83959 Log@xD

In[10]:= Show@Plot@8line, log<, 8x, 0, 60<D, ListPlot@data, PlotStyle ® RedDD

38

36

34

Out[10]=
32

30

10 20 30 40 50 60
2 Untitled-1

In[13]:= FindFit@data, a Log@xD + b, 8a, b<, xD

Out[13]= 8a ® - 2.83959, b ® 39.1504<

You might also like