Skip to contents

find_dynamicsymbols() returns the functions of time and their derivatives found in expression, as SymPy's find_dynamicsymbols(). A vector needs the frame in which to express it.

Usage

find_dynamicsymbols(expression, exclude = NULL, reference_frame = NULL)

Arguments

expression

An expression, matrix or vector.

exclude

Dynamic symbols to leave out.

reference_frame

The ReferenceFrame() for a vector expression.

Value

A list of expressions (a set in SymPy).

Examples

q <- dynamicsymbols("q")
find_dynamicsymbols(q^2 + dynamicsymbols("q", 1))
#> [[1]]
#> Derivative(q(t), t)
#> 
#> [[2]]
#> q(t)
#> 
#> attr(,"pyset")
#> [1] TRUE