I am having an issue with Tikz. Here is the code:
\begin{tikzpicture}[scale=0.6]
% Variables
\def\mu{0.1}
\def\R{10}
%Celestial bodies
\draw [thick, fill=yellow] (0,0) circle (1);
\draw [thick, fill=cyan] (\R,0) circle (0.25);
% Lagrangian points
\node at (\R*{1-{\mu/3}^{1/3}},0) {\color{orange}{\huge$\bullet$}}; %L1
\node at (\R*{1+{\mu/3}^{1/3}},0) {\color{orange}{\huge$\bullet$}}; %L2
\node at (-\R*{1+5/12*\mu},0) {\color{orange}{\huge$\bullet$}}; %L3
\node at (\R*{1/2*{1-2*\mu}},\R*sqrt(3)/2) {\color{orange}{\huge$\bullet$}}; %L4
\node at (\R*{1/2*{1-2*\mu}},-\R*sqrt(3)/2) {\color{orange}{\huge$\bullet$}}; %L5
\end{tikzpicture}
Here is the error I get:
! Missing number, treated as zero.
<to be read again>
{
l.87 \node at (\R*{1-{\mu/3}^{1/3}},0)
{\color{orange}{\huge$\bullet$}}; %L1
A number should have been here; I inserted `0'.
I see this is a common error with Tikz but I can't find out why it doesn't work. It is propably a silly mistake, can someone tell me what's wrong ?
\defto define macros that are already existing. – Jasper Habicht Mar 06 '18 at 22:32\muis already defined representing µ. If you overwrite it, you cannot use it for its original purpose any more. – Jasper Habicht Mar 06 '18 at 22:39