fncosh.gms : Test correctness of cosh intrinsic

Description

define some sets, etc.


Small Model of Type : GAMS


Category : GAMS Test library


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

$title 'Test correctness of cosh intrinsic' (FNCOSH,SEQ=162)

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

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

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

abort$(execerror lt 3)
  'Should get execution errors evaluating cosh(x) for |x| large';
execerror = 0;

$include fntest_x.inc