fntan.gms : Test correctness of tan intrinsic

Description


Small Model of Type : GAMS


Category : GAMS Test library


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

$TITLE 'Test correctness of tan intrinsic' (FNTAN,SEQ=269)

$include fnset_x.inc

$gdxin fntan
$load aeps0 aeps1 aeps2 reps T data
$gdxin

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

$include fntest_x.inc