equal
deleted
inserted
replaced
|
1 (*Komplexe Zahlen, anders als von Isabelle vorgeschlagen, |
|
2 und naeher an der traditionellen Schreibweise (sh.auch Mathematica)*) |
|
3 |
|
4 |
|
5 (*---- solche Tests gehoeren nach kbtest/complex.sml --- |
|
6 val t = (term_of o the o (parse thy)) "I__"; |
|
7 atomt t; |
|
8 val t = (term_of o the o (parse thy)) "1 + 2 * I__"; |
|
9 atomt t; |
|
10 val t = (term_of o the o (parse thy)) |
|
11 "1 + 2 * I__ + 3 + 4 * I__ * (5 + 6 * I__) / (7 + 8 * I__)"; |
|
12 atomt t; |
|
13 (*andere konkrete Syntax ???*) |
|
14 |
|
15 val t = (term_of o the o (parse thy)) "Float ((1,2),(0,0)) * I__"; |
|
16 atomt t; |
|
17 (*term2str t;*) |
|
18 val t = (term_of o the o (parse thy)) |
|
19 "Float ((1,2),(0,0)) + Float ((3,4),(0,0)) * I__"; |
|
20 atomt t; |
|
21 (*term2str t;*) |
|
22 ---------------------------------------------------------*) |