$title 'Test correctness of cos intrinsic' (FNCOS,SEQ=156)

* define some sets, etc.
$include fnset_x.inc

$gdxIn fncos
$load aeps reps relToInput T data
$gdxIn

loop {T,
  data(T,  'f')    = cos.value (data(T,'x'));
  data(T, 'fx')    = cos.grad  (data(T,'x'));
  data(T,'fxx')    = cos.hess  (data(T,'x'));
  data(T, 'rc')    = mathlastrc;
  data(T, 'ec')    = mathlastec;
};

$include fntest_x.inc
