I've tried using the wrapfig package, though this always results in my images going to the bottom-left corner. I have a document like this:
\begin{document}
\usepackage{tikz}
\begin{center}
\begin{tikzpicture}
\draw (0,0) --(0,5) -- (5,5) -- (5,0) -- (0,0);
\end{tikzpicture}
\end{center}
lorem ipsum....
\begin{center}
\begin{tikzpicture} \draw (0,0) -- (3.8,0) -- (3.8,0.5) -- (0,0);
\node [below] at (1.9,0) {\(\sqrt{1450}\)}; \node [right] at (3.8,0.25) {\(5\)};
\node [below left] at (0,0) {\(A\)}; \node [above right] at (3.8,0.5) {\(B\)};
\end{tikzpicture}\end{center}
\end{document}
It currently looks like
but I want it to look something like


\documentclass{...}and ending with\end{document}. from your code fragment is not seen that you try to usewrapfigure. welcome to tex.se! – Zarko Mar 30 '18 at 12:55