Mathematical operations with NaN