\(\newcommand{\B}[1]{ {\bf #1} }\) \(\newcommand{\R}[1]{ {\rm #1} }\)
a_double_property#
View page sourceProperties of an a_double Object#
Syntax#
.value ().parameter ().variable ().near_equal ( aother ).var2par ()ad#
This object has c++ prototype
const a_double& advalue#
The result d has c++ prototype
double dIt is the value of ad , as a constant function.
Restriction#
The object ad must not depend on the
independent
variables when ad.value () is called.
If it does depend on the independent variables,
you will have to wait until the current recording is terminated
before you can access its value; see
var2par below.
parameter#
The result p has c++ prototype
bool pIt is true if ad represent a constant functions; i.e., ad not depend on the independent variables.
variable#
The result v has c++ prototype
bool vIt is true if ad is not a constant function; i.e., ad depends on the independent variables.
near_equal#
The argument aother , and the result e , c++ have prototype
const a_double& aotherbool eThe result is true if ad is nearly equal to aother . To be specific, the result is
where d and o are the value corresponding to
ad and aother and
\(\varepsilon\) is machine epsilon corresponding
to the type double .
var2par#
The result has c++ prototype
a_double apIt has the same value as ad and is sure to be a parameter ( ad may or may not be a variable). This can be useful when you want to access the value of ad while is a variable; value above.