fncosh.gms : cosh 내장의 정확성 테스트

설명

일부 세트 등 정의

소형 모델 유형 :크레이지 슬롯


카테고리 : 크레이지 슬롯 테스트 라이브러리


메인 파일 : fncosh.gms 포함: fnset_x.inc[htmlfntest_x.inc[html]

$title 'cosh 내장의 정확성 테스트' (FNCOSH,SEQ=162)

* 일부 세트 등을 정의합니다.
$include fnset_x.inc

$gdxIn fncosh
$load aeps 담당자 relToInput T 데이터
$gdxIn

루프 티,
  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;
;

중단$(실행 오류 lt 3)
  '|x|에 대해 cosh(x)를 평가하는 실행 오류가 발생해야 합니다. 크기가 큰';
실행 오류 = 0;

$include fntest_x.inc