Code : Tout sélectionner
import geometry;
//taille de l'image
size(7cm,0);
//Cercle C et point M sur le cercle
draw(unitcircle);
pair pM=(1*dir(130)), pO=(0,0);
dot("$M$",pM,NW);
dot("$O$",pO,E);
//droite (OM) et médiatrice de [OM]
draw(line(pM,pO));
line medAB=bisector(pM,pO);
draw (medAB);
//intersection de la médiatrice et du cercle ; tracé des tangentes
path cerc=unitcircle, droite=rotate(90,(pM+pO)/2)*(interp(pM,pO,-2)--interp(pM,pO,2));
point[] inter=intersectionpoints(cerc,droite);
dot("$P_1$",inter[0],N);
dot("$P_2$",inter[1],W);
draw(tangent(cerc,inter[0]));
La compilation donne :
Code : Tout sélectionner
$ asy transformations_ex.asy
transformations_ex.asy: 82.13: no matching function 'tangent(path, point)'
Je ne comprends pas. je prend le code des sites http://www.marris.org ethttp://www.piprime.fr/files/asymptote/geometry/index.html
merci de votre aide
maurice