equal
deleted
inserted
replaced
3 |
3 |
4 val thy = Root.thy; |
4 val thy = Root.thy; |
5 |
5 |
6 val t = str2term "sqrt 1"; |
6 val t = str2term "sqrt 1"; |
7 val SOME (t',_) = rewrite_set_ thy false Root_erls t; |
7 val SOME (t',_) = rewrite_set_ thy false Root_erls t; |
8 if term2str t' = "1" then () else raise error "root.sml: diff.behav. sqrt 1"; |
8 if term2str t' = "1" then () else error "root.sml: diff.behav. sqrt 1"; |
9 val t = str2term "sqrt -1"; |
9 val t = str2term "sqrt -1"; |
10 val NONE = rewrite_set_ thy false Root_erls t; |
10 val NONE = rewrite_set_ thy false Root_erls t; |
11 |
11 |
12 val t = str2term "sqrt 0"; |
12 val t = str2term "sqrt 0"; |
13 val SOME (t',_) = rewrite_set_ thy false Root_erls t; |
13 val SOME (t',_) = rewrite_set_ thy false Root_erls t; |
14 term2str t'; |
14 term2str t'; |
15 if term2str t' = "0" then () else raise error "root.sml: diff.behav. sqrt 1"; |
15 if term2str t' = "0" then () else error "root.sml: diff.behav. sqrt 1"; |