Thin-walled tank/HW02: Difference between revisions
Jump to navigation
Jump to search
SreenathaB (talk | contribs) No edit summary |
SreenathaB (talk | contribs) No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
<source lang=a4c> | |||
REQUIRE "system.a4l"; | REQUIRE "system.a4l"; | ||
MODEL my_model; | MODEL my_model; | ||
(* | (* variables declaration *) | ||
x,y,z,d,a IS_A solver_var; | x, | ||
y, | |||
z, | |||
d, | |||
a IS_A solver_var; | |||
(* specifications *) | (* specifications *) | ||
(* | d = 1; | ||
(* equations *) | |||
x+y+z = a*d; | x+y+z = a*d; | ||
x+y+2*z = 5; | x+y+2*z = 5; | ||
| Line 12: | Line 19: | ||
END my_model; | END my_model; | ||
</source> | |||
Latest revision as of 15:29, 4 April 2012
REQUIRE "system.a4l"; MODEL my_model; (* variables declaration *) x, y, z, d, a IS_A solver_var; (* specifications *) d = 1; (* equations *) x+y+z = a*d; x+y+2*z = 5; 5*x + 2*y - 3*z = 0; END my_model;