diff --git a/DMmath/DM23/DM23.pdf b/DMmath/DM23/DM23.pdf index f3de600..14eb076 100644 Binary files a/DMmath/DM23/DM23.pdf and b/DMmath/DM23/DM23.pdf differ diff --git a/DMmath/DM23/DM23.typ b/DMmath/DM23/DM23.typ index 5c73275..483035e 100644 --- a/DMmath/DM23/DM23.typ +++ b/DMmath/DM23/DM23.typ @@ -1,6 +1,7 @@ #import "/template.typ": * #import "/transposition.typ": * #import "@preview/drafting:0.2.0":* +#import "/tabvar.typ": * #set heading( numbering: (..numbers) => { @@ -316,46 +317,46 @@ cases( ) $\ Ainsi, à l'aide de la question précédente, on obtient les tableaux de variation suivant: + +// #tabvar( +// init:( +// "variable": $x$, +// "label": (([variation de $s$], variation)) +// ), +// T: ($0$, $p/2$, $p$, $(3p)/2$, $2p$), +// content: ( +// ((top, $1$), (center,$0$), (bottom, $-1$), (center, $0$), (top, $1$)) +// ), +// ) + #align(center)[ - #table( - columns: (5em, 30em), - align: center, - $x$, $0$ +h(6.35em)+ $p/2$ + h(6.35em) + $p$ + h(6.35em) + $(3p)/2$ + h(6.35em) + $2p$, - [Variation de $s$], [] +#tabvar( + init: ( + "variable":$x$, + "label":(([varation de $s$], variation),) + ), + T: ($0$, $p/2$, $p$, $(3p)/2$, $2p$), + content: ( + ((center,$0$),(top,$1$),(center,$0$),(bottom,$-1$), (center, $0$)), + ), ) ] -#move(dx:8.5em, dy: -2.2em, $0$) -#move(dx:15.5em, dy: -5.8em, $1$) -#move(dx:22.5em, dy: -6.8em, $0$) -#move(dx:29em, dy: -7.8em, $-1$) -#move(dx:37.1em, dy: -11.5em, $0$) -#line(start :(9.2em,-11.27em), end :(14.8em,-12.77em)) -#move(dx:14.68em, dy:-14.458em)[#rotate(-15deg)[#sym.triangle.filled]] -#line(start :(16.3em,-16em), end :(28.3em,-14.37em)) -#move(dx:28.2em, dy:-16em)[#rotate(7deg)[#sym.triangle.filled]] -#line(start :(9.2em+21.5em,-11.27em-6em), end :(14.8em+21.5em,-12.77em-6em)) -#move(dx:14.68em+21.5em, dy:-14.458em-6em)[#rotate(-15deg)[#sym.triangle.filled]] -#v(-19em) + Et #align(center)[ - #table( - columns: (5em, 30em), - align: center, - $x$, $0$ +h(6.35em)+ $p/2$ + h(6.35em) + $p$ + h(6.35em) + $(3p)/2$ + h(6.35em) + $2p$, - [Variation de $c$], [] + #tabvar( + init:( + "variable":$x$, + "label":(([variation de $c$], variation),) + ), + T: ($0$, $p/2$, $p$, $(3p)/2$, $2p$), + content: ( + ((top, $1$),(center, $0$),(bottom, $-1$),(center, $0$),(top, $1$)), + ), ) ] -#move(dx:8.5em, dy: -4em, $1$) -#move(dx:15.5em, dy: -4.97em, $0$) -#move(dx:22em, dy: -6em, $-1$) -#move(dx:29.5em, dy: -8.67em, $0$) -#move(dx:37.1em, dy: -11.5em, $1$) -#line(start :(16.3em-7.3em,-16.07em+3em), end :(28.3em-7.3em,-14.4em+3em)) -#move(dx:28.2em-7.3em, dy:-16.03em+3em)[#rotate(7deg)[#sym.triangle.filled]] -#line(start :(28.3em+8.2em,-15.98em), end :(16.3em+7.4em,-14.37em)) -#move(dx:28.3em+8.1em, dy:-17.658em)[#rotate(-7deg)[#sym.triangle.filled]] -#v(-5em) #QED + #pagebreak() ==== \ Soit $x in RR$ diff --git a/tabvar.pdf b/tabvar.pdf index b68e0a4..2de6a47 100644 Binary files a/tabvar.pdf and b/tabvar.pdf differ diff --git a/tabvar.typ b/tabvar.typ index 4364fff..8afb57e 100644 --- a/tabvar.typ +++ b/tabvar.typ @@ -5,7 +5,6 @@ #let tabvar( //parameter - aligne: center, //alignement of the table content: (), //the content init: ( "variable": [], //the variable of the table @@ -34,7 +33,7 @@ } ), ), - edge((-0.74,1),(T.len()+0.1,1), stroke: stroke), // ligne de séparation x du reste + edge((-0.86,0.87),(T.len()+0.13,0.87), stroke: stroke), // ligne de séparation x du reste edge((0.36,-4),(0.36,init.at("label").len()*3+0.9 + if init.at("label").last().last() == signe{3.5}), stroke: stroke), // ligne de séparation des label, des varations node((-0.19,0), (init.at("variable")), width: 2cm), for i in range(T.len()-1){ node((i+2/3, 0), T.at(i), width: (2/3)*1cm) @@ -91,7 +90,7 @@ content: ( ((top,$t 101$),(center,$c 111$),(bottom,$b 121$),(bottom,$b 231$),(center,$c 241$), (bottom, $b 251$)), ($-$, $-$, $+$,$-$,$-$), - ((top,$t 1 02$),(center,$c 112$),(bottom,$b 122$),(top,$t 232$),(center,$c 242$), (bottom, $b 252$)), + ((top,$t 1 02$),(center,$c 112$),(bottom,$b 122$),(top,$t 232$),(bottom,$b 242$), (bottom, $b 252$)), ($+$, $-$, $+$, $-$, $+$), ), arrow: "->", diff --git a/template.pdf b/template.pdf index 0c0239a..bd3fef4 100644 Binary files a/template.pdf and b/template.pdf differ diff --git a/template.typ b/template.typ index 9567cd4..4c55568 100644 --- a/template.typ +++ b/template.typ @@ -29,6 +29,13 @@ } (l,) }) +#let M0(n) = math.mat(..for x in range(n){ + let l = () + for y in range(n){ + l.push(0) + } + (l,) +}) #let tend(n, val) = $limits(-->)_(#n -> #val)$ #let undermath(body, col: red)= { style(styles => {