ThinWalledHW01Code

From ASCEND

Jump to: navigation, search

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;
Personal tools