fntanh.gms : Test correctness of tanh intrinsic


define some sets, etc.

Small Model of Type : GAMS

Category : GAMS Test library

Main file : fntanh.gms   includes :   fnset_x.inc [htmlfntest_x.inc [html]

$title 'Test correctness of tanh intrinsic' (FNTANH,SEQ=163)

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

$gdxin fntanh
$load aeps reps relToInput T data

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

$include fntest_x.inc