next up previous
Next: Making the connections
Up: MM circuit example
Previous: Inheriting from the amplifier

The other objects

Next, add an inverter, whose output is 1 minus its input:

object inverter {
  < input : real
    output: real
  >
  output[t] = 1-input[t]
}



Jocelyn Ireson-Paine
Sat Nov 28 17:42:14 GMT 1998