summarize from last time
format hex
Copyright By PowCoder代写 加微信 powcoder
0 : 0000000000… -0 : 8000000000…
0==(-0) : 1
they are checking if they have same value, but their bits
and certainly, -inf==inf: 0
1/0 – 1/0 = NaN, since inf – inf = NaN because you don¡¯t know which inf is bigger
1/0 -(1/(-0)) = inf -(-inf) = inf
sqrt(-1) = NaN in assembly language and C
in matlab, sqrt(-1) = 0 + 1i, an imaginary number
NaN==NaN: 0
it is false. Because concept of equality doesn¡¯t apply to non-numerical thing.
程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com