A Discrete real type consists on a half-open
real interval divided in
equal size half-open
sub-intervals. Computable objects containing discrete real type
variables executes some of its functionalities in function of
(see
section
and
). Computable objects containing only discrete
type variables can use tabulation methods such as tabulate and
compile (see section
for more details).
Here are some examples of discrete real types definitions:
plRealType distance(0.0, 100.0, 50); plRealType hight(0.2, 2.40, 30);
The previous lines defines the types distance
and
hight
, they are divided in 50 and 30 subintervals
respectively. Example, given
plRealType A(min, max, n);
we have that :