8.1.3 Cartesian

• Cartesian( <f(x)> [, n, 1] ) or Cartesienne( <f(x)> [, n, 1] ).
• Description: draw the cartesian curve whose equation is $y=f\left(x\right)$. The <n> parameter (optional) is an integer (5 by default) is here to set the step: When the distance between two consecutive points is above a limit, then an intermediate point is calculated [using dichotomy], it can be iterated n times. After n iterations, if the distance is still above the limit and the optional value $1$ is present, then a discontinuity (jump) is inserted in the point list.

 \begin{texgraph}[name=Cartesienne,export=pgf]   view(-2,2,-0.1,2),Marges(0.5,0.5,0.5,0.5),   size(7.5), tMin:=-2, tMax:=2,   Color:=darkgray, Width:=8,   LineStyle:=dotted, Grille(0,0.5*(1+i)),   Color:=black, LineStyle:=solid,Axes(0,1+i,1),   NbPoints:=100, Width:=8, Color:=darkseagreen,   Cartesienne(x*Ent(1/x),5,1)   \end{texgraph}

Curve and discontinuity