File: introExample33.tex

package info (click to toggle)
sollya 6.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 13,376 kB
  • ctags: 5,132
  • sloc: ansic: 120,010; yacc: 8,738; lex: 2,494; makefile: 854; cpp: 76
file content (36 lines) | stat: -rw-r--r-- 667 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
\begin{center}\begin{minipage}{15cm}\begin{Verbatim}[frame=single]
> 3/0;
Warning: the given expression is undefined or numerically unstable.
NaN
> (-3)/0;
Warning: the given expression is undefined or numerically unstable.
NaN
> infty/infty;
Warning: the given expression is undefined or numerically unstable.
NaN
> infty + infty;
infty
> infty - infty;
Warning: the given expression is undefined or numerically unstable.
NaN
> f = exp(x) + 5;
> f(NaN);
NaN
> NaN == 5;
false
> NaN == NaN;
false
> NaN != NaN;
false
> X = "Vive la Republique!";
> !(X == X);
false
> X = 5;
> !(X == X);
false
> X = NaN;
> !(X == X);
true
> 
\end{Verbatim}
\end{minipage}\end{center}