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

10 Jul '19, 20:15

samcarter's gravatar image

samcarter
8.6k2817

Avec pgf : \documentclass{article} \usepackage{tikz} \begin{document} \newcommand{\x}{3} \newcommand{\y}{4} $x=\x \hspace*{2cm} y=\y \hspace*{2cm} \sqrt{(x^2+y^2)}=\pgfmathparse{sqrt(\x*\x+\y*\y)}\pgfmathresult$ \end{document} Avec xfp : \documentclass{article} \usepackage{xfp} \begin{document} \newcommand{\x}{3} \newcommand{\y}{4} $x=\x \hspace*{2cm} y=\y \hspace*{2cm} \sqrt{(x^2+y^2)}=\fpeval{sqrt(\x^2+\y^2)}$ \end{document}
cliquez ici pour masquer/afficher la révision 2

10 Jul '19, 20:15

samcarter's gravatar image

samcarter
8.6k2817

Avec pgf : \documentclass{article} \usepackage{tikz} \begin{document} \newcommand{\x}{3} \newcommand{\y}{4} $x=\x \hspace*{2cm} y=\y \hspace*{2cm} \sqrt{(x^2+y^2)}=\pgfmathparse{sqrt(\x*\x+\y*\y)}\pgfmathresult$ \end{document} Avec xfp : \documentclass{article} \usepackage{xfp} \begin{document} \newcommand{\x}{3} \newcommand{\y}{4} $x=\x \hspace*{2cm} y=\y \hspace*{2cm} \sqrt{(x^2+y^2)}=\fpeval{sqrt(\x^2+\y^2)}$ \end{document}
cliquez ici pour masquer/afficher la révision 1

10 Jul '19, 20:08

samcarter's gravatar image

samcarter
8.6k2817

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

×