Skip to contents

A CoordinateSym is a symbol tied to a ReferenceFrame() and one of its three axes, as SymPy's sympy.physics.vector.CoordinateSym. Each frame creates its own three; N[1] returns the first. Two coordinate symbols are equal only when frame and index agree.

Usage

CoordinateSym(name, frame, index)

Arguments

name

Display name.

frame

The ReferenceFrame it belongs to.

index

The axis, 0, 1 or 2 as in SymPy.

Value

A sym symbol.

Examples

A <- ReferenceFrame("A")
A[1]
#> A_x
CoordinateSym("A_x", A, 0)
#> A_x