plots
implicitplot3d
three-dimensional implicit plotting
Calling Sequence
Parameters
Description
Examples
implicitplot3d(expr, x=a..b, y=c..d, z=p..q, options)
implicitplot3d(f, a..b, c..d, p..q, options)
expr
-
equation containing expressions in x, y, and z
f
equation containing procedures or operators
a, b, c, d, p, q
real constants
options
(optional) plot options; see plot3d/option
The implicitplot3d command computes the three-dimensional plot of an implicitly defined surface. It uses an numerical algorithm based on triangulation into tetrahedrons combined with simple interpolation. No symbolic computation is done. By default, the surface is given in Cartesian coordinates.
In the first call, implicitplot3d(expr, x=a..b, y=c..d, z=p..q), the equation expr must have components that are expressions in the names x, y, and z. The expr parameter can also be an expression instead of an equation, in which case the equation expr = 0 is plotted. The ranges a..b, c..d, and p..q must evaluate to real constants.
In the second call, implicitplot3d(f, a..b, c..d, p..q), the assumption is made that the equation f consists only of procedures or operators taking no more than three arguments. The f parameter can also be a procedure or operator instead of an equation, in which case the equation f = 0 is plotted. Operator notation must be used, that is, the procedure name is given without parameters specified, and the ranges must be given simply in the form a..b, c..d, and p..q rather than as equations.
Because the implicitplot3d command samples the function being plotted and builds the final image from the sample, it does not detect discontinuities in the function. Instead, the function is interpolated across the discontinuities.
Any additional arguments are interpreted as options which are specified as equations of the form option = value. For example, the option grid = [m, n, r] where m, n, and r are positive integers specifies that the plot is a surface to be constructed on an m by n by r grid at equally spaced points in the ranges a..b, c..d, and p..q respectively. By default a 30 by 30 by 30 grid is used. In contrast, the numpoints = k option controls the total number of points, so the grid will have approximately root⁡k,3 points in each direction. The remaining options are the same as those used in plot3d. For more information, see plot3d/option. The gridstyle option is not available for implicitplot3d.
If expr or f is a set or list, then its members are plotted together. If it is a list, then particular option values can also be given as lists, with elements corresponding to elements of expr or f. The options that can take lists as values are: color, coords, linestyle, numpoints, shading, style, symbol, symbolsize, thickness, and transparency.
The result of a call to implicitplot3d is a PLOT3D data structure containing enough information to render the plot. You can assign a PLOT3D value to a variable, save it in a file, then read it back in for redisplay. For more information, see plot3d/structure.
with⁡plots:
Plot a sphere x2+y2+z2=5.
implicitplot3d⁡x2+y2+z2=5,style=surface,color=Niagara Azure
You can plot surfaces using different coordinate systems.
implicitplot3d⁡r=1.3x⁢sin⁡y,r=0.1..5,x=−1..2⁢π,y=0..π,coords=spherical,grid=10,10,10
implicitplot3d⁡r2+z2=9,r=0..3,θ=−π..π,z=−3..3,coords=cylindrical,grid=10,10,10
Use the operator form of the command.
p:= proc(x, y, z) if x^2<y then x^2+y^2 else x-y end if end proc:
implicitplot3d⁡p,−2..2,−1..3,0..3,grid=10,10,10
Use a set or a list to combine plots.
implicitplot3d⁡y=exp⁡−x⁢z,x2−y2+z2=1,x=−π..π,y=−π..π,z=−1..1,grid=10,10,10
implicitplot3d⁡x+22+y+22+z+22=9,x−22+y−22+z−22=6,color=blue,green,orientation=30,30,30,scaling=constrained,axes=none,grid=10,10,10
The command to create the plot from the Plotting Guide is
implicitplot3d⁡x3+y3+z3+1=x+y+z+13,x=−2..2,y=−2..2,z=−2..2,grid=13,13,13
See Also
plot3d/option
plot3d/structure
plots[implicitplot]
Download Help Document