Got rainpro almost working polygon is just a little crooked. will try poly a bit more with your help. thanks for all your help
Here is what I have for rainpro. I am keeping xy axes in until I get it really straight then I will probably drop them.
R←PolyPlot(n s);y;x;y;foot;range;x0;y0;Deg2Rad;theta;i;radius;py;px;pct;area;apothem
⍝ n is number of sides s=side length. So: PolyPlot 5 10 would plot a 5 sided polygon with each side=10
Deg2Rad←{⍵×○1÷180} ⍝ fns to convert degrees to radians for input to trigonometric fns
radius←s÷2×1○Deg2Rad 180÷n ⍝ center to a vertex 1○ is sine
apothem←s÷2×3○Deg2Rad 180÷n ⍝ center to midpt side 3○ is tangent
area←(n×s*2)÷4×3○Deg2Rad 180÷n ⍝ area of polygon 3○ is tangent
x0←y0←0 ⍝ x y location of center of polygon on plot
⍝ see
http://www.mathopenref.com/polygonregulararea.html for explanation of following formulas
theta←(360÷n)×i←0,(⍳n-1),0 ⍝ theta is angle with the x axis for plot based on # of sides (n)
x←x0+radius×2○Deg2Rad theta+i×(2×○1)÷n ⍝ x vertice locations 2○ is cosine
y←y0+radius×1○Deg2Rad theta+i×(2×○1)÷n ⍝ y vertice locations 1○ is sine
ch.New 350 350 ⍝ trying to make x y lengths the same but failing
⍝ ch.Set'syle' 'noaxes' must shut off other stuff to make this work
ch.Set'Head'((⍕n),' Sided Polygon Plot side length=',⍕s)
ch.Set'Footer'(('Perimeter=',⍕n×s),(' Radius=',⍕4⍕radius),(' Apothem=',⍕4⍕apothem),(' Area=',⍕4⍕area))
ch.Set¨(⊂¨'Xrange' 'Yrange'),¨range←⊂¯1 1×⌈/|x,y
ch.Set¨('Xint' 0)('Yint' 0)('forcezero')('XYPLOT,GRID')
ch.Plot⍉↑x y
PG←ch.Close
R←'View PG ⍝ to see it'