import graph; unitsize(1cm,.5cm); real xmin=-4,xmax=4; real ymin=-2,ymax=10; // Définition de la fonction real f(real x) {return x^2;} // Tracé de la courbe path Cf=graph(f,xmin,xmax,n=400); draw(Cf,linewidth(1bp)); xlimits(-4.5,4.5,Crop); ylimits(-2.5,10,Crop); xaxis(Label("$x$",position=EndPoint, align=NE), xmin=xmin,xmax=xmax, Ticks(scale(.7)*Label(align=E), NoZero, begin=false,beginlabel=false, end=false,endlabel=false, Step=1,step=.25, Size=1mm, size=.5mm, pTick=blue,ptick=gray), Arrow); yaxis(Label("$y$",position=EndPoint, align=NE), ymin=ymin,ymax=ymax, Ticks(scale(.7)*Label(), NoZero, begin=false,beginlabel=false, end=false,endlabel=false, Step=1,step=.5, Size=1mm, size=.5mm, pTick=blue,ptick=gray), Arrow); shipout(bbox(1cm,Fill(white)));