Questions tagged [pgfmathparse]
59 questions
17
votes
2 answers
pgfmathparse basic usage
Please, what I'm doing wrong in this test:
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\pgfmathparse{10*2}
\node at (4,-5) {$2 \cdot 10 = \pgfmathresult$};
\end{tikzpicture}
\end{document}
It gives as output…
pasaba por aqui
- 747
1
vote
1 answer
Defining math functions
\documentclass[aspectratio=1610]{beamer}
\usepackage{amsmath}
\begin{document}
\def\function(#1){ 96* (#1)-16 *(#1)^2 }
%1. I am trying to condense the following two lines
\pgfmathparse{3+\function(1)}
\let\z\pgfmathresult
z result is \z …
user34241
- 421
- 2
- 4