New in Wolfram
Mathematica
8: New and Improved Scientific and Information Visualization
◄
previous
|
next
►
Graphics & Visualization
Visualize 3D Riemann Sums
Show Riemann sum approximations to the volume under a surface.
In[1]:=
X
plot = Plot3D[Sqrt[1 - x^2 - y^2], {x, -1, 1}, {y, -1, 1}, PlotStyle -> Directive[Opacity[0.5], Yellow], MeshStyle -> LightGray];
In[2]:=
X
Grid[Partition[ Table[Show[plot, DiscretePlot3D[Sqrt[1 - x^2 - y^2], {x, -1, 1, d}, {y, -1, 1, d}, ExtentSize -> Full, FillingStyle -> Opacity[1], PlotStyle -> Lighter[Blue]], Lighting -> "Neutral", ImageSize -> 275, Boxed -> False, PlotRangePadding -> 0, AxesEdge -> {{1, -1}, {-1, -1}, {-1, 1}}], {d, {1, 1/2, 1/4, 1/8}}], 2]]
Out[2]=