ConstantRegionQ

ConstantRegionQ[reg]
gives True if the reg is a constant region and False otherwise.

DetailsDetails

  • ConstantRegionQ is also known as parameter-free region.
  • A region is considered constant if it does not depend on symbolic parameters.
  • Only constant regions can be discretized using DiscretizeRegion or rendered using Graphics etc.

ExamplesExamplesopen allclose all

Basic Examples  (3)Basic Examples  (3)

A constant region:

In[1]:=
Click for copyable input
Out[1]=

A non-constant region:

In[1]:=
Click for copyable input
Out[1]=

A non-constant region representing a whole family of regions, with random instances below:

In[4]:=
Click for copyable input
Out[4]=

Some operations require constant regions:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

Some operations can give results for non-constant regions:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
Introduced in 2014
(10.0)