1 (* tests on the equation solver
2 author: Walther Neuper 070703
3 (c) due to copyright terms
6 "-----------------------------------------------------------------";
7 "table of contents -----------------------------------------------";
8 "-----------------------------------------------------------------";
9 "----------- CAS input -------------------------------------------";
10 "-----------------------------------------------------------------";
11 "-----------------------------------------------------------------";
12 "-----------------------------------------------------------------";
14 val thy = @{theory "Equation"}
15 val ctxt = Proof_Context.init_global thy;
17 "----------- CAS input -------------------------------------------";
18 "----------- CAS input -------------------------------------------";
19 "----------- CAS input -------------------------------------------";
21 CalcTree [([], References.empty)];
24 replaceFormula 1 "solve (x+1=2, x)";
25 (*========== inhibit exn 130719 Isabelle2013 ===================================loops
26 autoCalculate 1 CompleteCalc;
27 val ((pt,p),_) = States.get_calc 1;
28 val Form res = (#1 o ME_Misc.pt_extract) (pt, ([],Res));
30 if p = ([], Res) andalso UnparseC.term res = "[x = 1]" then ()
31 else error "equation.sml behav.changed for CAS solve (x+1=2, x))";
32 ============ inhibit exn 130719 Isabelle2013 =================================*)