ca.wikipedia.org

Fitxer:Electromagnetic wave2.svg - Viquipèdia, l'enciclopèdia lliure

  • ️Sun Aug 15 2021
Descripció

English: Electromagnetic wave. Electric component (red) in plane of drawing; magnetic component (blue) in orthogonal plane. Wave propagates to the right. The wavelength is λ.

Français : Onde électromagnétique. Le champ électrique (rouge) est dans le plan du dessin, le champ magnétique (bleu) est dans le plan orthogonal. L'onde se propage vers la droite. La longueur d'onde est λ.

% !Mode:: "TeX:UTF-8"
\documentclass[tikz]{standalone}
\usepackage{fontspec}
\usepackage{unicode-math}
\usetikzlibrary{positioning}
\usetikzlibrary{calc}
\usetikzlibrary{arrows.meta}
\setmainfont{Libertinus Serif}
\setmathfont{Libertinus Math}
\begin{document}
	\begin{tikzpicture} [
			axis/.style={-Latex,draw=black},
			laxis/.style={font=\bfseries},
		]
		\path [axis] (0,0) -- (12.3,0) node [at end,below,laxis] {z};
		\foreach \a/\b/\col/\lab in {0/1/red/E,-0.5/-0.5/blue/B} {
			\begin{scope} [cm={1,0,\a,\b,(0,0)}]
				\path [axis] (0,0) -- (0,2) node [at end,left,laxis] {\lab};
				\path [draw=\col] (0,0) sin (1.2,2) cos (2.4,0) sin (3.6,-2) cos (4.8,0) sin (6,2) cos (7.2,0) sin (8.4,-2) cos (9.6,0) sin (10.8,2) cos (12,0);
				\foreach \x in {0.3,0.6,...,2.2,2.7,3,...,4.6,5.1,5.4,...,7,7.5,7.8,...,9.4,9.9,10.2,...,12} \draw [color=\col,-Latex] (\x,0) -- (\x,{2*sin(\x*180/2.4)});
			\end{scope}
		}
		\draw [help lines] (4.8,0) --+ (0,2.5) (9.6,0) --+ (0,2.5);
		\node (l) at (7.2,2.5) {$\lambda$};
		\draw [-Latex] (l) -- (4.8,2.5);
		\draw [-Latex] (l) -- (9.6,2.5);
	\end{tikzpicture}
\end{document}