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

Printed by Mathematica For Students

The document imports data from a CSV file located in a specified directory, plots the data and fits an interpolation function to it. It then shows the original data points and interpolation function on the same 2D plot, and generates a 3D parametric plot of the interpolation function to visualize it in 3 dimensions.

Uploaded by

xoxosabriina
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views

Printed by Mathematica For Students

The document imports data from a CSV file located in a specified directory, plots the data and fits an interpolation function to it. It then shows the original data points and interpolation function on the same 2D plot, and generates a 3D parametric plot of the interpolation function to visualize it in 3 dimensions.

Uploaded by

xoxosabriina
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

In[63]:=

SetDirectory@"UsersSabrinaDocumentsSchoolMath 2120"D
data = Import@"data.csv"D

Out[63]=

UsersSabrinaDocumentsSchoolMath 2120

Out[64]=

88x, y, y2<, 80, 84.61, 42.305<, 87, 35.33, 17.665<, 815.2, 14.61, 7.305<,
826.81, 8.91, 4.455<, 847.33, 7.79, 3.895<, 862.36, 8.36, 4.18<,
881.22, 12.6, 6.3<, 898.91, 46.48, 23.24<, 8118.61, 76.15, 38.075<,
8141.1, 91.43, 45.715<, 8160.85, 93.41, 46.705<, 8179.31, 89.93, 44.965<,
8196.43, 84.6, 42.3<, 8211.26, 79.01, 39.505<, 8222.22, 71.85, 35.925<<

In[41]:=

ListPlot@
Table@
8data@@i, 1DD, data@@i, 3DD<,
8i, 2, 16<
D,
Filling Axis,
AspectRatio Automatic
D
40
30

Out[41]=

20
10

50
In[57]:=

Out[57]=
In[58]:=

100

150

200

f = Interpolation@Table@
8data@@i, 1DD, data@@i, 3DD<,
8i, 2, 16<D,
InterpolationOrder 4
D
InterpolatingFunction@880., 222.22<<, <>D
Plot@f@xD,
8x, 0, 230<,
AspectRatio Automatic,
PlotRange All,
AxesOrigin 80, 0<
D
50
40
30

Out[58]=

20
10

50

100

Printed by Mathematica for Students

150

200

project.nb

In[59]:=

Show@
Plot@f@xD,
8x, 0, 230<,
PlotRange All,
AspectRatio Automatic,
AxesOrigin 80, 0<
D
,
ListPlot@
Table@
8data@@i, 1DD, data@@i, 3DD<,
8i, 2, 16<
D,
Filling Axis,
AspectRatio Automatic
D
D
50
40
30

Out[59]=

20
10

50

100

Printed by Mathematica for Students

150

200

project.nb

In[62]:=

ParametricPlot3D@
8x, f@xD * Cos@tD, f@xD * Sin@tD<,
8x, 0, 230<,
8t, 0, 2 <,
AxesOrigin 80, 0<,
Boxed False,
AxesLabel 8x, y, z<
D

200

40
20
z
0

150
-20

-40
100

50
Out[62]=

20

0
-40 -20

40

Printed by Mathematica for Students

You might also like