0% found this document useful (0 votes)
25 views4 pages

Interpolatingfunction 0., 207.45 ,: Printed by Wolfram Mathematica Student Edition

The document contains code that: 1) Plots a list of (x,y) coordinate pairs and fits an interpolation function to the data. 2) Uses the interpolation function to plot the curve and generate a 3D parametric plot by revolving the curve about the x-axis. 3) Combines the interpolation plot with the original data points and displays the results.

Uploaded by

zcaitlin94
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)
25 views4 pages

Interpolatingfunction 0., 207.45 ,: Printed by Wolfram Mathematica Student Edition

The document contains code that: 1) Plots a list of (x,y) coordinate pairs and fits an interpolation function to the data. 2) Uses the interpolation function to plot the curve and generate a 3D parametric plot by revolving the curve about the x-axis. 3) Combines the interpolation plot with the original data points and displays the results.

Uploaded by

zcaitlin94
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/ 4

In[43]:=

ListPlot@8880, 34.405<, 813.38, 39.13<, 827.66, 43.81<, 841.49, 46.41<,


855.32, 48.415<, 869.15, 47.23<, 882.98, 44.605<, 896.81, 34.685<,
8110.64, 21.025<, 8124.47, 5.57<, 8138.3, 4.095<, 8152.13, 3.6<,
8165.96, 3.42<, 8179.79, 3.845<, 8193.62, 10.075<, 8207.45, 42.32<<<,
Filling Axis
D
40

30
Out[43]=

20

10

50
In[8]:=

Out[8]=

In[11]:=

100

150

200

f = Interpolation@880, 34.405<, 813.38, 39.13<, 827.66, 43.81<, 841.49, 46.41<,


855.32, 48.415<, 869.15, 47.23<, 882.98, 44.605<, 896.81, 34.685<,
8110.64, 21.025<, 8124.47, 5.57<, 8138.3, 4.095<, 8152.13, 3.6<,
8165.96, 3.42<, 8179.79, 3.845<, 8193.62, 10.075<, 8207.45, 42.32<<,
InterpolationOrder 1D
InterpolatingFunction@880., 207.45<<, <>D
Plot@f@xD,
8x, 0, 208<,
AspectRatio Automatic,
PlotRange All,
AxesOrigin 80, 0<
D
50
40
30

Out[11]=

20
10
50

100

150

200

Printed by Wolfram Mathematica Student Edition

Volume.pdf

In[14]:=

Show@Plot@f@xD, 8x, 0, 208<D,


ListPlot@880, 34.405<, 813.38, 39.13<, 827.66, 43.81<, 841.49, 46.41<,
855.32, 48.415<, 869.15, 47.23<, 882.98, 44.605<, 896.81, 34.685<,
8110.64, 21.025<, 8124.47, 5.57<, 8138.3, 4.095<, 8152.13, 3.6<,
8165.96, 3.42<, 8179.79, 3.845<, 8193.62, 10.075<, 8207.45, 42.32<<,
Filling AxisDD
40

30
Out[14]=

20

10

50

100

150

200

Printed by Wolfram Mathematica Student Edition

Volume.pdf

In[15]:=

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

20

0
-20
-40

Out[15]=

50

50

100
0
x

150

-50

200

Printed by Wolfram Mathematica Student Edition

Volume.pdf

Printed by Wolfram Mathematica Student Edition

You might also like