⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 test_integrant.cxx

📁 DTMK软件开发包,此为开源软件,是一款很好的医学图像开发资源.
💻 CXX
字号:
// not used? #include <vcl_iostream.h>
#include <vnl/vnl_integrant_fnct.h>
#include <testlib/testlib_test.h>

class my_test_integrant : public vnl_integrant_fnct
{
 public:
  double f_(double x) { return x/(1+x*x); }
};

void test_integrant()
{
  my_test_integrant f;

  TEST_NEAR("test integrant f = x/(1+x^2) when x=1, f is ", f.f_(1), 0.5, 1e-13);
}

TESTMAIN(test_integrant);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -