Quick question: See below, I am not able to use veclen value within a basic math calculation. I think - but I am not sure - that it is an issue about which kind of unit we get from veclen, I understand it is not cm, but I do not see how to convert to it.
\documentclass[24pt,a4paper,landscape]{scrartcl} %%KOMA class
\setkomafont{sectioning}{\rmfamily\bfseries\boldmath} %%
\usepackage{tikz}
\usepackage{calculator}
\usepackage{pgfplots}
\usetikzlibrary{rulercompass}
\usetikzlibrary{intersections,quotes,angles}
\usetikzlibrary{calc}
\begin{document}
\begin{tikzpicture}
\draw [color=black!5] (0,0) grid (6,5);
\draw (6,0) coordinate (a) node[right, below] {x}
-- (0,0) coordinate (b) node[left] {(0,0)}
-- (0,5) coordinate (c) node[left] {y};
\path (0,3) coordinate (ad) -- (35:4cm) coordinate (dd);
\path (0,0) coordinate (ad) -- (30:4cm) coordinate (dd);
\draw (ad) -- (dd) coordinate[pos=0.455](c1);
\coordinate (c2) at ($(c1)!2*2.365 cm!(dd)$);
\draw[->, ultra thick, red]
let
\p1=(ad),\p2=(c2), \n1={{veclen(\x2-\x1,\y2-\y1)}}
in
(\x1,\y1) -- (\x2,\y2)
node[label={{$*$}}] {}
\pgfextra{\xdef\var{\n1}} ;
\end{tikzpicture}
\DEGREESSIN{30}{\sol}
\TRUNCATE[2]{\sol}{\sol}
$sin(30)$ = \sol \newline
\sol*\var \newline
\MULTIPLY{\var}{\sol}{\res} <<< IT DOES NOT WORK!!
\begin{equation}
V = \var + \res <<< IT DOES NOT WORK!!
\end{equation}
\end{document}
Note, I would like to use the package calculator, but otherwise is fine too.


\res. see if "Mathematical and Object-Oriented Engines" fromtikzpackage (or\pgfmathpackage in case iftikzis not loaded) is useful for your calculation. – Zarko May 29 '17 at 00:57\pgfmathparse{ \var * \sol} \pgfmathresult. Still, why isn't\MULTIPLY{\var}{\sol}{\res}defined? – mario May 29 '17 at 06:28MULTIPLYdefined? I see this macro first time :-( – Zarko May 29 '17 at 06:51calculatorpackage. – Torbjørn T. May 29 '17 at 07:25