A mathematical notation list in Rust code form.
##Contents
- variable name conventions
- equals
=
≈
≠
:=
- square root and complex numbers
√
i
- dot & cross
·
×
∘
- sigma
Σ
- summation - capital Pi
Π
- products of sequences - pipes
||
- hat
â
- unit vector - "element of"
∈
∉
- common number sets
ℝ
ℤ
ℚ
ℕ
- function
ƒ
- prime
′
- floor & ceiling
⌊
⌉
- arrows
- logical negation
¬
~
!
- intervals
- more...
There are a variety of naming conventions depending on the context and field of study, and they are not always consistent. However, in some of the literature you may find variable names to follow a pattern like so:
- s - italic lowercase letters for scalars (e.g. a number)
- x - bold lowercase letters for vectors (e.g. a 2D point)
- A - bold uppercase letters for matrices (e.g. a 3D transformation)
- θ - italic lowercase Greek letters for constants and special variables (e.g. polar angle θ, theta)
This will also be the format of this guide.
There are a number of symbols resembling the equals sign =
. Here are a few common examples:
=
is for equality (values are the same)≠
is for inequality (value are not the same)≈
is for approximately equal to (π ≈ 3.14159
):=
is for definition (A is defined as B)