Historique des modifications [retour]
cliquez ici pour masquer/afficher la révision 3
mineure titre

21 Nov '22, 19:19

Pathe's gravatar image

Pathe
7.6k49208252

comment Comment tracer le graphique d'une fonction ?

Je souhaite tracer le graphe de la fonction h(t)=-0.2t^{3}+10.6t^{2}-100t+1250. Pour commencer, j'ai essayé ceci : J'ai regardé la présentation que Denis Bitouzé avait faite sur pgfplots. Pour commencer, j'ai essayé : \documentclass[11pt]{article} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage[french]{babel} \pagestyle{empty} \usepackage{tkz-tab} \usepackage{amssymb} \usepackage{amsmath} \usepackage{gensymb} \usepackage{mathrsfs} \usepackage{tikz} \usepackage{pgfplots} % pour les graphiques \pgfplotsset{compat=newest} \begin{document} \begin{tikzpicture} \begin{axis} \addplot[mark=none,domain=-4:4]{10-x^{2}}; \end{axis} \end{tikzpicture} \end{document} Le compilateur renvoie : ! Package PGF Math Error: Sorry, an internal routine of the floating point unit got an ill-formatted floating point number `1Y2.0e0]'. The unreadable part was near '1Y2.0e0]'. (in '10-x^{2}').
cliquez ici pour masquer/afficher la révision 2
modification de la question

21 Nov '22, 14:58

cbreton's gravatar image

cbreton
75763848

comment tracer le graphique d'une fonction ?

Je souhaite tracer le graphe de la fonction h(t)=-0.2t^{3}+10.6t^{2}-100t+1250. Pour commencer, j'ai essayé ceci : J'ai regardé la présentation que Denis Bitouzé avait faite sur pgfplots. J'ai Pour commencer, j'ai essayé : \begin{center} \begin{tikzpicture}[scale=1.0] \documentclass[11pt]{article} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage[french]{babel} \pagestyle{empty} \usepackage{tkz-tab} \usepackage{amssymb} \usepackage{amsmath} \usepackage{gensymb} \usepackage{mathrsfs} \usepackage{tikz} \usepackage{pgfplots} % pour les graphiques \pgfplotsset{compat=newest} \begin{document} \begin{tikzpicture} \begin{axis} \addplot gnuplot {10-x^2}; \addplot[mark=none,domain=-4:4]{10-x^{2}}; \end{axis} \end{tikzpicture} \end{center} \end{document} Le compilateur me renvoie : ! Package pgfplots PGF Math Error: Sorry, an internal routine of the gnuplot-result file '20221122_fonctions_tr Dois-je installer gnuplot ? Si oui, comment faire ? Existe-t-il une autre solution ? Sinon, j'utilise aussi le code suivant \begin{comment} \centering \begin{center} \begin{tikzpicture}[scale=0.85] % grille % \draw[color=black] (-6,-6) grid (6,6); \draw[step=1cm,black,thick] (0,0) grid (10,10); \draw[step=5mm,gray,semithick] (0,0) grid (10,10); \draw[step=1mm,gray,ultra thin] (0,10) grid (0,10); \draw [domain=0:44,color=blue,thick] plot [samples=500] (0.25*\x, 0.01*(-0.2*\x*\x*\x + 10.6*\x*\x-100*\x+1250)); \end{tikzpicture} \end{center} Comment signaler que je souhaite que le graphique soit dans un carré de 15 cm par 15cm ? floating point unit got an ill-formatted floating point number `1Y2.0e0]'. The unreadable part was near '1Y2.0e0]'. (in '10-x^{2}').
cliquez ici pour masquer/afficher la révision 1

21 Nov '22, 12:25

cbreton's gravatar image

cbreton
75763848

C'est votre première visite ici ? Consultez la FAQ !

×