3D Graph
Gabriel's Horn
Revolve y = 1/x from 1 to a around the x-axis. The volume stays finite while the surface area grows without bound.
gabriel_horn() revolves y = 1/x from x = 1 to x = a around the x-axis. The parametrization is X = u, Y = cos(v)/u, Z = sin(v)/u. The slider starts at a = 30 and rebuilds the mesh in the same 3D viewer.
The volume is the exact finite value V = π(1 − 1/a). The surface area is A = 2π ∫ from 1 to a of (1/x)√(1 + 1/x^4) dx, which has no elementary antiderivative. As a grows, V approaches π and A grows without bound.
Equation
gabriel_horn()
How the 3D scene is built
A 3D example is drawn in the existing surface viewer, not on the flat JSXGraph board. An equation z = f(x, y) becomes a height field. A quadric such as a sphere or hyperboloid uses its own sampler. A parametric3d or curve3d command supplies the coordinates directly.
The camera starts framed on the surface. Axes and the grid stay in the scene. Implicit surfaces are extracted with marching cubes from F(x, y, z) = 0. If you edit the equation and generate again, the same viewer replaces the mesh instead of opening a second renderer.
Reading the input
gabriel_horn()— This is a command. The name selects the routine, and the items inside the parentheses are its arguments.
Try a change
- Change a constant on the right-hand side, or the amplitude of a wave, and generate. The 3D frame updates to the new surface.
- If this is z = f(x, y), try z = -f(x, y). The shape flips through the xy-plane.
Generate Graph sends the expression to the graph engine. A 3D result is drawn in the surface viewer: a mesh, a space curve, or a shaded region, depending on the command. The 2D board is cleared first.