Thin-walled tank/HW02: Difference between revisions
Jump to navigation
Jump to search
Created page with '{{missing}}' |
SreenathaB (talk | contribs) No edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<source lang=a4c> | |||
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; | |||
</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;