import gm_tableaux_dev;
import geometry;
//usepackage("fourier");
unitsize(1cm);
string[] x={"-inf","a","b","c","+inf"},
fx={"+inf","f(a)","+inf VI -inf","2\sqrt2","0"},
sd={"","-","0","+","VI","+","O","-"};
add(tabvar(var="t",fonct="g",deriv="g'(t)",
x,fx,
decr,
affderivee=true,sd));
// valeurs par défaut dans l'extension :
real x1=1.2, x2=2.4, y1=1, y2=2;
distance("$x_1$",(0,0),(x1,0),offset=-10mm);
distance("$\frac{x_1}2+4\times x_2+\frac{x_1}2$",(x1,0),(2*x1+4*x2,0),offset=-10mm);
distance("$2x_1+4\times x_2$",(0,0),(2*x1+4*x2,0),offset=-18mm);
distance("$x_1$",(x1/2,0),(x1/2+x1,0),offset=-5mm);
distance("$x_2$",(x1/2+x1,0),(x1/2+x1+x2,0),offset=-5mm);
distance("$x_2$",(x1/2+x1+x2,0),(x1/2+x1+2*x2,0),offset=-5mm);
distance("$x_2$",(x1/2+x1+2*x2,0),(x1/2+x1+3*x2,0),offset=-5mm);
distance("$x_2$",(x1/2+x1+3*x2,0),(x1/2+x1+4*x2,0),offset=-5mm);
distance("$y_1$",(0,0),(0,-y1),rotated=false,offset=10mm);
distance("$y_1$",(0,-y1),(0,-2*y1),rotated=false,offset=10mm);
distance("$\frac{y_1}2+y_2+\frac{y_1}2$",(0,-2*y1),(0,-3*y1-y2),rotated=false,offset=10mm);
distance("$y_1$",(2*x1+4*x2,-y1/2),(2*x1+4*x2,-y1-y1/2),rotated=false,offset=-5mm);
distance("$y_1$",(2*x1+4*x2,-y1-y1/2),(2*x1+4*x2,-2*y1-y1/2),rotated=false,offset=-5mm);
distance("$y_2$",(2*x1+4*x2,-2*y1-y1/2),(2*x1+4*x2,-2*y1-y1/2-y2),rotated=false,offset=-5mm);
distance("$3y_1+y_2$",(2*x1+4*x2,0),(2*x1+4*x2,-3*y1-y2),rotated=false,offset=-17mm);