Ignore:
Timestamp:
Mar 4, 2007, 1:56:54 AM (16 years ago)
Author:
Argimiro Resende Secchi
Message:

Fix some new language syntax.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/newlanguage/sample/miscellaneous/sample_arrays2.mso

    r83 r176  
    3030        EQUATIONS
    3131
    32         diff(Var1(1,1))*"s" = Var2(1,2);
     32        diff(Var1(1,1))*'s' = Var2(1,2);
    3333       
    3434        for i in [2 : Dimension-1]
    35                 diff(Var1(1,i))*"s" = Var2(1,i-1)+Var2(1,i+1);
     35                diff(Var1(1,i))*'s' = Var2(1,i-1)+Var2(1,i+1);
    3636        end
    3737
    38         diff(Var1(1,Dimension))*"s" = Var2(1,Dimension);
    39         diff(Var1(2:Dimension,:))*"s" = Scalar*Var2(2:Dimension,:);
     38        diff(Var1(1,Dimension))*'s' = Var2(1,Dimension);
     39        diff(Var1(2:Dimension,:))*'s' = Scalar*Var2(2:Dimension,:);
    4040
    41         exp(Scalar)*Var2 = sin(time/"s");
     41        exp(Scalar)*Var2 = sin(time*'rad/s');
    4242end
    4343
     
    5151
    5252        OPTIONS
    53         time = [0:0.1:2*3.1415];
     53        TimeStep = 0.1;
     54        TimeEnd = 2*3.1415;
    5455end
Note: See TracChangeset for help on using the changeset viewer.