Professional Documents
Culture Documents
ListPlot[
Table[
{data[[i,1]],data[[i,2]]},
{i,2,26}
],
Filling->Axis,
AspectRatio->Automatic
]
f=Interpolation[Table[
{data[[i,1]],data[[i,2]]},
{i,2,26}],
InterpolationOrder->1
]
InterpolatingFunction[({
{0., 6.708}
}),<>]
Plot[f[x],
{x,0,6.6708},
AspectRatio ->Automatic,
PlotRange->All,
AxesOrigin->{0,0}
]
Show[
Plot[f[x],
{x,0,6.708},
PlotRange->All,
AspectRatio ->Automatic,
AxesOrigin->{0,0}
]
,
ListPlot[
Table[
{data[[i,1]],data[[i,2]]},
{i,2,26}
],
Filling->Axis,
AspectRatio->Automatic
]
]
ParametricPlot3D[
{x,f[x]*Cos[t],f[x]*Sin[t]},
{x,0,6.708},
{t,0,2p},
AxesOrigin->{0,0},
Boxed->False,
AxesLabel->{x,y,z}
]
1.)Mathematica Integration:
p*NIntegrate[f[x]^2,{x,0,6.708}]
23.5649
2.)Simpsons Rule:
((6.708-0)/(3*26))(4.7476^2 +
4*4.296^2+2*3.7511^2+4*3.3472^2+2*2.8881^2+4*2.5275^2+2*
2.1074^2+4*1.6185^2+2*1.2814^2+4*1.0811^2+2*1.0566^2+4*.8
897^2+2*.7204^2+4*.5976^2+2*.5788^2+4*.4602^2+2*.4389^2+
4*.4295^2+2*.4224^2+4*.4314^2+2*1.1476^2+4*1.8425^2+2*2.
4255^2+4*2.9303^2+3.1751^2)
27.7683
3.)Trapazoid Rule:
((6.708-0)/(2*26))(4.7476^2 +
2*4.296^2+2*3.7511^2+2*3.3472^2+2*2.8881^2+2*2.5275^2+2*
2.1074^2+2*1.6185^2+2*1.2814^2+2*1.0811^2+2*1.0566^2+2*.8
897^2+2*.7204^2+2*.5976^2+2*.5788^2+2*.4602^2+2*.4389^2+
2*.4295^2+2*.4224^2+2*.4314^2+2*1.1476^2+2*1.8425^2+2*2.
4255^2+2*2.9303^2+3.1751^2)
27.837