lcapy.transform.transform
- lcapy.transform.transform(expr, arg, **assumptions)
If arg is a domain variable perform domain transformation, otherwise perform substitution.
Note (1 / s)(omega) will fail since 1 / s is assumed not to be causal and so the Fourier transform is unknown. However, impedance(1 / s)(omega) will work since an impedance is assumed to be causal. Alternatively, use (1 / s)(omega, causal=True).
Transforming from s->jomega is fast since it just requires a substitution of s with jomega.
Transforming from s->omega, s->Omega, s->f, or s->F can be slow since this requires a inverse Laplace transform followed by a Fourier transform. However, if the expression is causal and the expression is lossy when s is replaced by jw, the result can be found by substituting jw or 2 * 2 * pi * f for s. This does not apply for an expression such as Z = 1 / (s * C).