lcapy.utils
This module provides common utility functions.
Copyright 2021–2022 Michael Hayes, UCECE
Functions
|
|
|
|
|
|
|
|
|
Extract constant factor from expression and return tuple of constant and the rest of the expression. |
|
Extract factor from expression or None if expression does not have factor. |
|
|
|
|
|
|
|
|
|
Separate Dirac delta terms from expression. |
|
Rewrite foo(a * t + b) as foo(t) and return a, b. |
|
Return expression as a list of terms. |
|
Extract constant term from expression and return tuple of constant and the rest of the expression. |