i want to draw an arc of circle, and figure out the raduis on the graph, using:
raduis\times cos and sin 45\deg
when i specify the radius r=1.5cm, i can't get it on the border, anyone can help me, thanks in advance
\documentclass[border=30pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows.meta, calc, decorations.markings, quotes}
\begin{document}
\begin{tikzpicture}
\draw[thick, violet] (0,0) -- (4,0);
\node[left] at (0,0){$O$};
\node[right] at (4,0){$O'$};
\fill[red] (2,0) circle (1.1pt);
\draw[thick, red] (2,0) -- ({1.5*cos(40)},{1.5*sin(40)});
\draw (3.5,0) arc (0:180:1.5) ;\node[above] at (2.5,0){$O$};
\end{tikzpicture}
\end{document}

({1.5*cos(40)},{1.5*sin(40)})you should probably use(40:1.5), and you can add only one+here ;) – Kpym Mar 26 '18 at 16:51+was missing. – Mar 26 '18 at 16:57