The cleaner the math, the cleaner the resulting code.This chapter reviews various tools from high school andcollege mathematics and is designed to be used more as a reference than as a tutorial.

1 Sets and Mappings

1.1 Inverse Mappings

1.2 Intervals

1.3 logarithm

2 Solving Quadratic Equations

基本的求解二次方程定理(判断是否有根)和相应的求根公式:

$$ x = \frac{-B \pm \sqrt{B^2-4AC}}{2A} $$

3 Trigonometry

In graphics, we use basic trigonometry in many contexts. Usually, it is nothing too fancy, and it often helps to remember the basic definitions.

3.1 Angles