Polyspiral: Difference between revisions

m
Line 187:
===Plotting helper functions===
Both versions #1 and #2 are based on using my own small plotting helper functions.
You can find a few others on [http://oeis.org/wiki/User:Anatoly_E._Voevudko/VoeLib.gp#Plotting_helper_functions OEIS Wiki] and here on RC Wiki.
 
<lang parigp>
Line 197:
cartes2(r,a,rndf=0)={my(v,x,y); x=r*cos(a); y=r*sin(a);
if(rndf==0, return([x,y]), return(round([x,y])))}
</lang>
 
===Version #1. Polyspiral (a spiral made of multiple line segments).===
Anonymous user