📝 Code source du fichier LaTeX

📄 22matj2me3-exo2.tex

↩ Retour 💾 Fichier tex 📦 Sur la Forge

% !TeX TXS-program:compile = txs:///pdflatex

\documentclass[margin=5mm]{standalone}
\usepackage{ProfLycee}

\begin{document}

\begin{tikzpicture}[x=1cm,y=1cm,xmin=-4,xmax=2,xgrille=1,xgrilles=0.5,ymin=-2,ymax=6,ygrille=1,ygrilles=0.5]
	\AxesTikz[ElargirOx=0/0,ElargirOy=0/0]
	\draw[line width=1.25pt] (1,4pt)--(1,-4pt) node[below] {$1$} ;
	\draw[line width=1.25pt] (-4,4pt)--(-4,-4pt) node[below] {$-4$} ;
	\draw[line width=1.25pt] (4pt,1)--(-4pt,1) node[left] {$1$} ;
	\draw (0,0) node[below left] {$0$} ;
	\draw (-2,0) node[below] {A} (1,0) node[above right] {B} (0,5) node[left] {C} ;
	\clip (\xmin,\ymin) rectangle (\xmax,\ymax) ;
	\draw[very thick,red,samples=250,domain=-4:2] plot (\x,{(1-\x)*(\x+2)*exp(0.5*\x)}) ;
	\draw[very thick,blue,samples=2,domain=-4:2] plot (\x,{5-5*\x}) ;
\end{tikzpicture}

\end{document}