N Dimensions - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

PolyhedralSets[ExampleSets][NDimensions]

examples of n-dimensional polyhedral sets

Hyperoctant

create an n-dimensional polyhedral set from an octant

RandomSolid

create a random, bounded polyhedral set

RandomSet

create a random polyhedral set

 

Calling Sequence

Parameters

Description

Compatibility

Examples

Calling Sequence

SetName(n, varname)

SetName(coords)

Hyperoctant(n, varname)

Hyperoctant(oct)

Hyperoctant(oct, varname)

Hyperoctant(oct, optcoords)

RandomSolid(nv, n, varname)

RandomSolid(nv, optcoords)

RandomSet(nf, n, varname)

RandomSet(nf, optcoords)

Parameters

SetName

-

procedure name; one of Simplex, Hypercube, UniversalSet, or EmptySet

n

-

integer; number of dimensions

coords

-

list of names; the set's coordinates

optcoords

-

(optional) list of names; the set's coordinates

varname

-

(optional) name; variable name to use in forming the coordinates, default is

oct

-

list of integers; list of +1's and -1's defining the hyperoctant

nf

-

integer; number of faces

nv

-

integer; number of vertices

Description

• 

The calling sequence SetName(n) where SetName is one of Simplex, Hypercube, UniversalSet or EmptySet creates an -dimensional polyhedral set with the default coordinate names.  Alternatively, SetName(n, varname) can be used to create sets whose coordinates are  or the coordinates can be specified explicitly using SetName(coords).

• 

Simplex is the -dimensional rectangular simplex that has  facets.  Its vertices are formed of the unit vectors and the origin.

• 

Hypercube is the -dimensional hypercube that spans  in each dimension.

• 

The UniversalSet contains every point in -dimensional space, while the EmptySet contains no points.

• 

Hyperoctant, RandomSolid and RandomSet accept additional parameters.  The hyperoctant can be specified using oct, a vector of  positive and/or negative ones.  The th entry in oct selects whether the positive or negative half-space of the th coordinate is used to form the hyperoctant.  The default is all positive ones, which corresponds to quadrant I in two dimensions and octant I in three dimensions.

• 

RandomSolid generates a bounded polyhedral set with nv vertices by choosing random points near the surface of the -sphere.  If the set's coordinates are not specified using RandomSolid(nv, optcoords), then the dimension of the space must be given with the call sequence RandomSolid(nv, n).  The number of vertices nv must be greater than the dimension of the space in order to generate a solid.

• 

RandomSet generates a polyhedral set with nf faces.  The resultant figure may be bounded or unbounded, whereas RandomSolid always returns a bounded set.  As with RandomSolid, either the dimension of the space must be given using RandomSet(nf, n) or the coordinates must be given using RandomSet(nf, optcoords).

Compatibility

• 

The Simplex, Hypercube, UniversalSet, and EmptySet commands were introduced in Maple 2015.

• 

The Hyperoctant, RandomSolid, and RandomSet commands were introduced in Maple 2015.

• 

For more information on Maple 2015 changes, see Updates in Maple 2015.

Examples

(1)

The hypercube in 2-D is a square and a cube in 3-D.

Higher dimensional cubes can be created, but only those set in two or three dimensions can be plotted.

(2)

The simplex in 2-D is a right angled triangle, while in 3-D it is a trirectangular tetrahedron.

The universal set is the whole of the ambient space, while the empty set contains no points.

RandomSolid always generates a bounded set. Here is a set with 5 vertices in 3-D:

RandomSet can generate sets that are bounded or unbounded.  If less than  faces are requested, the set will be unbounded, like this set with 5 faces in 6 dimensions.

(3)

(4)

See Also

Example Three-Dimensional Polyhedral Sets

PolyhedralSets[PolyhedralSet]

PolyhedralSets

 


Download Help Document