nan, namiesto -nan pri trojuholniku --triangle 0 0 0 0 0 0
const double NAN = (0.0 / 0.0);