Last change
on this file since 53 was
53,
checked in by Argimiro Resende Secchi, 16 years ago

Remove unused commands and fix "Ratio".


Property svn:eolstyle set to
native

Property svn:keywords set to
Id

File size:
818 bytes

Line  

1  #* 

2  * Model Ratio 

3  * 

4  *  Inputs 

5  *  Two input signals 

6  * 

7  *  Outputs 

8  *  a output signal 

9  * 

10  *  Assumptions 

11  * 

12  * 

13  * 

14  * Author: Tiago Osório 

15  * $Id: ratio.mso 53 20061112 19:08:30Z arge $ 

16  **# 

17  

18  using "types"; 

19  

20  Model Ratio 

21  

22  VARIABLES 

23  input1 as Real (Brief="input signal 1"); 

24  input2 as Real (Brief="input signal 2"); 

25  output as Real (Brief="output signal"); 

26  

27  EQUATIONS 

28  

29  if abs(input2)>1e5 then 

30  "Calculate output" 

31  input2*output=input1; 

32  else 

33  if input2>0 then 

34  "Calculate output" 

35  output=input1*1e5; 

36  else 

37  "Calculate output" 

38  output=input1*1e5; 

39  end 

40  end 

41  

42  end 

Note: See
TracBrowser
for help on using the repository browser.