Region of a Maple Leaf
Example from the PscFunctions package
With the help of routines of the PscFunctions package it is possible to obtain parametric equations of plain regions with boundaries
.
Here is an example of the equation of the plane region in the shape of a maple leaf. For that we use the
DPolarPolygon
routine that generates
a parametric equation of the plane region
bounded outside by a contour of a closed polyline.
> | restart; with(PscFunctions): lstMpl:=[[0,1],[-12,4],[-9,6],[-15,14],[-6,12],[-15/2,18],[-3,16],[0,22],[3,16],[15/2,18],[6,12],[15,14],[9,6],[12,4]]: Mpl:=DPolarPolygon(lstMpl,pole=[0,6]): plot3d([Mpl(u,v),0],u=0..14,v=0..1,grid=[43,11],axes=BOXED,style=PATCHNOGRID,orientation=[-60,15]); print('x'=Mpl[1](u,v)); print('y'=Mpl[2](u,v)); |