posted 20 years ago
Hi,
For the exam, to what extent do I need to know about the special cases in Math?
I've summarized the outputs for the Math methods with the arguments:NaN, NEGATIVE_INFINITY, POSITIVE_INFINITY, MIN_VALUE, MAX_VALUE and value less than 0. Is that good enough? If not, how extreme cases do I need to know?
In KnB book of page 375, it mentions that "There are many more, but if you know these you will be in good shape for the exam." What are these special cases?
-------------
double nan = Double.NaN;
double n_i = Double.NEGATIVE_INFINITY;
double p_i = Double.POSITIVE_INFINITY;
double min_v = Double.MIN_VALUE;
double max_v = Double.MAX_VALUE;
double neg_v = -0.5;
sin(nan), sin(n_i), sin(p_i), sin(min_v), sin(max_v), sin(neg_v)
---------------
Many thanks in advance.
Joyce