 Timestamp:
 Mar 4, 2007, 1:56:54 AM (16 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

branches/newlanguage/sample/miscellaneous/sample_arrays2.mso
r83 r176 30 30 EQUATIONS 31 31 32 diff(Var1(1,1))* "s"= Var2(1,2);32 diff(Var1(1,1))*'s' = Var2(1,2); 33 33 34 34 for i in [2 : Dimension1] 35 diff(Var1(1,i))* "s"= Var2(1,i1)+Var2(1,i+1);35 diff(Var1(1,i))*'s' = Var2(1,i1)+Var2(1,i+1); 36 36 end 37 37 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,:); 40 40 41 exp(Scalar)*Var2 = sin(time /"s");41 exp(Scalar)*Var2 = sin(time*'rad/s'); 42 42 end 43 43 … … 51 51 52 52 OPTIONS 53 time = [0:0.1:2*3.1415]; 53 TimeStep = 0.1; 54 TimeEnd = 2*3.1415; 54 55 end
Note: See TracChangeset
for help on using the changeset viewer.