Debian Codegraph @

tests/prep/0206tests/tmpexport/dialog.sl

raw
1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2 %% Copyright (C) 2001 Svetlana Cojocaru, Victor Ufnarovski
3 %%
4 %% Bergman is distributed in the hope that it will be useful,
5 %% but WITHOUT ANY WARRANTY. No author or distributor
6 %% accepts responsibility to anyone for the consequences of using it
7 %% or for whether it serves any particular purpose or works at all,
8 %% unless (s)he says so in writing. Refer to the Bergman General
9 %% Public License for full details.
10
11 %% Everyone is granted permission to copy, modify and redistribute
12 %% bergman, but only under the conditions described in the
13 %% Bergman General Public License. A copy of this license is
14 %% supposed to have been given to you along with bergman so you
15 %% can know your rights and responsibilities. It should be in a
16 %% file named copyright. Among other things, the copyright notice
17 %% and this notice must be preserved on all copies.
18 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
19
20 (OFF RAISE)
21
22 % Created 2001-08-06 to simplify Anick input /SK & VU
23
24
25
26
27 (DE anresScreenInput ()
28 (SETQ anresScInput T)
29 (PRIN2 "Input the Maximum Degree you want to calculate")(TERPRI)
30 (SETMAXDEG (READ))
31 (PRIN2 "Input the name of the output file")(TERPRI)
32 (SETQ ANICKRESOLUTIONOUTPUTFILE (READ))
33 %(PRIN2 "Now input all ring variables.") (TERPRI)
34 %(PRIN2 "Input the ring ideal generators in algebraic form thus:")
35 %(TERPRI) (PRIN2 " vars v1, ..., vn;") (TERPRI)
36 %(PRIN2 " r1, ..., rm;") (TERPRI)
37 %(PRIN2 "where v1, ..., vn are all the variables, and r1, ..., rm the generators.")
38 (TERPRI)
39 %(ALGFORMINPUT)
40 )
41
42
43 (DE anresCheckInput (arguments)
44 (COND ( (NOT (NUMBERP (CAR arguments)) )
45 (PRIN2 "***No maximal degree") (TERPRI)
46 (PRIN2 "Input data from the keyboard") (TERPRI)
47 (anresScreenInput)
48 )
49 (T
50 (SETMAXDEG (CAR arguments))
51 (SETQ anresScInput NIL)
52 )
53 )
54
55 (COND ( (NOT (STRINGP (CADR arguments)) )
56 (PRIN2 "***Incorrect output file.") (TERPRI)
57 (PRIN2 "Do you agree to use the file andifres.txt as output ?" )
58 (TERPRI)
59 (SETQ ANICKRESOLUTIONOUTPUTFILE "andifres.txt")
60 (PRIN2 "andifres.txt is used as output file") (TERPRI)
61
62 )
63 (T (SETQ ANICKRESOLUTIONOUTPUTFILE (CADR argumentss)))
64 )
65
66
67
68 )
69
70
71 (ON RAISE)