fnsin.gms : Test correctness of sin intrinsic


define some sets, etc.

Small Model of Type : GAMS

Category : GAMS Test library

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

$title 'Test correctness of sin intrinsic' (FNSIN,SEQ=157)

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

$gdxin fnsin
$load aeps reps relToInput T data

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

$include fntest_x.inc