Difference between revisions of "User:Me@home"

Line 6: Line 6:
 
};
 
};
 
pair A[] = { (6.5,0),(1.5,12) };
 
pair A[] = { (6.5,0),(1.5,12) };
string S[] = { "C","B","A","D","3","1" };
 
 
pair P[] = { A[0],A[1],-bar(A[1]),-bar(A[0]),(2A[0]-bar(A[0]))/3,(2A[0]+A[1])/3,
 
pair P[] = { A[0],A[1],-bar(A[1]),-bar(A[0]),(2A[0]-bar(A[0]))/3,(2A[0]+A[1])/3,
 
(5A[0]-4bar(A[0]))/9,(5A[0]+4A[1])/9
 
(5A[0]-4bar(A[0]))/9,(5A[0]+4A[1])/9
Line 12: Line 11:
 
pair D[] = { (2P[4]+P[5])/3,(P[4]+2P[5])/3 };
 
pair D[] = { (2P[4]+P[5])/3,(P[4]+2P[5])/3 };
 
draw( D[0]--P[6] ,blue+1mm);
 
draw( D[0]--P[6] ,blue+1mm);
 +
draw( D[0]--P[4] ,blue+1mm);
 +
draw( P[6]--P[4], black+1mm);
 
pair E[] = {(D[0]+P[6])/2,D[0] + P[6] - P[4]};
 
pair E[] = {(D[0]+P[6])/2,D[0] + P[6] - P[4]};
 
dot(E[0]);dot(E[1]);
 
dot(E[0]);dot(E[1]);
Line 18: Line 19:
 
draw(P[4]--P[5]);
 
draw(P[4]--P[5]);
 
draw(D[1]--P[7]);
 
draw(D[1]--P[7]);
draw( P[0] -- P[1] -- P[2] -- P[3] --cycle) ;
+
draw( P[3] -- P[0] -- P[1]) ;
label( "13", (P[0]+P[1])/2 );
 
label( "13", (0,-1) );
 
label( "13", (P[2]+P[3])/2 );
 
label( "3", (P[1]+P[2])/2 );
 
 
for(int i=0;i<10;++i) {
 
for(int i=0;i<10;++i) {
 
if(i<4) {
 
if(i<4) {
  label( S[i], P[i]);
+
 
 
} else {
 
} else {
 
  dot( (i<8) ? P[i] : D[i-8] );
 
  dot( (i<8) ? P[i] : D[i-8] );

Revision as of 00:14, 15 September 2008

[asy]  unitsize(.5cm); pair bar(pair a) {  return (a.x,-a.y); }; pair A[] = { (6.5,0),(1.5,12) }; pair P[] = { A[0],A[1],-bar(A[1]),-bar(A[0]),(2A[0]-bar(A[0]))/3,(2A[0]+A[1])/3, (5A[0]-4bar(A[0]))/9,(5A[0]+4A[1])/9  }; pair D[] = { (2P[4]+P[5])/3,(P[4]+2P[5])/3 }; draw( D[0]--P[6] ,blue+1mm); draw( D[0]--P[4] ,blue+1mm); draw( P[6]--P[4], black+1mm); pair E[] = {(D[0]+P[6])/2,D[0] + P[6] - P[4]}; dot(E[0]);dot(E[1]); draw(P[6]--E[1],red+1mm); draw(P[4]--E[1],red+1mm); draw(P[4]--P[5]); draw(D[1]--P[7]); draw( P[3] -- P[0] -- P[1]) ; for(int i=0;i<10;++i) { if(i<4) {  } else {  dot( (i<8) ? P[i] : D[i-8] ); } };  [/asy]