I need help with my homework. Does anyone know how to draw a hendecagon(eleven sided shape) on LaTeX or asymptote? Because I have tried many times to find an answer but I can't. So can somebody please help? Thanks!
Asked
Active
Viewed 45 times
6by11in the assignment toregular polygon sides– Andrew Swann May 02 '19 at 06:44for(int b=1; b<2; b+=1){ for(int a=6; a<7; a+=1){ int n=a+5b; pair ctr=(2.5a,-2.5b); real r=1; pair offs=(0,0); if(n==3) {r=2/3; offs=(0,-1/3);} for(int i=1; i<2n; i+=2){ draw(ctr+cis(r/cos(pi/n),270+(i-2)180/n)+offs---ctr+cis(r/cos(pi/n),270+i180/n)+offs,blue); }; }; }; [/asy]
– someone on earth May 05 '19 at 06:18