Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Create quadrilateral polygon with two parallel sides
ResourceFunction["Trapezoid"][a,α,b,β] represents a filled trapezoid with parallel sides with lengths a and b, and base angles α and β. |
A trapezoid with sides 2 and 6 and base angles of 60° and 30°:
In[1]:= |
Out[1]= |
Visualize it:
In[2]:= |
Out[2]= |
Compute the area of this shape:
In[3]:= |
Out[3]= |
Get symbolically-computed coordinates for the vertices of a trapezoid:
In[4]:= |
Out[4]= |
A trapezoid with a base side of length 0 may represent a triangle:
In[6]:= |
Out[6]= |
In[7]:= |
Out[7]= |
A trapezoid with equal sides is ambiguous; therefore, it degenerates into a line:
In[8]:= |
Out[8]= |
A trapezoid with parallel left and right sides stretches out to infinity:
In[9]:= |
Out[9]= |
A trapezoid with equal base sides and parallel left-right sides is indeterminate:
In[10]:= |
Out[10]= |
This work is licensed under a Creative Commons Attribution 4.0 International License