File: introExample57.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 (35 lines) | stat: -rw-r--r-- 1,135 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
28
29
30
31
32
33
34
35
\begin{center}\begin{minipage}{15cm}\begin{Verbatim}[frame=single]
> match exp([1;2]) with 
        [a;b]              : {
                                a,", ",b;
                             }
        default            : {
                                "Something else";
                             };
Warning: For at least 2 of the constants displayed in decimal, rounding has happ
ened.
2.7182818284590452353602874713526624977572470936999, 7.3890560989306502272304274
605750078131803155705519
> 
> match exp([1;2]) with 
        exp([a;b])         : {
                                a,", ", b;
                             }
        default            : {
                                "Something else";
                             };
Warning: at least one of the given expressions or a subexpression is not correct
ly typed
or its evaluation has failed because of some error on a side-effect.
error
> 
> match exp([1;2]) with 
    exp(a)  : {
                "Exponential of ", a;
              }
    default : {
                "Something else";
              };
Something else
\end{Verbatim}
\end{minipage}\end{center}