Repository for the international webinar 2021, prepared with Jade, ITM, and Óbuda universities.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.5 KiB

3 years ago
3 years ago
  1. \documentclass{article}
  2. \usepackage[utf8]{inputenc}
  3. \usepackage[english]{babel}
  4. \usepackage{amssymb,amsmath}
  5. \begin{document}
  6. \section{Simple equations on text}
  7. \label{sec:eq-text}
  8. Here you can see simple equations along with text $x$, $y$ and \(z\) are in math mode. This mode is known as \textbf{inline} mode and it is recommended to write short equations like: $-10 \leq x \leq 10$. Thus, if complex and long equations are required, it is recommended to use the equation environment.\par
  9. \section{Equation environment}
  10. \label{sec:environment}
  11. Here we can find a way to write long equations like \eqref{eq:fraction}:
  12. \begin{equation}
  13. \label{eq:fraction}
  14. f(t)=\sqrt{\frac{t-a}{t+a}}
  15. \end{equation}
  16. \noindent here $t$ is time in seconds.
  17. More complex equations can be written using symbols and commands from math-mode. An example is the Fourier coefficients equations \eqref{eq:a0},\eqref{eq:an} and \eqref{eq:bn}:
  18. \begin{eqnarray}
  19. a_0=\frac{1}{T}\int_0^T f(t)dt \label{eq:a0}\\
  20. a_n=\frac{2}{T}\int_0^T f(t)\cdot \cos{\left(\frac{2\pi nt}{T}\right)}dt \label{eq:an}\\
  21. b_n=\frac{2}{T}\int_0^T f(t)\cdot \sin{\left(\frac{2\pi nt}{T}\right)}dt \label{eq:bn}
  22. \end{eqnarray}
  23. Previous equations are used to define the Fourier series as:
  24. \begin{equation}
  25. \label{eq:fourier}
  26. g(t)=a_0+\sum_{m=1}^{\infty}a_m \cos{\left(\frac{2\pi mt}{T}\right)}++\sum_{m=1}^{\infty}b_n \sin{\left(\frac{2\pi nt}{T}\right)}
  27. \end{equation}
  28. \begin{equation}
  29. A=
  30. \begin{pmatrix}
  31. a & b& c\\
  32. d & e &f
  33. \end{pmatrix}
  34. \end{equation}
  35. \end{document}