Blame view

Giac_maj/giac-1.4.9/examples/geo/Ngone.cas 190 Bytes
6663b6c9   adorian   projet complet av...
1
2
3
4
5
6
7
8
9
10
11
   
  (A,B,n)-> 
  { local l,C; 
    l:=[];  
    for (j:=1;j<=n;j:=j+1) { 
        l:=append(l,segment(A,B));  
        C:=rotation(B,(n-2)*pi/n,A);  
        A:=B;  
        B:=C;  
      };  
    return(l); }