CMakeTutorialStep1 2.3.12
Loading...
Searching...
No Matches
TutorialMath.cxx File Reference

TutorialMath.hxx 的实现:有限域平方根与 argc 校验。 More...

#include "TutorialMath.hxx"
#include <cmath>

Namespaces

namespace  tutorial

Functions

double tutorial::compute_sqrt (double value)
 域检查:非有限、负数或超过 kComputeSqrtMaxInput 时返回 -1.0
bool tutorial::has_numeric_argument (int argc)
 argc >= 2 即认为用户提供了待计算的数值参数

Detailed Description

TutorialMath.hxx 的实现:有限域平方根与 argc 校验。