Introduce basic operators for signals #41
Labels
enhancement
New feature or request
good first issue
Good for newcomers
modypy.model
Affecting the core modelling facilities
The
Signal
class should implement basic operators such as negation, addition, subtraction, multiplication and division so that simple expressions can be written. The operations shall be mapped so that for signalss1
ands2
and constantc
the following holds:(s1 op s2)(state)==s1(state) op s2(state)
(c op s1)(state)==c op s1(state)
(s1 op c)(state)==s1(state) op c
The text was updated successfully, but these errors were encountered: