Source
25 setxunit
7.5 setborder
90 setangle_repere
-1 5 setxrange
-5 5 setyrange
/quadrillagegray 0.4 def
1 setquadrillagexstep
1 setquadrillageystep
quadrillage
1 1 settkstep
.5 .5 setsubtkstep
2 2 setmkstep
ticks
subticks
marks
traceaxes
axesarrow
unites
/f {setxvar
#rpn#   (1/2)*x^3-3*x^2+(9/2)*x-1
} def
/f' {setxvar
#rpn#   (3/2)*x^2-6*x+9/2
} def
gsave
   noir
   .75 setlinewidth
   continu
   {f} courbe
grestore
2.8 settailletangente
1 (f) tangente
 3 (f) tangente
 4 (f) tangente
8 settailletangente
 2 (f) tangente