Sei sulla pagina 1di 3

Finding the volume of an object The teacher assigned students to take the volume of several objects.

The first step I did was to measure the objects longitude and divided by thirty three intervals (delta x), the greater the delta x are the more accuracy of the volume. There are various ways of taking the volume of an object. There is the easiest way to do that called Mathematica that I will use. Due to the symmetry of the object, I divided the object by half this way I will have a X axis and aY axis like illustrate below

The next step is to plug in the values of the X axis and the Y axis values have to be divided by two because the object is divided in half. I used the commandMatrixForm in mathematica following by the values This problem would be easier if I know the equation of f(x), but I dont

. This is why I have to use mathematica in order to do this problem. Knowing the equation of f(x) Im able to find the volume of the object with methods learned in Calculus one such as washer or disk method. Mathematica interprets the series of points of my object and give me the equation of f(x). Next I used the command below to get the dotted line formed by the values of my object giving the dotted line a shape like my object. ListPlot[Table[{data[[i, 1]], data[[i, 2]]},{i, 1, 33}],Filling -> Axis,AspectRatio -> Automatic Then I used a command that gave me the interpretation of f(x). After that I used this commands f = Interpolation [Table [ {Data [[i, 1]], data [[i, 2]]}, {i, 1, 23}], InterpolationOrder -> 1] Plot[f[x], {x, 0, 95.2} ,AspectRatio -> Automatic,PlotRange -> All,AxesOrigin -> {0, 0}]Show[Plot[f[x] ,{x, 0, 99.53} ,PlotRange -> All,AspectRatio -> Automatic AxesOrigin -> {0, 0}],ListPlot[Table[{data[[i, 1]], data[[i, 2]]},{i, 1, 33}],Filling -> Axis,AspectRatio -> Automatic]], then we used other command to get the real picture of my object.ParametricPlot3D[{x, f[x]*Cos[t], f[x]*Sin[t]},{x, 0, 3.3},{t, 0, 2 \[Pi]},AxesOrigin -> {0, 0},Boxed -> False,AxesLabel -> {x, y, z}] There is my object, now I used a rule called Simpsons rule which is the sum of the intervals like f(x)+4f(x1)+2f(x2)+4f(x3)+2f(x4) and so on and multiplied by (b-a/3) b and a are where start the large of the object till it ends.

But this formula is for the area but I want to know the volume so I used the disk method which

is I had to square every single value in the formula in order to obtain the volume, and there is my volume, then I verify in mathematica using this command Pi*NIntegrate[f[x]^2, {x, 03.3}], we have f(x) because this program make an interpretation of f(x).

Potrebbero piacerti anche