Skip to contents

convert_system_indepvar(sys, t) makes t the independent variable of sys by substitution: unknowns x(s) become x(t) and time independent unknowns x become x(t). Unlike change_independent_variable() no chain rule is applied. The system must not be compiled (no observed equations); a nonlinear system becomes a time dependent one.

Usage

convert_system_indepvar(sys, t, name = nameof(sys))

Arguments

sys

A System.

t

The new independent variable.

name

The name of the result.

Value

The converted System.

Examples

x <- Variable("x"); a <- Parameter("a")
ns <- System(list(0 ~ x^2 - a), name = "ns")
tau <- independent_variable("tau")
unknowns(convert_system_indepvar(ns, tau))
#> [[1]]
#> x(tau)
#>