Fix tikz math

This commit is contained in:
Anton Mosich 2022-05-05 12:20:05 +02:00
parent dcd63168d1
commit 3592345ae5
Signed by: Flugschwein
GPG Key ID: 9303E1C32E3A14A0
1 changed files with 4 additions and 4 deletions

View File

@ -2108,21 +2108,21 @@ Auch skalare Produkte können eindeutig fortgesetzt werden.
\allowdisplaybreaks \allowdisplaybreaks
\subsubsection{Veranschaulichung im $\R^2$} \subsubsection{Veranschaulichung im $\R^2$}
\begin{tikzpicture}[scale=3] \begin{tikzpicture}[scale=3.09]
\tikzmath{ \tikzmath{
\a1 = 3; \a1 = 3;
\a2 = 1; \a2 = 1;
\a3 = 2; \a3 = 2;
\a4 = 2; \a4 = 2;
\norma1 = sqrt(\a1^2 + \a2^2); \norma1 = sqrt((\a1 * \a1 + \a2 * \a2));
\normeda1 = \a1 / \norma1; \normeda1 = \a1 / \norma1;
\normeda2 = \a2 / \norma1; \normeda2 = \a2 / \norma1;
\innerprod = \normeda1 * \a3 + \normeda2 * \a4; \innerprod = (\normeda1 * \a3) + (\normeda2 * \a4);
\c1 = \a3 - (\innerprod * \normeda1); \c1 = \a3 - (\innerprod * \normeda1);
\c2 = \a4 - (\innerprod * \normeda2); \c2 = \a4 - (\innerprod * \normeda2);
\t1 = (\innerprod * \normeda1); \t1 = (\innerprod * \normeda1);
\t2 = (\innerprod * \normeda2); \t2 = (\innerprod * \normeda2);
\normc = sqrt(\c1^2 + \c2^2); \normc = sqrt((\c1 * \c1 + \c2 * \c2));
\b3 = \c1 / \normc; \b3 = \c1 / \normc;
\b4 = \c2 / \normc; \b4 = \c2 / \normc;
} }