Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download
Views: 29889
1
\documentclass{article}
2
3
4
\usepackage{hyperref}
5
\usepackage[T1]{fontenc}
6
7
\usepackage{pythontex}
8
\usepackage{amsmath}
9
10
\title{Title of Document}
11
\author{Name of Author}
12
13
\begin{document}
14
\section{Python}
15
16
\begin{pycode}
17
import math
18
print(r'2 * Pi = {}'.format(2*math.pi))
19
\end{pycode}
20
21
The result of ... is \py{2+5}.
22
23
$$\frac{(1+a^2-b^2)}{1-a+a^2+b^2}$$
24
25
26
27
$\begin{aligned}
28
\nabla \cdot \mathbf{E} &= \frac{\rho}{\varepsilon_{0}} \\
29
\nabla \cdot \mathbf{B} &= 0 \\
30
\nabla \times \mathbf{E} &= -\frac{\partial \mathbf{B}}{\partial t} \\
31
\nabla \times \mathbf{B} &= \mu_{0}\mathbf{J} + \mu_{0}\varepsilon_{0}\frac{\partial \mathbf{E}}{\partial t}
32
\end{aligned}$
33
34
Note: The variables in Maxwell's equations are defined as follows:
35
36
\begin{itemize}
37
\item $\mathbf{E}$ is the electric field
38
\item $\mathbf{B}$ is the magnetic field
39
\item $\rho$ is the charge density
40
\item $\mathbf{J}$ is the current density
41
\item $\varepsilon_{0}$ is the permittivity of free space
42
\item $\mu_{0}$ is the permeability of free space
43
\item $\nabla$ is the del operator, representing spatial derivatives
44
\item $\frac{\partial}{\partial t}$ is the partial derivative with respect to time.
45
\end{itemize}
46
47
48
\end{document}
49
50
51