Thin-walled tank/HW01

From ASCEND
Revision as of 18:35, 10 January 2012 by Jpye (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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;