make DNAN and DINF faster by caching the result of the first calculation -- pascal...