2014 dxdy logo

Научный форум dxdy

Математика, Физика, Computer Science, Machine Learning, LaTeX, Механика и Техника, Химия,
Биология и Медицина, Экономика и Финансовая Математика, Гуманитарные науки




На страницу Пред.  1, 2, 3, 4
 
 Re: 0/0=?
Сообщение22.07.2020, 23:22 
Вот в одном месте еще любопытный пассаж увидел.
P.Sterbenz, Floating point computations (1974) , p.67 писал(а):
Next, suppose that we try to perform a floating point division of zero by zero. Here, there is no a generally acceptable value to be used in further calculation. In fact, such a division is usually a signal of trouble in the program. The only reason for not terminating a program is that we may want to proceed to other parts of the program or other data that will not be contaminated by the result of this division. The error message printed for division by zero should distinguish the case $0\div0$ from the case $A\div 0$ with $A\ne0$. Moreover, a different fixup, say $0$ or $1$, should be used for $0\div0$.


-- 22.07.2020, 22:25 --

(Это, конечно, книга старая (но местами интересная). В современных компьютерах $0/0$ --- это, конечно, NaN).

 
 
 [ Сообщений: 46 ]  На страницу Пред.  1, 2, 3, 4


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group