Next, add an inverter, whose output is 1 minus its input:
object inverter { < input : real output: real > output[t] = 1-input[t] }