Path

Input: Path(a, b, c)
$$a \rightsquigarrow b \rightsquigarrow c$$

Represents the path formed by connecting the given points or paths by line segments. A path is a formal object, semantically different from a set of points: for a path object, the direction is significant, and it is undefined whether a path segment corresponds to an open interval or a closed interval between the points., The typical application is to represent a path of integration.

Input: Path(1, -1)
$$1 \rightsquigarrow -1$$

Represents the path going left from 1 to -1.

Input: Path(a, Path(b, c))
$$a \rightsquigarrow b \rightsquigarrow c$$

Equivalent to Path(a, b, c)).

Input: Path(1, ConstI, -1, -ConstI, 1)
$$1 \rightsquigarrow i \rightsquigarrow -1 \rightsquigarrow -i \rightsquigarrow 1$$

Represents a diamond-shaped loop around the origin in the counterclockwise direction.

Input: Path(-(ConstI*Infinity), ConstI*Infinity)
$$-i \infty \rightsquigarrow i \infty$$

Represents the imaginary axis traversed upwards.

Input: Path(1, Exp(Pi*ConstI/4)*Infinity)
$$1 \rightsquigarrow {e}^{\pi i / 4} \infty$$

Represents the ray from 1 to infinity along a 45 degree angle.

Input: Path(Tuple(2, 1), Tuple(0, 0))
$$\left(2, 1\right) \rightsquigarrow \left(0, 0\right)$$

Represents the line segment from $\left(2, 1\right)$ to the origin in ${\mathbb{R}}^{2}$.

Last updated: 2020-03-06 00:22:16