File: introExample17.tex

package info (click to toggle)
sollya 8.0%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 17,592 kB
  • sloc: ansic: 124,655; yacc: 7,543; lex: 2,440; makefile: 888; cpp: 77
file content (27 lines) | stat: -rw-r--r-- 944 bytes parent folder | download | duplicates (2)
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
\begin{center}\begin{minipage}{15cm}\begin{Verbatim}[frame=single]
> prec = 300!;
> a = 4097.1;
Warning: Rounding occurred when converting the constant "4097.1" to floating-poi
nt with 300 bits.
If safe computation is needed, try to increase the precision.
> prec = 12!;
> d = [4097.1; a];
Warning: Rounding occurred when converting the constant "4097.1" to floating-poi
nt with 12 bits.
The inclusion property is nevertheless satisfied.
> prec = 300!;
> d;
Warning: For at least 1 of the constants displayed in decimal, rounding has happ
ened.
[4096;4097.1]
> prec = 30!;
> [-pi;pi];
Warning: at least one of the given expressions is not a constant but requires ev
aluation.
Evaluation is guaranteed to ensure the inclusion property. The approximate resul
t is at least 30 bit accurate.
Warning: For at least 2 of the constants displayed in decimal, rounding has happ
ened.
[-3.141592655;3.141592655]
\end{Verbatim}
\end{minipage}\end{center}