When can I use functions and do calculations in TikZ? How do I make this work:
\draw (0,0) arc(0:90:sqrt(15)); %not ok
why is this working:
\draw (0,0) arc(0:asin(1):5); %ok
with \usetikzlibrary{calc} is this:
\draw (0,0) -- ($ (4,0) + sqrt(7)*(0,1) $); %ok
the only way to do single coordinate calculations? why is this
\draw (0,0) -- ($ (4,sqrt(7)) $); %not ok
not working?
Minimal example:
\documentclass[tikz, border=1cm]{standalone}
\usetikzlibrary{calc}
\begin{document}
\begin{tikzpicture}
\draw (0,0) arc(0:90:sqrt(15)); %not ok
\draw (0,0) arc(0:asin(1):5); %ok
\draw (0,0) -- ($ (4,0) + sqrt(7)*(0,1) $); %ok
\draw (0,0) -- ($ (4,sqrt(7)) $); %not ok
\end{tikzpicture}
\end{document}
Problem withusually aren't very helpful for someone who wants to find out if this question will be helpful or not. – doncherry Jan 09 '12 at 20:26