Download - Wine Glass Graph

Transcript
Page 1: Wine Glass Graph

SetDirectory@"�Users�camo_da_masta�Documents�Spring 13�Calc 2"Ddata = Import@"Data sheet.csv"D

�Users�camo_da_masta�Documents�Spring 13�Calc 2

x y

0 1.68

1 1.7

2 1.715

3 1.68

4 1.595

5 1.315

6 0.995

7 0.525

8 0.3675

9 0.1925

10 0.162

11 0.168

12 0.179

13 0.1895

14 0.329

15 1.471

ListPlot@Table@

8data@@i, 1DD, data@@i, 2DD<,

8i, 1, 17<D,

Filling ® Axis,

AspectRatio ® Automatic

D

2 4 6 8 10 12 14

0.5

1.0

1.5

f = Interpolation@Table@8data@@i, 1DD, data@@i, 2DD<,

8i, 2, 17<D,

InterpolationOrder ® 1

D

InterpolatingFunction@H 0. 15. L, <>D

Printed by Wolfram Mathematica Student Edition

Page 2: Wine Glass Graph

Plot@f@xD,

8x, 0, 15<,

AspectRatio ® Automatic,

PlotRange ® All,

AxesOrigin ® 80, 0<D

2 4 6 8 10 12 14

0.51.01.52.0

Show@Plot@f@xD,

8x, 0, 15<,

PlotRange ® All,

AspectRatio ® Automatic,

AxesOrigin ® 80, 0<D,

ListPlot@Table@

8data@@i, 1DD, data@@i, 2DD<,

8i, 2, 12<D,

Filling ® Axis,

AspectRatio ® Automatic

DD

2 4 6 8 10 12 14

0.5

1.0

1.5

2.0

2 Wine glass mathmatica.nb

Printed by Wolfram Mathematica Student Edition

Page 3: Wine Glass Graph

ParametricPlot3D@8x, f@xD * Cos@tD, f@xD * Sin@tD<,

8x, 0, 15<,

8t, 0, 2 Π<,

AxesOrigin ® 80, 0<,

Boxed ® False,

AxesLabel ® 8x, y, z<D

0

5

10

15

x

-1

0

1

y-101

z

Wine glass mathmatica.nb 3

Printed by Wolfram Mathematica Student Edition