MODEL MASTER
AN OBJECT-ORIENTED SPREADSHEET FRONT-END

Making spreadsheets safer

Contents Previous Next

MM circuit example - inheriting from the amplifier

Next, we make a specialised kind of amplifier that feeds some of its output back to its input.

object amplifier
    attributes
        input : real
        output: real
    where
        output[t] = 5*input[t].

object amplifier_with_feedback is_a amplifier
    where
        input[0] = 1 &
        (t>0) input[t] = output[t-1].

 


Contents Previous Next

Copyright © 1998 J Ireson-Paine. All rights reserved