Thin-walled tank/HW01: Difference between revisions
Jump to navigation
Jump to search
Restored page from Google Cache, uploaded by John Pye |
No edit summary |
||
| Line 5: | Line 5: | ||
Our code for this problem is as follows | Our code for this problem is as follows | ||
<source lang="a4c">REQUIRE | <source lang="a4c">REQUIRE "system.a4l"; | ||
MODEL HWProb1; | MODEL HWProb1; | ||
| Line 16: | Line 16: | ||
END HWProb1;</source> | END HWProb1;</source> | ||
[[Category:Problem_solutions]] | |||
Latest revision as of 18:35, 10 January 2012
This is the solution to problem 1 given on the page Thin-walled tank/Introduction#More simple examples.
Solve the equation x*cos(x) = 1 for x.
Our code for this problem is as follows
REQUIRE "system.a4l"; MODEL HWProb1; (* variable *) x IS_A solver_var; (* equation *) x*cos(x) = 1.0; END HWProb1;