// import geometry_dev; // extension devenue l'extension geometry officielle import geometry; // le 12/05/09, dans la version 1.71 d'asymptote. :-)) import graph_pi; size(7cm,0); graphicrules(xunit=1cm, yunit=1cm, xmin=-3, xmax=3, ymin=-3, ymax=7, crop=Crop ); show(defaultcoordsys); coordsys R=cartesiansystem((2,1),i=(1,1),j=(-1,1)); show("$O'$","$\vec{u}$","$\vec{v}$",R); // On définit la fonction et sa courbe (chemin) real f(real x) {return x^2;} path Cf=graph(f,n=400); // R* indique Cf doit être tracée dans R draw(R*Cf,linewidth(1bp)); // On limite la taille de l'image : xlimits(-2,3,Crop); ylimits(-2,5,Crop);